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>
This commit is contained in:
parent
06aeff5f8f
commit
67fe933d40
13 changed files with 46 additions and 0 deletions
|
@ -1828,6 +1828,13 @@ int ieee802_1x_init(struct hostapd_data *hapd)
|
|||
conf.fragment_size = hapd->conf->fragment_size;
|
||||
conf.pwd_group = hapd->conf->pwd_group;
|
||||
conf.pbc_in_m1 = hapd->conf->pbc_in_m1;
|
||||
if (hapd->conf->server_id) {
|
||||
conf.server_id = (const u8 *) hapd->conf->server_id;
|
||||
conf.server_id_len = os_strlen(hapd->conf->server_id);
|
||||
} else {
|
||||
conf.server_id = (const u8 *) "hostapd";
|
||||
conf.server_id_len = 7;
|
||||
}
|
||||
|
||||
os_memset(&cb, 0, sizeof(cb));
|
||||
cb.eapol_send = ieee802_1x_eapol_send;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue