diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2013-02-13 17:28:59 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-02-19 12:51:39 +0200 |
commit | 0973548ef45ccc4c51bf1d091b725647c916f358 (patch) | |
tree | e712800778bec6dd979d1c68780dfe786bcd7922 /vpn/plugins/l2tp.c | |
parent | db653221c8fe867f05b5e05d47d07fe1e0e6e22a (diff) | |
download | connman-0973548ef45ccc4c51bf1d091b725647c916f358.tar.gz connman-0973548ef45ccc4c51bf1d091b725647c916f358.tar.bz2 connman-0973548ef45ccc4c51bf1d091b725647c916f358.zip |
vpn-provider: Avoid printing password to log files
Add a variant to vpn_provider_set_string() that does not print
sensitive data like password in clear text to log files.
Diffstat (limited to 'vpn/plugins/l2tp.c')
-rw-r--r-- | vpn/plugins/l2tp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vpn/plugins/l2tp.c b/vpn/plugins/l2tp.c index 0a7ebf11..2a16ca6c 100644 --- a/vpn/plugins/l2tp.c +++ b/vpn/plugins/l2tp.c @@ -643,7 +643,8 @@ static int run_connect(struct vpn_provider *provider, } vpn_provider_set_string(provider, "L2TP.User", username); - vpn_provider_set_string(provider, "L2TP.Password", password); + vpn_provider_set_string_hide_value(provider, "L2TP.Password", + password); DBG("username %s password %p", username, password); |