imsd/interfaces
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
..
Imsd-Aka.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Engine.cppm sms, engine: a class 2 message is refused, not acknowledged, unless it is a short message type 0 2026-11-22 17:35:13 +01:00
Imsd-Ipsec.cppm ipsec: the Security-Verify rebuilt from the kernel's SA names the SA's algorithms 2026-11-23 10:07:59 +01:00
Imsd-Messages.cppm messages: the header names the 400 among what the module covers 2026-11-23 08:39:47 +01:00
Imsd-Qmi.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Sdp.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Sip.cppm sip: a received message's header section is unfolded where it is framed 2026-11-22 17:35:12 +01:00
Imsd-Sms.cppm sms, engine: a class 2 message is refused, not acknowledged, unless it is a short message type 0 2026-11-22 17:35:13 +01:00
Imsd-Util.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd.cppm sms: the short message codecs of TS 23.038, 23.040 and 24.011, and EF_SMSP 2026-11-19 16:43:15 +01:00
ImsdBus.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00