Fixed EAP-AKA RES Length field in AT_RES as length in bits, not bytes

This commit is contained in:
Jouni Malinen 2008-11-07 08:30:34 +02:00 committed by Jouni Malinen
parent 36100718de
commit fa71a1d84a
2 changed files with 3 additions and 1 deletions

View file

@ -472,7 +472,7 @@ static struct wpabuf * eap_aka_response_challenge(struct eap_aka_data *data,
msg = eap_sim_msg_init(EAP_CODE_RESPONSE, id, EAP_TYPE_AKA, msg = eap_sim_msg_init(EAP_CODE_RESPONSE, id, EAP_TYPE_AKA,
EAP_AKA_SUBTYPE_CHALLENGE); EAP_AKA_SUBTYPE_CHALLENGE);
wpa_printf(MSG_DEBUG, " AT_RES"); wpa_printf(MSG_DEBUG, " AT_RES");
eap_sim_msg_add(msg, EAP_SIM_AT_RES, data->res_len, eap_sim_msg_add(msg, EAP_SIM_AT_RES, data->res_len * 8,
data->res, data->res_len); data->res, data->res_len);
eap_aka_add_checkcode(data, msg); eap_aka_add_checkcode(data, msg);
if (data->use_result_ind) { if (data->use_result_ind) {

View file

@ -8,6 +8,8 @@ ChangeLog for wpa_supplicant
* added a new network configuration option, wpa_ptk_rekey, that can be * added a new network configuration option, wpa_ptk_rekey, that can be
used to enforce frequent PTK rekeying, e.g., to mitigate some attacks used to enforce frequent PTK rekeying, e.g., to mitigate some attacks
against TKIP deficiencies against TKIP deficiencies
* fixed EAP-AKA to use RES Length field in AT_RES as length in bits,
not bytes
2008-11-01 - v0.6.5 2008-11-01 - v0.6.5
* added support for SHA-256 as X.509 certificate digest when using the * added support for SHA-256 as X.509 certificate digest when using the