imsd/tests
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
..
Aka tests: every suite returns 1 for a failure, not the count 2026-11-22 17:35:11 +01:00
Engine 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
Ipsec ipsec: the Security-Verify rebuilt from the kernel's SA names the SA's algorithms 2026-11-23 10:07:59 +01:00
Messages sip, messages, imsd: the client flow answers a request datagram cut short of the Content-Length it reads with a 400, unless an ACK or a CANCEL 2026-11-22 17:35:11 +01:00
Qmi tests: every suite returns 1 for a failure, not the count 2026-11-22 17:35:11 +01:00
Sdp tests: every suite returns 1 for a failure, not the count 2026-11-22 17:35:11 +01:00
Sip sip: a received message's header section is unfolded where it is framed 2026-11-22 17:35:12 +01:00
Sms sms, engine, imsd: a segment that gets no answer, or an RP-ERROR with cause 41, is sent once more with TP-RD set 2026-11-22 17:35:12 +01:00
Util tests: every suite returns 1 for a failure, not the count 2026-11-22 17:35:11 +01:00