aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-08-16 20:54:51 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-16 21:08:47 (GMT)
commit76ddfae6eba148a528629cb12146bc8abf2b42d8 (patch)
tree894b0c2f06f9e22d2cc2150a9ee1c5ca8da07882 /hostapd
parent4c327146f04abc102fda7d9a5508c0bde0184c94 (diff)
downloadhostap-76ddfae6eba148a528629cb12146bc8abf2b42d8.zip
hostap-76ddfae6eba148a528629cb12146bc8abf2b42d8.tar.gz
hostap-76ddfae6eba148a528629cb12146bc8abf2b42d8.tar.bz2
EAP-TEAP server: Testing mechanism for Result TLV in a separate message
The new eap_teap_separate_result=1 hostapd configuration parameter can be used to test TEAP exchange where the Intermediate-Result TLV and Crypto-Binding TLV are send in one message exchange while the Result TLV exchange in done after that in a separate message exchange. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf5
2 files changed, 7 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index e09e6e1..1ef7d57 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2620,6 +2620,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
bss->eap_teap_auth = val;
} else if (os_strcmp(buf, "eap_teap_pac_no_inner") == 0) {
bss->eap_teap_pac_no_inner = atoi(pos);
+ } else if (os_strcmp(buf, "eap_teap_separate_result") == 0) {
+ bss->eap_teap_separate_result = atoi(pos);
#endif /* EAP_SERVER_TEAP */
#ifdef EAP_SERVER_SIM
} else if (os_strcmp(buf, "eap_sim_db") == 0) {
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index adfc7bd..f36e1fa 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -1201,6 +1201,11 @@ eap_server=0
# 1 = skip inner authentication (inner EAP/Basic-Password-Auth)
#eap_teap_pac_no_inner=0
+# EAP-TEAP behavior with Result TLV
+# 0 = include with Intermediate-Result TLV (default)
+# 1 = send in a separate message (for testing purposes)
+#eap_teap_separate_result=0
+
# EAP-SIM and EAP-AKA protected success/failure indication using AT_RESULT_IND
# (default: 0 = disabled).
#eap_sim_aka_result_ind=1