aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-06-18 14:29:57 (GMT)
committerJouni Malinen <j@w1.fi>2017-06-19 18:13:17 (GMT)
commit56c7549587217ee1f4c23c3c07ee3f7a52c28ce2 (patch)
tree5a067356d44b2ab1b5c1f806ecf18b6fa8ce9906 /hostapd
parentb979caae57ad2189af6f4ec6dd00767163f9a4c5 (diff)
downloadhostap-56c7549587217ee1f4c23c3c07ee3f7a52c28ce2.zip
hostap-56c7549587217ee1f4c23c3c07ee3f7a52c28ce2.tar.gz
hostap-56c7549587217ee1f4c23c3c07ee3f7a52c28ce2.tar.bz2
DPP: AP parameters for DPP AKM
Extend hostapd configuration 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 'hostapd')
-rw-r--r--hostapd/config_file.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 0924d41..0955f91 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3719,6 +3719,21 @@ static int hostapd_config_fill(struct hostapd_config *conf,
bss->multicast_to_unicast = atoi(pos);
} else if (os_strcmp(buf, "broadcast_deauth") == 0) {
bss->broadcast_deauth = atoi(pos);
+#ifdef CONFIG_DPP
+ } else if (os_strcmp(buf, "dpp_connector") == 0) {
+ os_free(bss->dpp_connector);
+ bss->dpp_connector = os_strdup(pos);
+ } else if (os_strcmp(buf, "dpp_netaccesskey") == 0) {
+ if (parse_wpabuf_hex(line, buf, &bss->dpp_netaccesskey, pos))
+ return 1;
+ } else if (os_strcmp(buf, "dpp_netaccesskey_expiry") == 0) {
+ bss->dpp_netaccesskey_expiry = strtol(pos, NULL, 0);
+ } else if (os_strcmp(buf, "dpp_csign") == 0) {
+ if (parse_wpabuf_hex(line, buf, &bss->dpp_csign, pos))
+ return 1;
+ } else if (os_strcmp(buf, "dpp_csign_expiry") == 0) {
+ bss->dpp_csign_expiry = strtol(pos, NULL, 0);
+#endif /* CONFIG_DPP */
} else {
wpa_printf(MSG_ERROR,
"Line %d: unknown configuration item '%s'",