mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
unit: Update to the new handshake_state API
This commit is contained in:
parent
d984c605f7
commit
483194ee91
@ -2170,12 +2170,12 @@ static void eapol_sm_test_ptk(const void *data)
|
|||||||
expected_step4_frame_size = sizeof(eapol_key_data_6);
|
expected_step4_frame_size = sizeof(eapol_key_data_6);
|
||||||
|
|
||||||
hs = test_handshake_state_new(1);
|
hs = test_handshake_state_new(1);
|
||||||
|
/* key_data_3 uses 2004 while key_data_3 uses 2001, so force 2001 */
|
||||||
|
handshake_state_set_protocol_version(hs, EAPOL_PROTOCOL_VERSION_2001);
|
||||||
|
|
||||||
sm = eapol_sm_new(hs);
|
sm = eapol_sm_new(hs);
|
||||||
eapol_register(sm);
|
eapol_register(sm);
|
||||||
|
|
||||||
/* key_data_3 uses 2004 while key_data_3 uses 2001, so force 2001 */
|
|
||||||
eapol_sm_set_protocol_version(sm, EAPOL_PROTOCOL_VERSION_2001);
|
|
||||||
|
|
||||||
handshake_state_set_pmk(hs, psk, sizeof(psk));
|
handshake_state_set_pmk(hs, psk, sizeof(psk));
|
||||||
handshake_state_set_authenticator_address(hs, aa);
|
handshake_state_set_authenticator_address(hs, aa);
|
||||||
handshake_state_set_supplicant_address(hs, spa);
|
handshake_state_set_supplicant_address(hs, spa);
|
||||||
@ -2234,12 +2234,12 @@ static void eapol_sm_test_igtk(const void *data)
|
|||||||
expected_step4_frame_size = sizeof(eapol_key_data_32);
|
expected_step4_frame_size = sizeof(eapol_key_data_32);
|
||||||
|
|
||||||
hs = test_handshake_state_new(1);
|
hs = test_handshake_state_new(1);
|
||||||
|
/* key_data_29 uses 2004 while key_data_30 uses 2001, so force 2001 */
|
||||||
|
handshake_state_set_protocol_version(hs, EAPOL_PROTOCOL_VERSION_2001);
|
||||||
|
|
||||||
sm = eapol_sm_new(hs);
|
sm = eapol_sm_new(hs);
|
||||||
eapol_register(sm);
|
eapol_register(sm);
|
||||||
|
|
||||||
/* key_data_29 uses 2004 while key_data_30 uses 2001, so force 2001 */
|
|
||||||
eapol_sm_set_protocol_version(sm, EAPOL_PROTOCOL_VERSION_2001);
|
|
||||||
|
|
||||||
handshake_state_set_pmk(hs, psk, sizeof(psk));
|
handshake_state_set_pmk(hs, psk, sizeof(psk));
|
||||||
handshake_state_set_authenticator_address(hs, aa);
|
handshake_state_set_authenticator_address(hs, aa);
|
||||||
handshake_state_set_supplicant_address(hs, spa);
|
handshake_state_set_supplicant_address(hs, spa);
|
||||||
|
Loading…
Reference in New Issue
Block a user