]> 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>
Wed, 7 Aug 2024 14:20:19 +0000 (16:20 +0200)
commitddb9b274c2f253bd96ee9176570a3dfe2079c2a9
treeaf34830dba134c46655e836ce3ad5da7314780ec
parentd2b2e1b3fae8b49b4c412ee1492d18638d17e497
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