diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-12 14:07:48 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-23 12:58:52 +0200 |
commit | 5b1e7ace876142f354a326c50bdda531ce879dd5 (patch) | |
tree | cdcf8d79158988f78fb8b264078c803d82afbc8d | |
parent | fa1638259021a93a848842025f52f1f1f58cc561 (diff) | |
download | connman-5b1e7ace876142f354a326c50bdda531ce879dd5.tar.gz connman-5b1e7ace876142f354a326c50bdda531ce879dd5.tar.bz2 connman-5b1e7ace876142f354a326c50bdda531ce879dd5.zip |
l2tp: Remember the connection password
-rw-r--r-- | vpn/plugins/l2tp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vpn/plugins/l2tp.c b/vpn/plugins/l2tp.c index 5a11e529..4cb4b6a9 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; } |