Added a TODO for creating IKE_SAs with unsupported protocol version
This commit is contained in:
@@ -1871,11 +1871,6 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id, bool initiator,
|
|||||||
private_ike_sa_t *this;
|
private_ike_sa_t *this;
|
||||||
static u_int32_t unique_id = 0;
|
static u_int32_t unique_id = 0;
|
||||||
|
|
||||||
if (version != IKEV1)
|
|
||||||
{
|
|
||||||
version = IKEV2;
|
|
||||||
}
|
|
||||||
|
|
||||||
INIT(this,
|
INIT(this,
|
||||||
.public = {
|
.public = {
|
||||||
.get_version = _get_version,
|
.get_version = _get_version,
|
||||||
@@ -1986,5 +1981,8 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id, bool initiator,
|
|||||||
this->task_manager = task_manager_create(&this->public);
|
this->task_manager = task_manager_create(&this->public);
|
||||||
this->my_host->set_port(this->my_host, IKEV2_UDP_PORT);
|
this->my_host->set_port(this->my_host, IKEV2_UDP_PORT);
|
||||||
|
|
||||||
|
/* TODO-IKEv1: check if keymat and task manager created successfully.
|
||||||
|
* Return NULL otherwise? */
|
||||||
|
|
||||||
return &this->public;
|
return &this->public;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user