aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-06-18 10:48:57 (GMT)
committerJouni Malinen <j@w1.fi>2017-06-19 18:13:17 (GMT)
commitb979caae57ad2189af6f4ec6dd00767163f9a4c5 (patch)
treeb58f40fd019da6e27d1f9e43efaf4166530fe46f /wpa_supplicant/config.c
parent0c52953b0fe598e045182fb983decc3c673c4d6d (diff)
downloadhostap-b979caae57ad2189af6f4ec6dd00767163f9a4c5.zip
hostap-b979caae57ad2189af6f4ec6dd00767163f9a4c5.tar.gz
hostap-b979caae57ad2189af6f4ec6dd00767163f9a4c5.tar.bz2
DPP: Network profile parameters for DPP AKM
Extend wpa_supplicant network profile to include parameters needed for the DPP AKM: dpp_connector, dpp_netaccesskey, dpp_netaccesskey_expiry, dpp_csign, dpp_csign_expiry. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 0be77ff..8bf4b38 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -2239,6 +2239,13 @@ static const struct parse_data ssid_fields[] = {
{ INT_RANGE(pbss, 0, 2) },
{ INT_RANGE(wps_disabled, 0, 1) },
{ INT_RANGE(fils_dh_group, 0, 65535) },
+#ifdef CONFIG_DPP
+ { STR(dpp_connector) },
+ { STR_LEN(dpp_netaccesskey) },
+ { INT(dpp_netaccesskey_expiry) },
+ { STR_LEN(dpp_csign) },
+ { INT(dpp_csign_expiry) },
+#endif /* CONFIG_DPP */
};
#undef OFFSET
@@ -2424,6 +2431,9 @@ void wpa_config_free_ssid(struct wpa_ssid *ssid)
#ifdef CONFIG_MESH
os_free(ssid->mesh_basic_rates);
#endif /* CONFIG_MESH */
+ os_free(ssid->dpp_connector);
+ bin_clear_free(ssid->dpp_netaccesskey, ssid->dpp_netaccesskey_len);
+ os_free(ssid->dpp_csign);
while ((psk = dl_list_first(&ssid->psk_list, struct psk_list_entry,
list))) {
dl_list_del(&psk->list);