[PATCH v3 32/42] l2tp: Remember the connection password

Jukka Rissanen jukka.rissanen at linux.intel.com
Wed Nov 7 03:48:58 PST 2012


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

diff --git a/vpn/plugins/l2tp.c b/vpn/plugins/l2tp.c
index 5a11e52..4cb4b6a 100644
--- a/vpn/plugins/l2tp.c
+++ b/vpn/plugins/l2tp.c
@@ -258,6 +258,13 @@ static int l2tp_save(struct vpn_provider *provider, GKeyFile *keyfile)
 					pppd_options[i].cm_opt, option);
 		}
 	}
+
+	option = vpn_provider_get_string(provider, "L2TP.Password");
+	if (option != NULL)
+		g_key_file_set_string(keyfile,
+					vpn_provider_get_save_group(provider),
+					"L2TP.Password", option);
+
 	return 0;
 }
 
-- 
1.7.11.4




More information about the connman mailing list