imsd/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf d3c1ba4a29
ipsec: the default offer names the null cipher beside aes-cbc
The UE is to announce the IPsec algorithms it supports (TS 24.229
5.1.1.2.2 d), and TS 33.203 7.2 has its first REGISTER carry "a list of
identifiers for the integrity and encryption algorithms, which the UE
supports". The null cipher is one a UE must support (7.1 by TS 33.210
5.3.3 and RFC 8221; GSMA IR.92 5.3), and imsd can install it, but its
default offer named aes-cbc alone.

Ice Norway has answered imsd's first REGISTER 403 (2026-11-01, -02),
where the phone's own modem had carried a call with the CS domain
detached (2026-09-02). On Odido it drew an answer that the imsd of that
day did not log, and the Python stack's REGISTER minutes later a 403
(2026-09-16), with a SIM that another Fairphone 6's own IMS client had
registered with (2026-07-15). That client's four mechanisms were
answered with one naming ealg=null, as the Python stack's offer of the
null cipher was (2026-07-13). Whether the offer is the reason for either
answer is not measured.

The default offer is aes-cbc, then null. A P-CSCF that selects the null
cipher from it gets SAs that protect the signalling's integrity and do
not encrypt it; EALG=aes-cbc gives 1.2.1's offer.

Tested: the suites; the daemon of this commit against a stand-in P-CSCF
on the workstation that refuses an offer without the null cipher (imsd
1.2.1 is answered 403 there, this commit's is challenged and selects the
null mechanism); on the FP6 on KPN, in an earlier build of this change,
on 1.2.0, a reregistration and a fresh registration with the default
offer: KPN named aes-cbc, and answered the reregistration, the fresh
registration's protected REGISTER and the reg-event SUBSCRIBEs 200.
2026-11-23 11:19:04 +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 default offer names the null cipher beside aes-cbc 2026-11-23 11:19:04 +01:00
Messages ipsec: the default offer names the null cipher beside aes-cbc 2026-11-23 11:19:04 +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