]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth_glue.c
Extend hostapd rsnxe_override_eapol to allow IE removal
authorJouni Malinen <j@w1.fi>
Sat, 7 Mar 2020 14:39:36 +0000 (16:39 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 7 Mar 2020 14:39:36 +0000 (16:39 +0200)
commit9128b67269c4072d7a9c01570811d9c3e9bbf00d
tree5426e4990cffbd2c193d940166768e2632a2aca3
parent20cace9014c253a99ac9bba31c972d68d39331f5
Extend hostapd rsnxe_override_eapol to allow IE removal

Previous implementation was determining whether the override value was
set based on its length being larger than zero. Replace this with an
explicit indication of whether the parameter is set to allow zero length
replacement, i.e., remove of RSNXE from EAPOL-Key msg 3/4.

In addition, move IE replacement into a more generic helper function to
allow this to be used with other IEs as well.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/wpa_auth.c
src/ap/wpa_auth.h
src/ap/wpa_auth_glue.c