eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 799a29d37cfc55e552eb3cc458ca95b01d055351
parent c21f3cd2a49798db87a970ae1e2e58fec21a03b4
Author: James Prestwood <james.prestwood@linux.intel.com>
Date:   Wed, 17 Apr 2019 15:16:44 -0700

eapol: only check for snonce if MIC is used

In eapol_key_handle, 'have_snonce' is checked before decrypting the
key data. For FILS, there will be no snonce so this check can be
skipped if mic_len == 0.

Diffstat:
Msrc/eapol.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/eapol.c b/src/eapol.c @@ -1918,8 +1918,11 @@ static void eapol_key_handle(struct eapol_sm *sm, if ((ek->encrypted_key_data && !sm->handshake->wpa_ie) || (ek->key_type == 0 && sm->handshake->wpa_ie)) { - /* Haven't received step 1 yet, so no ptk */ - if (!sm->handshake->have_snonce) + /* + * If using a MIC (non-FILS) but haven't received step 1 yet + * we disregard since there will be no ptk + */ + if (sm->mic_len && !sm->handshake->have_snonce) return; kek = handshake_state_get_kek(sm->handshake);