Added a TODO for creating IKE_SAs with unsupported protocol version

This commit is contained in:
Martin Willi
2012-03-20 17:31:28 +01:00
parent 38bb727c06
commit 438a8d785f
+3 -5
View File
@@ -1871,11 +1871,6 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id, bool initiator,
private_ike_sa_t *this;
static u_int32_t unique_id = 0;
if (version != IKEV1)
{
version = IKEV2;
}
INIT(this,
.public = {
.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->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;
}