EAP server: Add debug prints to help asleap testing
This adds hexdumps of MSCHAP/MSCHAPv2 Challenge and Response in format used by asleap. This is only enabled for CONFIG_TESTING_OPTIONS=y builds. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2c1cf90376
commit
1d0f42a073
4 changed files with 56 additions and 0 deletions
|
@ -360,6 +360,19 @@ static void eap_mschapv2_process_response(struct eap_sm *sm,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
{
|
||||
u8 challenge[8];
|
||||
|
||||
if (challenge_hash(peer_challenge, data->auth_challenge,
|
||||
username, username_len, challenge) == 0) {
|
||||
eap_server_mschap_rx_callback(sm, "EAP-MSCHAPV2",
|
||||
username, username_len,
|
||||
challenge, nt_response);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
if (username_len != user_len ||
|
||||
os_memcmp(username, user, username_len) != 0) {
|
||||
wpa_printf(MSG_DEBUG, "EAP-MSCHAPV2: Mismatch in user names");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue