]> git.ipfire.org Git - thirdparty/strongswan.git/commit
unit-tests: Ensure listeners can track SAs via ike/child_updown/rekey()
authorTobias Brunner <tobias@strongswan.org>
Fri, 9 Sep 2022 16:34:29 +0000 (18:34 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 1 Dec 2023 08:38:45 +0000 (09:38 +0100)
commitd936902d7da9ede4f4aefae56792afb944822bba
treebc260b7e970f44a264df247138a51cc02e2c47f4
parent34de38fabd18261abc7f5405bf42c6401b380020
unit-tests: Ensure listeners can track SAs via ike/child_updown/rekey()

Previously, it could happen that child_rekey() was triggered twice for
the same "old" SA.  For listeners that would mean they'd loose track as
they'd be tracking a new SA that wasn't relevant anymore and for which
no updown event would ever get triggered (it was the redundant SA in a
collision).  This new assert ensures that events are triggered in a
predictable way and listeners can track SAs properly.
src/libcharon/tests/suites/test_child_rekey.c
src/libcharon/tests/suites/test_ike_rekey.c
src/libcharon/tests/utils/exchange_test_asserts.c
src/libcharon/tests/utils/exchange_test_asserts.h