aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-29 16:40:10 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-29 18:00:02 (GMT)
commit4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55 (patch)
treed54c7efcc842a956cbadc58cbd1f9a19d5d90af0 /wpa_supplicant/sme.h
parentfbfc974c6c4307a61b3b4eaf31923d3533dd52de (diff)
downloadhostap-4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55.zip
hostap-4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55.tar.gz
hostap-4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55.tar.bz2
SAE: Clear keys from memory on disassociation
There is no need to keep temporary keys in memory beyond the end of the association, so explicitly clear any SAE buffers that can contain keys as soon as such keys are not needed. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.h')
-rw-r--r--wpa_supplicant/sme.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.h b/wpa_supplicant/sme.h
index 04404c1..fd5c3b4 100644
--- a/wpa_supplicant/sme.h
+++ b/wpa_supplicant/sme.h
@@ -33,6 +33,7 @@ void sme_sa_query_rx(struct wpa_supplicant *wpa_s, const u8 *sa,
void sme_state_changed(struct wpa_supplicant *wpa_s);
void sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
const u8 *prev_pending_bssid);
+void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s);
void sme_deinit(struct wpa_supplicant *wpa_s);
int sme_proc_obss_scan(struct wpa_supplicant *wpa_s);
@@ -94,6 +95,10 @@ sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
{
}
+static inline void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s)
+{
+}
+
static inline void sme_deinit(struct wpa_supplicant *wpa_s)
{
}