Add debug prints for couple of new EAP-AKA' attributes

This commit is contained in:
Jouni Malinen 2009-02-15 10:28:16 +02:00
parent ba2a573c5f
commit 3fe430b5d5

View file

@ -369,15 +369,19 @@ static struct wpabuf * eap_aka_build_challenge(struct eap_sm *sm,
EAP_AKA_SUBTYPE_CHALLENGE); EAP_AKA_SUBTYPE_CHALLENGE);
wpa_printf(MSG_DEBUG, " AT_RAND"); wpa_printf(MSG_DEBUG, " AT_RAND");
eap_sim_msg_add(msg, EAP_SIM_AT_RAND, 0, data->rand, EAP_AKA_RAND_LEN); eap_sim_msg_add(msg, EAP_SIM_AT_RAND, 0, data->rand, EAP_AKA_RAND_LEN);
wpa_printf(MSG_DEBUG, " AT_AUTN");
eap_sim_msg_add(msg, EAP_SIM_AT_AUTN, 0, data->autn, EAP_AKA_AUTN_LEN); eap_sim_msg_add(msg, EAP_SIM_AT_AUTN, 0, data->autn, EAP_AKA_AUTN_LEN);
if (data->eap_method == EAP_TYPE_AKA_PRIME) { if (data->eap_method == EAP_TYPE_AKA_PRIME) {
if (data->kdf) { if (data->kdf) {
/* Add the selected KDF into the beginning */ /* Add the selected KDF into the beginning */
wpa_printf(MSG_DEBUG, " AT_KDF");
eap_sim_msg_add(msg, EAP_SIM_AT_KDF, data->kdf, eap_sim_msg_add(msg, EAP_SIM_AT_KDF, data->kdf,
NULL, 0); NULL, 0);
} }
wpa_printf(MSG_DEBUG, " AT_KDF");
eap_sim_msg_add(msg, EAP_SIM_AT_KDF, EAP_AKA_PRIME_KDF, eap_sim_msg_add(msg, EAP_SIM_AT_KDF, EAP_AKA_PRIME_KDF,
NULL, 0); NULL, 0);
wpa_printf(MSG_DEBUG, " AT_KDF_INPUT");
eap_sim_msg_add(msg, EAP_SIM_AT_KDF_INPUT, eap_sim_msg_add(msg, EAP_SIM_AT_KDF_INPUT,
data->network_name_len, data->network_name_len,
data->network_name, data->network_name_len); data->network_name, data->network_name_len);