]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
TNC: Print received IF-TNCCS message as debug ASCII hexdump
authorJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 16:32:36 +0000 (18:32 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 16:33:19 +0000 (18:33 +0200)
This makes it easier to see what TNCC is processing.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/tncc.c

index 7ca956e5b235dd2e1b160fd3d82dc953e5669738..99655131a4c8d54b8da0976fe9a4e3b6f75230fd 100644 (file)
@@ -694,6 +694,8 @@ enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
        enum tncc_process_res res = TNCCS_PROCESS_OK_NO_RECOMMENDATION;
        int recommendation_msg = 0;
 
+       wpa_hexdump_ascii(MSG_MSGDUMP, "TNC: Received IF-TNCCS message",
+                         msg, len);
        buf = dup_binstr(msg, len);
        if (buf == NULL)
                return TNCCS_PROCESS_ERROR;