diff options
author | Jouni Malinen <j@w1.fi> | 2013-07-06 15:17:15 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2013-07-07 17:30:10 (GMT) |
commit | 67fe933d40151f573c26122812141d2c64f0cefc (patch) | |
tree | 837505f651628a7d3949912bfa6d8cc1d901e7af /src/eapol_auth/eapol_auth_sm.c | |
parent | 06aeff5f8f2ba6d116911a1e3507519c44ee5043 (diff) | |
download | hostap-67fe933d40151f573c26122812141d2c64f0cefc.zip hostap-67fe933d40151f573c26122812141d2c64f0cefc.tar.gz hostap-67fe933d40151f573c26122812141d2c64f0cefc.tar.bz2 |
Add server identity configuration for EAP server
The new server_id parameter in hostapd.conf can now be used to specify
which identity is delivered to the EAP peer with EAP methods that
support authenticated server identity.
Signed-hostap: 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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eapol_auth/eapol_auth_sm.c b/src/eapol_auth/eapol_auth_sm.c index c3ccb46..013d781 100644 --- a/src/eapol_auth/eapol_auth_sm.c +++ b/src/eapol_auth/eapol_auth_sm.c @@ -830,6 +830,8 @@ eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr, eap_conf.fragment_size = eapol->conf.fragment_size; eap_conf.pwd_group = eapol->conf.pwd_group; eap_conf.pbc_in_m1 = eapol->conf.pbc_in_m1; + eap_conf.server_id = eapol->conf.server_id; + eap_conf.server_id_len = eapol->conf.server_id_len; sm->eap = eap_server_sm_init(sm, &eapol_cb, &eap_conf); if (sm->eap == NULL) { eapol_auth_free(sm); @@ -1045,6 +1047,8 @@ static int eapol_auth_conf_clone(struct eapol_auth_config *dst, os_free(dst->eap_req_id_text); dst->pwd_group = src->pwd_group; dst->pbc_in_m1 = src->pbc_in_m1; + dst->server_id = src->server_id; + dst->server_id_len = src->server_id_len; if (src->eap_req_id_text) { dst->eap_req_id_text = os_malloc(src->eap_req_id_text_len); if (dst->eap_req_id_text == NULL) |