From 483194ee91b1ac5e368b251156994a4c0e4901dd Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 15 Jul 2019 21:45:32 -0500 Subject: [PATCH] unit: Update to the new handshake_state API --- unit/test-eapol.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unit/test-eapol.c b/unit/test-eapol.c index c5f61985..84d07656 100644 --- a/unit/test-eapol.c +++ b/unit/test-eapol.c @@ -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);