aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-09-01 22:31:47 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-04 10:32:03 (GMT)
commite75335384a29987bf856bdf0a70af1c1b2a606eb (patch)
tree32219109898551523b089271a3b2bb47f6f2fa8f /hostapd
parente61fea6b467bec0702096c795b06195584d32a6c (diff)
downloadhostap-e75335384a29987bf856bdf0a70af1c1b2a606eb.zip
hostap-e75335384a29987bf856bdf0a70af1c1b2a606eb.tar.gz
hostap-e75335384a29987bf856bdf0a70af1c1b2a606eb.tar.bz2
SAE: Add testing code for reflection attack
Allow hostapd to be configured to perform SAE reflection attack for SAE testing purposes with sae_reflection_attack=1 configuration parameter. 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index cc799d4..7f1965b 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3561,6 +3561,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
wpabuf_free(bss->own_ie_override);
bss->own_ie_override = tmp;
+ } else if (os_strcmp(buf, "sae_reflection_attack") == 0) {
+ bss->sae_reflection_attack = atoi(pos);
#endif /* CONFIG_TESTING_OPTIONS */
} else if (os_strcmp(buf, "vendor_elements") == 0) {
if (parse_wpabuf_hex(line, buf, &bss->vendor_elements, pos))