aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-12-30 20:31:19 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-12 15:51:52 (GMT)
commitf2e9818f73215024944b2db648a03c64ba1b8cc5 (patch)
tree840b301df298eaad7564d68dcfc281ef2f05583c /wpa_supplicant/sme.c
parentfb8fcc2950009dcc65aa25564267147c5ec1b2b0 (diff)
downloadhostap-f2e9818f73215024944b2db648a03c64ba1b8cc5.zip
hostap-f2e9818f73215024944b2db648a03c64ba1b8cc5.tar.gz
hostap-f2e9818f73215024944b2db648a03c64ba1b8cc5.tar.bz2
SAE: Add processing of the confirm message
This adds validation of the received confirm messages for SAE. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index a4a29dc..870313d 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -399,21 +399,6 @@ void sme_authenticate(struct wpa_supplicant *wpa_s,
#ifdef CONFIG_SAE
-static int sme_sae_process_confirm(struct wpa_supplicant *wpa_s, const u8 *data,
- size_t len)
-{
- u16 rc;
-
- if (len < 2)
- return -1;
- rc = WPA_GET_LE16(data);
- wpa_printf(MSG_DEBUG, "SAE: peer-send-confirm %u", rc);
-
- /* TODO */
- return 0;
-}
-
-
static int sme_sae_auth(struct wpa_supplicant *wpa_s, u16 auth_transaction,
u16 status_code, const u8 *data, size_t len)
{
@@ -448,7 +433,7 @@ static int sme_sae_auth(struct wpa_supplicant *wpa_s, u16 auth_transaction,
wpa_dbg(wpa_s, MSG_DEBUG, "SME SAE confirm");
if (wpa_s->sme.sae.state != SAE_CONFIRM)
return -1;
- if (sme_sae_process_confirm(wpa_s, data, len) < 0)
+ if (sae_check_confirm(&wpa_s->sme.sae, data, len) < 0)
return -1;
return 1;
}