ikev2: Add a new state to track rekeyed IKE_SAs
authorTobias Brunner <tobias@strongswan.org>
Sat, 28 May 2016 07:34:29 +0000 (09:34 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Jun 2016 16:48:05 +0000 (18:48 +0200)
commitbb3899739d74356b2f365b73917cd0c8eedbdc92
tree0c3922978558dc293d8620502a1685264a511c08
parentd6ac7496e639d2af5fdceccaf285e60f93fd39bf
ikev2: Add a new state to track rekeyed IKE_SAs

This makes handling such IKE_SAs more specifically compared to keeping them
in state IKE_CONNECTING or IKE_ESTABLISHED (which we did when we lost a
collision - even triggering the ike_updown event), or using IKE_REKEYING for
them, which would also be ambiguous.

For instance, we can now reject anything but DELETES for such SAs.
src/libcharon/sa/ike_sa.c
src/libcharon/sa/ike_sa.h
src/libcharon/sa/ike_sa_manager.c
src/libcharon/sa/ikev2/task_manager_v2.c
src/libcharon/sa/ikev2/tasks/ike_delete.c
src/libcharon/sa/ikev2/tasks/ike_rekey.c
src/libcharon/tests/suites/test_ike_rekey.c