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

unit: Update to the new API

This commit is contained in:
Denis Kenzior 2015-02-13 16:09:45 -06:00
parent 54d4090542
commit 8b3b95e889

View File

@ -497,13 +497,18 @@ static void eapol_4way_test(const void *data)
struct crypto_ptk *ptk;
size_t ptk_len;
bool ret;
const struct eapol_key *step1;
const struct eapol_key *step2;
assert(eapol_process_ptk_1_of_4(eapol_key_data_3,
sizeof(eapol_key_data_3),
anonce));
assert(eapol_process_ptk_2_of_4(eapol_key_data_4,
sizeof(eapol_key_data_4),
snonce));
step1 = eapol_verify_ptk_1_of_4(eapol_key_data_3,
sizeof(eapol_key_data_3));
assert(step1);
memcpy(anonce, step1->key_nonce, sizeof(step1->key_nonce));
step2 = eapol_verify_ptk_2_of_4(eapol_key_data_4,
sizeof(eapol_key_data_4));
assert(step2);
memcpy(snonce, step2->key_nonce, sizeof(step2->key_nonce));
assert(!crypto_psk_from_passphrase(passphrase, (uint8_t *) ssid,
strlen(ssid), psk));