EAP-pwd: Remove struct eap_pwd_hdr
This structure was not really used for anything apart from figuring out length of the EAP-pwd header (and even that in a way that would not work with fragmentation). Since the bitfields in the structure could have been problematic depending on target endianness, remove this unnecessary structure. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e547e071e1
commit
5419d6afed
3 changed files with 7 additions and 14 deletions
|
@ -423,8 +423,7 @@ eap_pwd_perform_commit_exchange(struct eap_sm *sm, struct eap_pwd_data *data,
|
|||
BN_bn2bin(y, element + BN_num_bytes(data->grp->prime) + offset);
|
||||
|
||||
resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PWD,
|
||||
sizeof(struct eap_pwd_hdr) +
|
||||
BN_num_bytes(data->grp->order) +
|
||||
1 + BN_num_bytes(data->grp->order) +
|
||||
(2 * BN_num_bytes(data->grp->prime)),
|
||||
EAP_CODE_RESPONSE, eap_get_id(reqData));
|
||||
if (resp == NULL)
|
||||
|
@ -633,7 +632,7 @@ eap_pwd_perform_confirm_exchange(struct eap_sm *sm, struct eap_pwd_data *data,
|
|||
H_Final(&ctx, conf);
|
||||
|
||||
resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PWD,
|
||||
sizeof(struct eap_pwd_hdr) + SHA256_DIGEST_LENGTH,
|
||||
1 + SHA256_DIGEST_LENGTH,
|
||||
EAP_CODE_RESPONSE, eap_get_id(reqData));
|
||||
if (resp == NULL)
|
||||
goto fin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue