aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-10-08 16:55:23 +0300
committerJouni Malinen <j@w1.fi>2008-10-08 16:55:23 +0300
commit378eae5e9b4e23d533ae1eb0820e8d9cee28a94a (patch)
tree8a9c6fdc5fbc5af5f3af21b9800d7fe1f99e91fc /src/radius
parentf36f51e403ec860b36a872f7488fe28a280e0172 (diff)
downloadexternal_wpa_supplicant_8_ti-378eae5e9b4e23d533ae1eb0820e8d9cee28a94a.zip
external_wpa_supplicant_8_ti-378eae5e9b4e23d533ae1eb0820e8d9cee28a94a.tar.gz
external_wpa_supplicant_8_ti-378eae5e9b4e23d533ae1eb0820e8d9cee28a94a.tar.bz2
EAP-FAST: Added support for disabling anonymous/authenticated provisioning
eap_fast_prov config parameter can now be used to enable/disable different EAP-FAST provisioning modes: 0 = provisioning disabled 1 = only anonymous provisioning allowed 2 = only authenticated provisioning allowed 3 = both provisioning modes allowed
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 0d18d8c..b8cc3df 100644
--- a/src/radius/radius_server.c
+++ b/src/radius/radius_server.c
@@ -86,6 +86,7 @@ struct radius_server_data {
void *ssl_ctx;
u8 *pac_opaque_encr_key;
char *eap_fast_a_id;
+ int eap_fast_prov;
int eap_sim_aka_result_ind;
int tnc;
int ipv6;
@@ -311,6 +312,7 @@ radius_server_get_new_session(struct radius_server_data *data,
eap_conf.eap_server = 1;
eap_conf.pac_opaque_encr_key = data->pac_opaque_encr_key;
eap_conf.eap_fast_a_id = data->eap_fast_a_id;
+ eap_conf.eap_fast_prov = data->eap_fast_prov;
eap_conf.eap_sim_aka_result_ind = data->eap_sim_aka_result_ind;
eap_conf.tnc = data->tnc;
sess->eap = eap_server_sm_init(sess, &radius_server_eapol_cb,
@@ -1016,6 +1018,7 @@ radius_server_init(struct radius_server_conf *conf)
}
if (conf->eap_fast_a_id)
data->eap_fast_a_id = os_strdup(conf->eap_fast_a_id);
+ data->eap_fast_prov = conf->eap_fast_prov;
data->get_eap_user = conf->get_eap_user;
data->eap_sim_aka_result_ind = conf->eap_sim_aka_result_ind;
data->tnc = conf->tnc;
diff --git a/src/radius/radius_server.h b/src/radius/radius_server.h
index 1012a14..c1807e2 100644
--- a/src/radius/radius_server.h
+++ b/src/radius/radius_server.h
@@ -26,6 +26,7 @@ struct radius_server_conf {
void *ssl_ctx;
u8 *pac_opaque_encr_key;
char *eap_fast_a_id;
+ int eap_fast_prov;
int eap_sim_aka_result_ind;
int tnc;
int ipv6;