]> git.ipfire.org Git - thirdparty/hostap.git/commit
SAE: Determine H2E vs. looping when restarting SAE auth in AP mode
authorJouni Malinen <jouni@codeaurora.org>
Fri, 25 Oct 2019 12:54:11 +0000 (15:54 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 25 Oct 2019 16:29:53 +0000 (19:29 +0300)
commit93a1e275a7349d39691d26cde074d0446a6702b6
tree8aea6a045cbfbdefda41f27ce34a43ac90647c4a
parentde580bf6c46727c8868abfd8d1134bcd4615ee35
SAE: Determine H2E vs. looping when restarting SAE auth in AP mode

If hostapd had existing STA SAE state, e.g., from a previously completed
SAE authentication, a new start of a separate SAE authentication (i.e.,
receiving of a new SAE commit) ended up using some of the previous
state. This is problematic for determining whether to H2E vs. looping
since the STA is allowed (even if not really expected to) to change
between these two alternatives. This could result in trying to use H2E
when STA was using looping to derive PWE and that would result in SAE
confirm failing.

Fix this by determining whether to use H2E or looping for the restarted
authentication based on the Status Code in the new SAE commit message
instead of previously cached state information.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/ieee802_11.c