eapol_test: Move Message-Authenticator attribute to be the first one
Even if this is not strictly speaking necessary for mitigating certain RADIUS protocol attacks, be consistent with the RADIUS server behavior and move the Message-Authenticator attribute to be the first attribute in the message from RADIUS client. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
54abb0d3cf
commit
689a248260
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ static void ieee802_1x_encapsulate_radius(struct eapol_test_data *e,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!radius_msg_add_msg_auth(msg))
|
||||||
|
goto fail;
|
||||||
|
|
||||||
radius_msg_make_authenticator(msg);
|
radius_msg_make_authenticator(msg);
|
||||||
|
|
||||||
hdr = (const struct eap_hdr *) eap;
|
hdr = (const struct eap_hdr *) eap;
|
||||||
|
|
Loading…
Reference in a new issue