aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2008-12-09 19:56:47 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-09 19:56:47 (GMT)
commit556f5a2a281dc725f16cbf986c3f17aff4115e13 (patch)
tree98b636e7f9b686c28fa3f238f2a16a9af69568c4 /wpa_supplicant
parent205a372b2d1625210751de946df3a3280fe8ba22 (diff)
downloadhostap-06-556f5a2a281dc725f16cbf986c3f17aff4115e13.zip
hostap-06-556f5a2a281dc725f16cbf986c3f17aff4115e13.tar.gz
hostap-06-556f5a2a281dc725f16cbf986c3f17aff4115e13.tar.bz2
wpa_supplicant: print password field only if -K is given
Print the password field only if -K is given by using wpa_hexdump_ascii_key instead of wpa_hexdump_ascii. Additionally mark the password field as key. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index a452323..260011d 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -1049,8 +1049,8 @@ static int wpa_config_parse_password(const struct parse_data *data,
"password.", line);
return -1;
}
- wpa_hexdump_ascii(MSG_MSGDUMP, data->name,
- (u8 *) tmp, res_len);
+ wpa_hexdump_ascii_key(MSG_MSGDUMP, data->name,
+ (u8 *) tmp, res_len);
os_free(ssid->eap.password);
ssid->eap.password = (u8 *) tmp;
@@ -1321,7 +1321,7 @@ static const struct parse_data ssid_fields[] = {
{ FUNC(eap) },
{ STR_LENe(identity) },
{ STR_LENe(anonymous_identity) },
- { FUNC(password) },
+ { FUNC_KEY(password) },
{ STRe(ca_cert) },
{ STRe(ca_path) },
{ STRe(client_cert) },