aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
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 /src/radius
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 'src/radius')
-rw-r--r--src/radius/radius_server.c3
-rw-r--r--src/radius/radius_server.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/radius/radius_server.c b/src/radius/radius_server.c
index 70efd11..100cf52 100644
--- a/src/radius/radius_server.c
+++ b/src/radius/radius_server.c
@@ -240,6 +240,7 @@ struct radius_server_data {
int eap_teap_auth;
int eap_teap_pac_no_inner;
+ int eap_teap_separate_result;
/**
* eap_sim_aka_result_ind - EAP-SIM/AKA protected success indication
@@ -799,6 +800,7 @@ radius_server_get_new_session(struct radius_server_data *data,
eap_conf.pac_key_refresh_time = data->pac_key_refresh_time;
eap_conf.eap_teap_auth = data->eap_teap_auth;
eap_conf.eap_teap_pac_no_inner = data->eap_teap_pac_no_inner;
+ eap_conf.eap_teap_separate_result = data->eap_teap_separate_result;
eap_conf.eap_sim_aka_result_ind = data->eap_sim_aka_result_ind;
eap_conf.eap_sim_id = data->eap_sim_id;
eap_conf.tnc = data->tnc;
@@ -2394,6 +2396,7 @@ radius_server_init(struct radius_server_conf *conf)
data->pac_key_refresh_time = conf->pac_key_refresh_time;
data->eap_teap_auth = conf->eap_teap_auth;
data->eap_teap_pac_no_inner = conf->eap_teap_pac_no_inner;
+ data->eap_teap_separate_result = conf->eap_teap_separate_result;
data->get_eap_user = conf->get_eap_user;
data->eap_sim_aka_result_ind = conf->eap_sim_aka_result_ind;
data->eap_sim_id = conf->eap_sim_id;
diff --git a/src/radius/radius_server.h b/src/radius/radius_server.h
index 5489694..c8c17db 100644
--- a/src/radius/radius_server.h
+++ b/src/radius/radius_server.h
@@ -130,6 +130,7 @@ struct radius_server_conf {
int eap_teap_auth;
int eap_teap_pac_no_inner;
+ int eap_teap_separate_result;
/**
* eap_sim_aka_result_ind - EAP-SIM/AKA protected success indication