diff options
author | Jouni Malinen <j@w1.fi> | 2018-04-08 17:06:40 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2018-04-09 16:34:44 (GMT) |
commit | 852b2f2738178f90b95c886176faf75ef301a296 (patch) | |
tree | 2e3db7fa4810c374834fcb0f911672f95603bc4c /wpa_supplicant/preauth_test.c | |
parent | 06b1a1043427778b82374fc63e540a264e12d82d (diff) | |
download | hostap-852b2f2738178f90b95c886176faf75ef301a296.zip hostap-852b2f2738178f90b95c886176faf75ef301a296.tar.gz hostap-852b2f2738178f90b95c886176faf75ef301a296.tar.bz2 |
SAE: Only allow SAE AKMP for PMKSA caching attempts
Explicitly check the PMKSA cache entry to have matching SAE AKMP for the
case where determining whether to use PMKSA caching instead of new SAE
authentication. Previously, only the network context was checked, but a
single network configuration profile could be used with both WPA2-PSK
and SAE, so should check the AKMP as well.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/preauth_test.c')
-rw-r--r-- | wpa_supplicant/preauth_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/preauth_test.c b/wpa_supplicant/preauth_test.c index a213a30..f2fff55 100644 --- a/wpa_supplicant/preauth_test.c +++ b/wpa_supplicant/preauth_test.c @@ -348,7 +348,7 @@ int main(int argc, char *argv[]) ret = -2; else { ret = pmksa_cache_set_current(wpa_s.wpa, NULL, bssid, NULL, 0, - NULL) ? 0 : -3; + NULL, 0) ? 0 : -3; } test_eapol_clean(&wpa_s); |