aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-01-01 09:29:53 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-12 15:51:52 (GMT)
commita46d72d7d703a6bb7d3af9e5f5e1c52cb604d571 (patch)
tree6336531a72a4c60c1e5961d133dbf281ba7eca11 /wpa_supplicant/sme.c
parentaadabe7045fe38846793cc577d78fae9cfe13d76 (diff)
downloadhostap-a46d72d7d703a6bb7d3af9e5f5e1c52cb604d571.zip
hostap-a46d72d7d703a6bb7d3af9e5f5e1c52cb604d571.tar.gz
hostap-a46d72d7d703a6bb7d3af9e5f5e1c52cb604d571.tar.bz2
SAE: Maintain EC group context in struct sae_data
This can be used to share same EC group context through the SAE exchange. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 3aabe17..112c80f 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -54,6 +54,9 @@ static struct wpabuf * sme_auth_build_sae_commit(struct wpa_supplicant *wpa_s,
return NULL;
}
+ if (sae_set_group(&wpa_s->sme.sae, 19) < 0)
+ return NULL;
+
if (sae_prepare_commit(wpa_s->own_addr, bssid,
(u8 *) ssid->passphrase,
os_strlen(ssid->passphrase),
@@ -815,6 +818,7 @@ void sme_deinit(struct wpa_supplicant *wpa_s)
#ifdef CONFIG_SAE
wpabuf_free(wpa_s->sme.sae_token);
wpa_s->sme.sae_token = NULL;
+ sae_clear_data(&wpa_s->sme.sae);
#endif /* CONFIG_SAE */
eloop_cancel_timeout(sme_assoc_timer, wpa_s, NULL);