diff options
author | Raphael Geissert <raphael-externe.geissert@edf.fr> | 2016-11-03 17:00:21 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-05-08 15:29:37 +0200 |
commit | a4b3f1454b4c44b1d23822c2c62e9a0160efab76 (patch) | |
tree | 8fa0a26e42a3cd9634ab22fbc1c269a63827629a /src | |
parent | 8e1b986c10790cb3f372b73dee95a65efd3c1f9f (diff) | |
download | strongswan-a4b3f1454b4c44b1d23822c2c62e9a0160efab76.tar.bz2 strongswan-a4b3f1454b4c44b1d23822c2c62e9a0160efab76.tar.xz |
nm: Explicitly prevent the smartcard PIN from being stored
The secret storage flag wasn't being saved when using smartcard
authentication, resulting in the PIN being stored.
Fixes #2166.
Diffstat (limited to 'src')
-rw-r--r-- | src/frontends/gnome/properties/nm-strongswan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontends/gnome/properties/nm-strongswan.c b/src/frontends/gnome/properties/nm-strongswan.c index 8deaa8468..e893c1de6 100644 --- a/src/frontends/gnome/properties/nm-strongswan.c +++ b/src/frontends/gnome/properties/nm-strongswan.c @@ -509,6 +509,8 @@ update_connection (NMVpnEditor *iface, str = "agent"; break; case 2: + nm_setting_set_secret_flags (NM_SETTING (settings), "password", + NM_SETTING_SECRET_FLAG_NOT_SAVED, NULL); str = "smartcard"; break; case 3: |