]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/rsn_supp/wpa.c
Clear temporary keys from WPA supplicant state machine when not needed
authorJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 11:00:03 +0000 (13:00 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 17:44:51 +0000 (19:44 +0200)
commit7193254456259a4171ba61f8c6f7ae2a382385df
tree74985d0db363881f54352547620359806cd0cd43
parent13113d127c032fec3a37dbbd004e92180716800a
Clear temporary keys from WPA supplicant state machine when not needed

PMK and PTK are not needed in the supplicant state machine after
disassociation since core wpa_supplicant will reconfigure them for the
next association. As such, clear these from heap in
wpa_sm_notify_disassoc() to reduce time and number of places storing key
material in memory. In addition, clear FT keys in case of
CONFIG_IEEE80211R=y build (sm->xxkey stored a copy of PSK in case of
FT-PSK).

Signed-off-by: Jouni Malinen <j@w1.fi>
src/rsn_supp/wpa.c