]> git.ipfire.org Git - thirdparty/strongswan.git/commit
ha: Destroy incomplete IKE_SAs after de-/activating a segment
authorTobias Brunner <tobias@strongswan.org>
Fri, 6 Dec 2024 14:02:13 +0000 (15:02 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Feb 2025 15:02:41 +0000 (16:02 +0100)
commit97bd0e2297ed1df69337188168b338ed404b64e0
treef59bd5534ce261d79f5b59211b42c667ec54d88d
parentfd6ac87fc3b54bb55cb43e0b38b2784ffe66a2bd
ha: Destroy incomplete IKE_SAs after de-/activating a segment

The node that gets activated usually won't be able to complete the
IKE_SA mainly because the IKE keys are now derived delayed, so the key
material required to process a message often won't be available (only
later IKE_AUTH messages and retransmits of earlier messages that the
active node already received and synced the keys for may be decrypted).

A second issue affects IKE_SAs with multiple key exchanges.  Because the
IntAuth value(s) are currently not synced, which are necessary to
verify/create the AUTH payloads, the IKE_AUTH exchange couldn't be
completed.
src/libcharon/plugins/ha/ha_segments.c