aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-08-19 22:37:31 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-19 23:13:22 (GMT)
commite54cfbb56abd7585ae0182d43638db3fa4685df1 (patch)
treeaa16dc12b694a24bb4bf7d2b52820c1d035e228e /src/radius
parentf186ec54c3ab242c21c2ec7aef271681b0f38b06 (diff)
downloadhostap-e54cfbb56abd7585ae0182d43638db3fa4685df1.zip
hostap-e54cfbb56abd7585ae0182d43638db3fa4685df1.tar.gz
hostap-e54cfbb56abd7585ae0182d43638db3fa4685df1.tar.bz2
EAP-TEAP server: Allow a specific Identity-Type to be requested/required
The new hostapd configuration parameter eap_teap_id can be used to configure the expected behavior for used identity type. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius_server.c1
-rw-r--r--src/radius/radius_server.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/radius/radius_server.c b/src/radius/radius_server.c
index a24caec..067147b 100644
--- a/src/radius/radius_server.c
+++ b/src/radius/radius_server.c
@@ -2242,6 +2242,7 @@ radius_server_init(struct radius_server_conf *conf)
eap_cfg->eap_teap_auth = conf->eap_teap_auth;
eap_cfg->eap_teap_pac_no_inner = conf->eap_teap_pac_no_inner;
eap_cfg->eap_teap_separate_result = conf->eap_teap_separate_result;
+ eap_cfg->eap_teap_id = conf->eap_teap_id;
data->get_eap_user = conf->get_eap_user;
eap_cfg->eap_sim_aka_result_ind = conf->eap_sim_aka_result_ind;
eap_cfg->eap_sim_id = conf->eap_sim_id;
diff --git a/src/radius/radius_server.h b/src/radius/radius_server.h
index c8c17db..580a653 100644
--- a/src/radius/radius_server.h
+++ b/src/radius/radius_server.h
@@ -131,6 +131,7 @@ struct radius_server_conf {
int eap_teap_auth;
int eap_teap_pac_no_inner;
int eap_teap_separate_result;
+ int eap_teap_id;
/**
* eap_sim_aka_result_ind - EAP-SIM/AKA protected success indication