[PATCH v5 33/42] pptp: Remember the connection password

Jukka Rissanen jukka.rissanen at linux.intel.com
Mon Nov 12 04:07:49 PST 2012


---
 vpn/plugins/pptp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/vpn/plugins/pptp.c b/vpn/plugins/pptp.c
index f737c31..6843793 100644
--- a/vpn/plugins/pptp.c
+++ b/vpn/plugins/pptp.c
@@ -219,6 +219,13 @@ static int pptp_save(struct vpn_provider *provider, GKeyFile *keyfile)
 					pptp_options[i].cm_opt, option);
 		}
 	}
+
+	option = vpn_provider_get_string(provider, "PPTP.Password");
+	if (option != NULL)
+		g_key_file_set_string(keyfile,
+					vpn_provider_get_save_group(provider),
+					"PPTP.Password", option);
+
 	return 0;
 }
 
-- 
1.7.11.4




More information about the connman mailing list