EAP-IKEv2 server: Use configured server identity
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8f89d828b1
commit
162865bc97
1 changed files with 5 additions and 2 deletions
|
@ -103,8 +103,11 @@ static void * eap_ikev2_init(struct eap_sm *sm)
|
||||||
data->ikev2.proposal.encr = ENCR_AES_CBC;
|
data->ikev2.proposal.encr = ENCR_AES_CBC;
|
||||||
data->ikev2.proposal.dh = DH_GROUP2_1024BIT_MODP;
|
data->ikev2.proposal.dh = DH_GROUP2_1024BIT_MODP;
|
||||||
|
|
||||||
data->ikev2.IDi = (u8 *) os_strdup("hostapd");
|
data->ikev2.IDi = os_malloc(sm->server_id_len);
|
||||||
data->ikev2.IDi_len = 7;
|
if (data->ikev2.IDi == NULL)
|
||||||
|
goto failed;
|
||||||
|
os_memcpy(data->ikev2.IDi, sm->server_id, sm->server_id_len);
|
||||||
|
data->ikev2.IDi_len = sm->server_id_len;
|
||||||
|
|
||||||
data->ikev2.get_shared_secret = eap_ikev2_get_shared_secret;
|
data->ikev2.get_shared_secret = eap_ikev2_get_shared_secret;
|
||||||
data->ikev2.cb_ctx = sm;
|
data->ikev2.cb_ctx = sm;
|
||||||
|
|
Loading…
Reference in a new issue