[network-manager-openconnect] Set the *real* secrets (gateway/gwcert/cookie) not to be saved.
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openconnect] Set the *real* secrets (gateway/gwcert/cookie) not to be saved.
- Date: Mon, 18 Apr 2011 00:29:01 +0000 (UTC)
commit 845455a864266b408296452a230b2c9a64020126
Author: David Woodhouse <David Woodhouse intel com>
Date: Mon Apr 18 01:12:09 2011 +0100
Set the *real* secrets (gateway/gwcert/cookie) not to be saved.
properties/nm-openconnect.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/properties/nm-openconnect.c b/properties/nm-openconnect.c
index 0d1af04..fb5f7f1 100644
--- a/properties/nm-openconnect.c
+++ b/properties/nm-openconnect.c
@@ -455,7 +455,13 @@ update_connection (NMVpnPluginUiWidgetInterface *iface,
str = (char *) gtk_entry_get_text (GTK_ENTRY (widget));
if (str && strlen (str))
nm_setting_vpn_add_data_item (s_vpn, NM_OPENCONNECT_KEY_CSD_WRAPPER, str);
-
+
+ nm_setting_set_secret_flags (NM_SETTING (s_vpn), "gwcert",
+ NM_SETTING_SECRET_FLAG_NOT_SAVED, NULL);
+ nm_setting_set_secret_flags (NM_SETTING (s_vpn), "cookie",
+ NM_SETTING_SECRET_FLAG_NOT_SAVED, NULL);
+ nm_setting_set_secret_flags (NM_SETTING (s_vpn), "gateway",
+ NM_SETTING_SECRET_FLAG_NOT_SAVED, NULL);
auth_widget_update_connection (priv->builder, auth_type, s_vpn);
nm_connection_add_setting (connection, NM_SETTING (s_vpn));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]