imsd/implementations
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 6b0d6341d3
ipsec: the Security-Verify rebuilt from the kernel's SA names the SA's algorithms
A resume sends the 401's Security-Server list from the state file as its
Security-Verify, and where the file holds none for the pair in the
kernel, one mechanism rebuilt from that pair: its SPIs and ports, with
alg=hmac-sha-1-96 and ealg=aes-cbc written in whatever the pair was
installed with. Over a pair with the null cipher, 3DES or hmac-md5-96
that entry named an algorithm the pair does not use, and RFC 3329 2.3.1
has a server answer a Security-Verify that differs from its own list
with a 494.

ParseExistingSa now reads the two names from the state it takes spi-s
from: `ip xfrm state` prints them on its auth-trunc and enc lines, in
the kernel's names for what imsd installs. A state that prints neither
line, or another name, reads as hmac-sha-1-96 and aes-cbc, as before.

Tested: tests/Ipsec, on the lines `ip xfrm state` prints for the SAs
imsd installs (Linux 7.2, iproute2 7.2).
2026-11-23 10:07:59 +01:00
..
dialerd.cpp project, docs: the linter goes 2026-11-19 16:43:16 +01:00
main.cpp ipsec: the Security-Verify rebuilt from the kernel's SA names the SA's algorithms 2026-11-23 10:07:59 +01:00
media.cpp project, docs: the linter goes 2026-11-19 16:43:16 +01:00
ofonod.cpp project, docs: the linter goes 2026-11-19 16:43:16 +01:00
pcscf.cpp project, docs: the linter goes 2026-11-19 16:43:16 +01:00