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
|
@ -104,6 +104,9 @@ struct eap_config {
|
|||
int fragment_size;
|
||||
|
||||
int pbc_in_m1;
|
||||
|
||||
const u8 *server_id;
|
||||
size_t server_id_len;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -188,6 +188,9 @@ struct eap_sm {
|
|||
int fragment_size;
|
||||
|
||||
int pbc_in_m1;
|
||||
|
||||
const u8 *server_id;
|
||||
size_t server_id_len;
|
||||
};
|
||||
|
||||
int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len,
|
||||
|
|
|
@ -1278,6 +1278,8 @@ struct eap_sm * eap_server_sm_init(void *eapol_ctx,
|
|||
sm->fragment_size = conf->fragment_size;
|
||||
sm->pwd_group = conf->pwd_group;
|
||||
sm->pbc_in_m1 = conf->pbc_in_m1;
|
||||
sm->server_id = conf->server_id;
|
||||
sm->server_id_len = conf->server_id_len;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "EAP: Server state machine created");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue