]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
Add testing functionality for resetting PN/IPN for configured keys
authorJouni Malinen <j@w1.fi>
Sat, 14 Oct 2017 10:41:08 +0000 (13:41 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 Oct 2017 14:43:10 +0000 (17:43 +0300)
commit16579769ff7bb255e101c6b77fb2c47d3735a883
tree53d796d142b46a66182f10e9120a14c798d54600
parentb74f82a4f88107756f2320e9435a61cb165a569a
Add testing functionality for resetting PN/IPN for configured keys

This can be used to test replay protection. The "RESET_PN" command in
wpa_supplicant and "RESET_PN <addr>" command in hostapd resets the local
counters to zero for the last configured key. For hostapd, the address
parameter specifies which STA this operation is for or selects GTK
("ff:ff:ff:ff:ff:ff") or IGTK ("ff:ff:ff:ff:ff:ff IGTK").

This functionality is for testing purposes and included only in builds
with CONFIG_TESTING_OPTIONS=y.

Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/ctrl_iface.c
src/ap/hostapd.h
src/ap/sta_info.h
src/ap/wpa_auth_glue.c
wpa_supplicant/ctrl_iface.c
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant_i.h
wpa_supplicant/wpas_glue.c