aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-09-16 21:11:37 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-18 09:12:48 (GMT)
commit6418400db9c2707b5b37789cde67ef96507c08cb (patch)
tree8d11b7dca88ff672dde4321168ec09d23b160d83 /src/radius
parent60ed2f24ebd2515854eed9fc59be75d137cccfb0 (diff)
downloadhostap-6418400db9c2707b5b37789cde67ef96507c08cb.zip
hostap-6418400db9c2707b5b37789cde67ef96507c08cb.tar.gz
hostap-6418400db9c2707b5b37789cde67ef96507c08cb.tar.bz2
Add hostapd tls_flags parameter
This can be used to set the TLS flags for authentication server. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius_server.c4
-rw-r--r--src/radius/radius_server.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/radius/radius_server.c b/src/radius/radius_server.c
index 6cce2ff..c76bb22 100644
--- a/src/radius/radius_server.c
+++ b/src/radius/radius_server.c
@@ -272,6 +272,8 @@ struct radius_server_data {
unsigned int tls_session_lifetime;
+ unsigned int tls_flags;
+
/**
* wps - Wi-Fi Protected Setup context
*
@@ -696,6 +698,7 @@ radius_server_get_new_session(struct radius_server_data *data,
eap_conf.server_id_len = os_strlen(data->server_id);
eap_conf.erp = data->erp;
eap_conf.tls_session_lifetime = data->tls_session_lifetime;
+ eap_conf.tls_flags = data->tls_flags;
radius_server_testing_options(sess, &eap_conf);
sess->eap = eap_server_sm_init(sess, &radius_server_eapol_cb,
&eap_conf);
@@ -1754,6 +1757,7 @@ radius_server_init(struct radius_server_conf *conf)
data->erp = conf->erp;
data->erp_domain = conf->erp_domain;
data->tls_session_lifetime = conf->tls_session_lifetime;
+ data->tls_flags = conf->tls_flags;
if (conf->subscr_remediation_url) {
data->subscr_remediation_url =
diff --git a/src/radius/radius_server.h b/src/radius/radius_server.h
index 7a25802..996f00e 100644
--- a/src/radius/radius_server.h
+++ b/src/radius/radius_server.h
@@ -172,6 +172,8 @@ struct radius_server_conf {
unsigned int tls_session_lifetime;
+ unsigned int tls_flags;
+
/**
* wps - Wi-Fi Protected Setup context
*