3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

unit: Update to the new handshake_state API

This commit is contained in:
Denis Kenzior 2019-07-15 21:45:32 -05:00
parent d984c605f7
commit 483194ee91

View File

@ -2170,12 +2170,12 @@ static void eapol_sm_test_ptk(const void *data)
expected_step4_frame_size = sizeof(eapol_key_data_6);
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);
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_authenticator_address(hs, aa);
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);
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);
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_authenticator_address(hs, aa);
handshake_state_set_supplicant_address(hs, spa);