mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 22:19:23 +01:00
eapol: Relax message 2 / 4 key_length check
Seems certain Apple implementations set the key length to 16, even though it should be 0.
This commit is contained in:
parent
bc9e70f9cd
commit
bd7f8bf613
@ -430,8 +430,7 @@ bool eapol_verify_ptk_2_of_4(const struct eapol_key *ek)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
key_len = L_BE16_TO_CPU(ek->key_length);
|
key_len = L_BE16_TO_CPU(ek->key_length);
|
||||||
if (key_len != 0)
|
L_WARN_ON(key_len != 0);
|
||||||
return false;
|
|
||||||
|
|
||||||
VERIFY_IS_ZERO(ek->eapol_key_iv);
|
VERIFY_IS_ZERO(ek->eapol_key_iv);
|
||||||
VERIFY_IS_ZERO(ek->key_rsc);
|
VERIFY_IS_ZERO(ek->key_rsc);
|
||||||
@ -510,8 +509,7 @@ bool eapol_verify_ptk_4_of_4(const struct eapol_key *ek, bool is_wpa)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
key_len = L_BE16_TO_CPU(ek->key_length);
|
key_len = L_BE16_TO_CPU(ek->key_length);
|
||||||
if (key_len != 0)
|
L_WARN_ON(key_len != 0);
|
||||||
return false;
|
|
||||||
|
|
||||||
VERIFY_IS_ZERO(ek->key_nonce);
|
VERIFY_IS_ZERO(ek->key_nonce);
|
||||||
VERIFY_IS_ZERO(ek->eapol_key_iv);
|
VERIFY_IS_ZERO(ek->eapol_key_iv);
|
||||||
|
Loading…
Reference in New Issue
Block a user