implemented reauthentication using the new reauth=yes|no parameter
This commit is contained in:
@@ -790,7 +790,8 @@ static status_t get_response(private_ike_sa_init_t *this,
|
||||
return DESTROY_ME;
|
||||
}
|
||||
|
||||
this->ike_sa->set_lifetimes(this->ike_sa,
|
||||
this->ike_sa->set_lifetimes(this->ike_sa,
|
||||
this->connection->get_reauth(this->connection),
|
||||
this->connection->get_soft_lifetime(this->connection),
|
||||
this->connection->get_hard_lifetime(this->connection));
|
||||
|
||||
@@ -1030,6 +1031,7 @@ static status_t conclude(private_ike_sa_init_t *this, message_t *response,
|
||||
}
|
||||
|
||||
this->ike_sa->set_lifetimes(this->ike_sa,
|
||||
this->connection->get_reauth(this->connection),
|
||||
this->connection->get_soft_lifetime(this->connection),
|
||||
this->connection->get_hard_lifetime(this->connection));
|
||||
|
||||
|
||||
@@ -366,6 +366,7 @@ static status_t switchto_new_sa(private_rekey_ike_sa_t* this, bool initiator)
|
||||
this->new_sa->apply_connection(this->new_sa, this->connection);
|
||||
this->new_sa->set_state(this->new_sa, IKE_ESTABLISHED);
|
||||
this->new_sa->set_lifetimes(this->new_sa,
|
||||
this->connection->get_reauth(this->connection),
|
||||
this->connection->get_soft_lifetime(this->connection),
|
||||
this->connection->get_hard_lifetime(this->connection));
|
||||
return SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user