From 2ec2426597a5933342f11cf0f05c206550f93d5d Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Mon, 23 Nov 2026 08:40:03 +0100 Subject: [PATCH] ipsec, imsd: two comments cite the part of RFC 3329 that holds their rule That a Security-Verify mirrors the server's whole list is in 2.3.1, and that an absent ealg means no encryption is in Appendix A, the syntax of ipsec-3gpp; both comments named 2.2, the syntax of the header fields. Comments only. --- implementations/main.cpp | 2 +- interfaces/Imsd-Ipsec.cppm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/implementations/main.cpp b/implementations/main.cpp index b1bd4b0..9d726a1 100644 --- a/implementations/main.cpp +++ b/implementations/main.cpp @@ -2085,7 +2085,7 @@ private: std::vector autn16(raw->begin() + 16, raw->begin() + 32); // Every Security-Server instance is one comma-list (RFC 3261 // §7.3.1); the joined value is what Security-Verify echoes — RFC - // 3329 §2.2 wants the whole list back, not the chosen entry. + // 3329 §2.3.1 wants the whole list back, not the chosen entry. auto ssLines = imsd::sip::Headers(resp, "Security-Server"); if (ssLines.empty()) throw std::runtime_error("no Security-Server"); ss_.clear(); diff --git a/interfaces/Imsd-Ipsec.cppm b/interfaces/Imsd-Ipsec.cppm index 84f36a5..c9ae18a 100644 --- a/interfaces/Imsd-Ipsec.cppm +++ b/interfaces/Imsd-Ipsec.cppm @@ -66,8 +66,8 @@ export namespace imsd::ipsec { return std::nullopt; } - // Canonical ealg name: absent is the null cipher (RFC 3329 §2.2), "3des" - // (imsd's EALG alias) is des-ede3-cbc. Used on both sides of the + // Canonical ealg name: absent is the null cipher (RFC 3329 Appendix A), + // "3des" (imsd's EALG alias) is des-ede3-cbc. Used on both sides of the // offer/answer comparison. std::string NormalizeEalg(std::string_view ealg) { if (ealg.empty()) return "null";