summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-30 09:30:53 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-30 13:01:19 (GMT)
commit138462d1c0de9ae31f71f05b5f6274542f46b5af (patch)
treef03928ba255be7677d7b99a21f4b1ff2dad02a3e /vpn
parentc6dc437648097c21965ca87016365a7d6616ad32 (diff)
downloadconnman-138462d1c0de9ae31f71f05b5f6274542f46b5af.zip
connman-138462d1c0de9ae31f71f05b5f6274542f46b5af.tar.gz
connman-138462d1c0de9ae31f71f05b5f6274542f46b5af.tar.bz2
l2tp: Clear password when disconnecting
Diffstat (limited to 'vpn')
-rw-r--r--vpn/plugins/l2tp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vpn/plugins/l2tp.c b/vpn/plugins/l2tp.c
index d7439cd..379447b 100644
--- a/vpn/plugins/l2tp.c
+++ b/vpn/plugins/l2tp.c
@@ -743,12 +743,18 @@ static int l2tp_error_code(int exit_code)
}
}
+static void l2tp_disconnect(struct vpn_provider *provider)
+{
+ vpn_provider_set_string(provider, "L2TP.Password", NULL);
+}
+
static struct vpn_driver vpn_driver = {
.flags = VPN_FLAG_NO_TUN,
.notify = l2tp_notify,
.connect = l2tp_connect,
.error_code = l2tp_error_code,
.save = l2tp_save,
+ .disconnect = l2tp_disconnect,
};
static int l2tp_init(void)