mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Use cleaner debug print for ctrl_iface commands with private info
Convert this to a text string instead of ASCII hexdump to make the debug log more convenient to use. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9595151f3f
commit
d31b5ac778
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* WPA Supplicant / Control interface (shared code for all backends)
|
* WPA Supplicant / Control interface (shared code for all backends)
|
||||||
* Copyright (c) 2004-2013, Jouni Malinen <j@w1.fi>
|
* Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi>
|
||||||
*
|
*
|
||||||
* This software may be distributed under the terms of the BSD license.
|
* This software may be distributed under the terms of the BSD license.
|
||||||
* See README for more details.
|
* See README for more details.
|
||||||
@ -5350,8 +5350,17 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
|
|||||||
int reply_len;
|
int reply_len;
|
||||||
|
|
||||||
if (os_strncmp(buf, WPA_CTRL_RSP, os_strlen(WPA_CTRL_RSP)) == 0 ||
|
if (os_strncmp(buf, WPA_CTRL_RSP, os_strlen(WPA_CTRL_RSP)) == 0 ||
|
||||||
os_strncmp(buf, "SET_NETWORK ", 12) == 0 ||
|
os_strncmp(buf, "SET_NETWORK ", 12) == 0) {
|
||||||
os_strncmp(buf, "WPS_NFC_TAG_READ", 16) == 0 ||
|
if (wpa_debug_show_keys)
|
||||||
|
wpa_dbg(wpa_s, MSG_DEBUG,
|
||||||
|
"Control interface command '%s'", buf);
|
||||||
|
else
|
||||||
|
wpa_dbg(wpa_s, MSG_DEBUG,
|
||||||
|
"Control interface command '%s [REMOVED]'",
|
||||||
|
os_strncmp(buf, WPA_CTRL_RSP,
|
||||||
|
os_strlen(WPA_CTRL_RSP)) == 0 ?
|
||||||
|
WPA_CTRL_RSP : "SET_NETWORK");
|
||||||
|
} else if (os_strncmp(buf, "WPS_NFC_TAG_READ", 16) == 0 ||
|
||||||
os_strncmp(buf, "NFC_REPORT_HANDOVER", 19) == 0 ||
|
os_strncmp(buf, "NFC_REPORT_HANDOVER", 19) == 0 ||
|
||||||
os_strncmp(buf, "NFC_RX_HANDOVER_SEL", 19) == 0) {
|
os_strncmp(buf, "NFC_RX_HANDOVER_SEL", 19) == 0) {
|
||||||
wpa_hexdump_ascii_key(MSG_DEBUG, "RX ctrl_iface",
|
wpa_hexdump_ascii_key(MSG_DEBUG, "RX ctrl_iface",
|
||||||
|
Loading…
Reference in New Issue
Block a user