ike-sa: Add option to force the destruction of an IKE_SA after initiating a delete

This commit is contained in:
Tobias Brunner
2018-05-22 10:06:07 +02:00
parent c58434aeff
commit a79d510354
11 changed files with 50 additions and 39 deletions
@@ -64,7 +64,7 @@ METHOD(job_t, execute, job_requeue_t,
}
if (this->delete_if_established)
{
if (ike_sa->delete(ike_sa) == DESTROY_ME)
if (ike_sa->delete(ike_sa, FALSE) == DESTROY_ME)
{
charon->ike_sa_manager->checkin_and_destroy(
charon->ike_sa_manager, ike_sa);
@@ -101,7 +101,7 @@ METHOD(job_t, execute, job_requeue_t,
{
DBG1(DBG_JOB, "deleting IKE_SA after %d seconds "
"of CHILD_SA inactivity", this->timeout);
status = ike_sa->delete(ike_sa);
status = ike_sa->delete(ike_sa, FALSE);
}
else
{