]> git.ipfire.org Git - thirdparty/hostap.git/commit
Cache hashed passphrase in RADIUS-based PSK delivery
authorMichael Braun <michael-dev@fami-braun.de>
Wed, 24 Feb 2016 11:53:37 +0000 (12:53 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2016 17:06:45 +0000 (19:06 +0200)
commitd8912fd80eb99bf504486e07a6fe3b2a7c154b79
treee53ce11614fd80d311edb90fffd2a7a2fe9070da
parentf8e09bc57e95c14e68ae0af1c3b1854a3f3ac22e
Cache hashed passphrase in RADIUS-based PSK delivery

Instead of copying the full struct hostapd_sta_wpa_psk_short, share the
existing entry and use reference counting to check when it needs to be
freed. This allows caching of PSKs derived from passphrases to avoid
having to perform the heavy hashing operation multiple times.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
src/ap/ap_config.h
src/ap/ieee802_11_auth.c