aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-09-09 14:35:06 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-09 14:39:57 (GMT)
commit7cb9bb4d9bfb1d2a23fb3b760208281c7fdfbafd (patch)
treeab67bb03da576b42d018e68d29b0802d02ae2205 /src
parent4b9a395e29878a739d8d21b4383268d83fc7710d (diff)
downloadhostap-7cb9bb4d9bfb1d2a23fb3b760208281c7fdfbafd.zip
hostap-7cb9bb4d9bfb1d2a23fb3b760208281c7fdfbafd.tar.gz
hostap-7cb9bb4d9bfb1d2a23fb3b760208281c7fdfbafd.tar.bz2
WPA: Do not print GTK in debug log unless requested
The GTK value received in RSN (WPA2) group rekeying did not use the wpa_hexdump_key() version of debug printing that is conditional on -K being included on the command line. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/rsn_supp/wpa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c
index 52c01b8..a9f255e 100644
--- a/src/rsn_supp/wpa.c
+++ b/src/rsn_supp/wpa.c
@@ -1292,8 +1292,8 @@ static int wpa_supplicant_process_1_of_2_rsn(struct wpa_sm *sm,
&gd->key_rsc_len, &gd->alg))
return -1;
- wpa_hexdump(MSG_DEBUG, "RSN: received GTK in group key handshake",
- ie.gtk, ie.gtk_len);
+ wpa_hexdump_key(MSG_DEBUG, "RSN: received GTK in group key handshake",
+ ie.gtk, ie.gtk_len);
gd->keyidx = ie.gtk[0] & 0x3;
gd->tx = wpa_supplicant_gtk_tx_bit_workaround(sm,
!!(ie.gtk[0] & BIT(2)));