3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-30 06:02:39 +01:00

eapol: Pass decrypted data len

to eapol_handle_ptk_3_of_4
This commit is contained in:
Denis Kenzior 2015-02-24 16:02:32 -06:00
parent 63718343e5
commit bfdd4a2328

View File

@ -533,7 +533,8 @@ fail:
static void eapol_handle_ptk_3_of_4(int ifindex, struct eapol_sm *sm,
const struct eapol_key *ek,
const uint8_t *decrypted_key_data)
const uint8_t *decrypted_key_data,
size_t decrypted_key_data_size)
{
struct crypto_ptk *ptk = (struct crypto_ptk *) sm->ptk;
struct eapol_key *step4;
@ -655,7 +656,8 @@ void __eapol_rx_packet(int ifindex, const uint8_t *sta_addr,
if (!ek->key_mic)
eapol_handle_ptk_1_of_4(ifindex, sm, ek);
else
eapol_handle_ptk_3_of_4(ifindex, sm, ek, decrypted_key_data);
eapol_handle_ptk_3_of_4(ifindex, sm, ek, decrypted_key_data,
decrypted_key_data_len);
done:
l_free(decrypted_key_data);