3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-24 16:49:25 +01:00

unit: update test-eapol with API change

This commit is contained in:
James Prestwood 2023-01-11 12:15:36 -08:00 committed by Denis Kenzior
parent 2429ab958d
commit 17afcf84dc

View File

@ -1793,7 +1793,7 @@ static void eapol_4way_test(const void *data)
eapol_key_test_4.key_replay_counter, eapol_key_test_4.key_replay_counter,
snonce, eapol_key_test_4.key_data_len, snonce, eapol_key_test_4.key_data_len,
eapol_key_data_4 + EAPOL_FRAME_LEN(16), eapol_key_data_4 + EAPOL_FRAME_LEN(16),
false, 16); false, 16, false);
assert(frame); assert(frame);
assert(eapol_calculate_mic(IE_RSN_AKM_SUITE_PSK, ptk, frame, assert(eapol_calculate_mic(IE_RSN_AKM_SUITE_PSK, ptk, frame,
mic, 16)); mic, 16));
@ -1878,7 +1878,7 @@ static void eapol_wpa2_handshake_test(const void *data)
eapol_key_test_8.key_replay_counter, eapol_key_test_8.key_replay_counter,
snonce, eapol_key_test_8.key_data_len, snonce, eapol_key_test_8.key_data_len,
eapol_key_data_8 + EAPOL_FRAME_LEN(16), eapol_key_data_8 + EAPOL_FRAME_LEN(16),
false, 16); false, 16, false);
assert(frame); assert(frame);
assert(eapol_calculate_mic(IE_RSN_AKM_SUITE_PSK, ptk, frame, assert(eapol_calculate_mic(IE_RSN_AKM_SUITE_PSK, ptk, frame,
mic, 16)); mic, 16));
@ -2008,7 +2008,7 @@ static void eapol_wpa_handshake_test(const void *data)
eapol_key_test_14.key_replay_counter, eapol_key_test_14.key_replay_counter,
snonce, eapol_key_test_14.key_data_len, snonce, eapol_key_test_14.key_data_len,
eapol_key_data_14 + EAPOL_FRAME_LEN(16), eapol_key_data_14 + EAPOL_FRAME_LEN(16),
true, 16); true, 16, false);
assert(frame); assert(frame);
assert(eapol_calculate_mic(IE_RSN_AKM_SUITE_PSK, ptk, frame, assert(eapol_calculate_mic(IE_RSN_AKM_SUITE_PSK, ptk, frame,
mic, 16)); mic, 16));