diff options
author | Jouni Malinen <j@w1.fi> | 2015-08-23 18:26:39 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-08-23 23:29:30 (GMT) |
commit | 681e199dfba84e959ae898dba0d294604441a2ad (patch) | |
tree | 515c419fa5963e69c5fab02e82d52c1cab4db7c4 /src/eapol_auth/eapol_auth_sm.c | |
parent | 3f1b792fbe80777a7ffc921e214f26f960255e97 (diff) | |
download | hostap-681e199dfba84e959ae898dba0d294604441a2ad.zip hostap-681e199dfba84e959ae898dba0d294604441a2ad.tar.gz hostap-681e199dfba84e959ae898dba0d294604441a2ad.tar.bz2 |
EAP server: Add tls_session_lifetime configuration
This new hostapd configuration parameter can be used to enable TLS
session resumption. This commit adds the configuration parameter through
the configuration system and RADIUS/EAPOL/EAP server components. The
actual changes to enable session caching will be addressed in followup
commits.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eapol_auth/eapol_auth_sm.c')
-rw-r--r-- | src/eapol_auth/eapol_auth_sm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eapol_auth/eapol_auth_sm.c b/src/eapol_auth/eapol_auth_sm.c index cbd5287..f9f91ad 100644 --- a/src/eapol_auth/eapol_auth_sm.c +++ b/src/eapol_auth/eapol_auth_sm.c @@ -835,6 +835,7 @@ eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr, eap_conf.server_id = eapol->conf.server_id; eap_conf.server_id_len = eapol->conf.server_id_len; eap_conf.erp = eapol->conf.erp; + eap_conf.tls_session_lifetime = eapol->conf.tls_session_lifetime; sm->eap = eap_server_sm_init(sm, &eapol_cb, &eap_conf); if (sm->eap == NULL) { eapol_auth_free(sm); @@ -1229,6 +1230,7 @@ static int eapol_auth_conf_clone(struct eapol_auth_config *dst, } dst->erp_send_reauth_start = src->erp_send_reauth_start; dst->erp = src->erp; + dst->tls_session_lifetime = src->tls_session_lifetime; return 0; |