aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-10-11 20:09:16 (GMT)
committerJouni Malinen <j@w1.fi>2017-10-11 20:24:19 (GMT)
commita34ca59e4db0df63034fed4def121eaecc65bfa7 (patch)
tree1168ebf27bc4b26fbd4284d5fdedab41b3d6b78b /wpa_supplicant/config.c
parent2377c1caef77c9c309681ad419b87cafc1c10e28 (diff)
downloadhostap-a34ca59e4db0df63034fed4def121eaecc65bfa7.zip
hostap-a34ca59e4db0df63034fed4def121eaecc65bfa7.tar.gz
hostap-a34ca59e4db0df63034fed4def121eaecc65bfa7.tar.bz2
SAE: Allow SAE password to be configured separately (STA)
The new sae_password network profile parameter can now be used to set the SAE password instead of the previously used psk parameter. This allows shorter than 8 characters and longer than 63 characters long passwords to be used. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 1ff0799..070210d 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -2115,6 +2115,7 @@ static const struct parse_data ssid_fields[] = {
{ FUNC(bssid_whitelist) },
{ FUNC_KEY(psk) },
{ INT(mem_only_psk) },
+ { STR_KEY(sae_password) },
{ FUNC(proto) },
{ FUNC(key_mgmt) },
{ INT(bg_scan_period) },
@@ -2450,6 +2451,7 @@ void wpa_config_free_ssid(struct wpa_ssid *ssid)
os_free(ssid->ssid);
str_clear_free(ssid->passphrase);
os_free(ssid->ext_psk);
+ str_clear_free(ssid->sae_password);
#ifdef IEEE8021X_EAPOL
eap_peer_config_free(&ssid->eap);
#endif /* IEEE8021X_EAPOL */