aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-09-01 22:52:15 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-04 10:32:03 (GMT)
commit3648d8a1854a403b3674ec55681c76bb713ee77a (patch)
tree8d849020370e0112687858aec00ef836a5099d13 /hostapd
parent1342c47a3329f3d2dbca57c1948ef50df0cdbc7b (diff)
downloadhostap-3648d8a1854a403b3674ec55681c76bb713ee77a.zip
hostap-3648d8a1854a403b3674ec55681c76bb713ee77a.tar.gz
hostap-3648d8a1854a403b3674ec55681c76bb713ee77a.tar.bz2
SAE: Allow commit fields to be overridden for testing purposes
The new sae_commit_override=<hexdump> parameter can be used to force hostapd to override SAE commit message fields for testing purposes. This is included only in CONFIG_TESTING_OPTIONS=y builds. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 7f1965b..958fdbf 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3563,6 +3563,9 @@ static int hostapd_config_fill(struct hostapd_config *conf,
bss->own_ie_override = tmp;
} else if (os_strcmp(buf, "sae_reflection_attack") == 0) {
bss->sae_reflection_attack = atoi(pos);
+ } else if (os_strcmp(buf, "sae_commit_override") == 0) {
+ wpabuf_free(bss->sae_commit_override);
+ bss->sae_commit_override = wpabuf_parse_bin(pos);
#endif /* CONFIG_TESTING_OPTIONS */
} else if (os_strcmp(buf, "vendor_elements") == 0) {
if (parse_wpabuf_hex(line, buf, &bss->vendor_elements, pos))