WPA: Do not print GTK in debug log unless requested
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 9 Sep 2015 14:35:06 +0000 (17:35 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 9 Sep 2015 14:39:57 +0000 (17:39 +0300)
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>
src/rsn_supp/wpa.c

index 52c01b8..a9f255e 100644 (file)
@@ -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)));