ike-sa: Add flags to force updating hosts/CHILD_SAs

This allows more fine grained control over what's updated and does not
require multiple calls of the method. Plus we'll be able to use it in
the ike-mobike task.
This commit is contained in:
Tobias Brunner
2021-01-18 11:34:40 +01:00
parent 08a3ee0cce
commit 51c7cf9a04
7 changed files with 47 additions and 22 deletions
@@ -76,7 +76,7 @@ METHOD(job_t, execute, job_requeue_t,
}
else
{
ike_sa->update_hosts(ike_sa, NULL, this->new, FALSE);
ike_sa->update_hosts(ike_sa, NULL, this->new, 0);
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
}
return JOB_REQUEUE_NONE;