ikev2: Add possibility to delay initiation of a queued task
authorTobias Brunner <tobias@strongswan.org>
Thu, 2 Jun 2016 13:50:11 +0000 (15:50 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Jun 2016 16:48:07 +0000 (18:48 +0200)
commit208678e6e1b8222073cc684392d08c839edeb50e
treebd75d8b1d2ab4a1b06249503e6cf61f9396f385e
parent4e2e7d4fecdc583827b8ce7c8429f4d4bce8df0d
ikev2: Add possibility to delay initiation of a queued task

Such a task is not initiated unless a certain time has passed.  This
allows delaying certain tasks but avoids problems if we'd do this
via a scheduled job (e.g. if the IKE_SA is rekeyed in the meantime).

If the IKE_SA is rekeyed the delay of such tasks is reset when the
tasks are adopted i.e. they get executed immediately on the new IKE_SA.

This hasn't been implemented for IKEv1 yet.
src/libcharon/sa/ike_sa.c
src/libcharon/sa/ike_sa.h
src/libcharon/sa/ikev1/task_manager_v1.c
src/libcharon/sa/ikev2/task_manager_v2.c
src/libcharon/sa/task_manager.h