Move establish/inherit of rekeyed IKE_SAs to delete messages
authorMartin Willi <martin@revosec.ch>
Tue, 15 Mar 2011 14:20:09 +0000 (15:20 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 15 Mar 2011 14:20:09 +0000 (15:20 +0100)
commit3ced6b51e462201c32954ae9cb23449a377be3fa
tree82a50c1d93c4297cde095db4a7e8b14ed866ea5c
parentf42156a8c8f4d24927f397951b121aea5ce027f4
Move establish/inherit of rekeyed IKE_SAs to delete messages

Having the inherit() function delayed to the IKE_SA establish procedure
was problematic. The task destroy function was never a good place and
results in locking/cleanup problems. After establishing the SA, it
should be really checked in ASAP to avoid any triggered DPD checks
to get lost.
src/libcharon/sa/ike_sa.c
src/libcharon/sa/ike_sa.h
src/libcharon/sa/task_manager.c
src/libcharon/sa/tasks/child_rekey.c
src/libcharon/sa/tasks/ike_rekey.c