]> git.kaiwu.me - haproxy.git/commit
MINOR: ssl: add curve2name converter
authorWilliam Lallemand <wlallemand@irq6.net>
Tue, 6 Oct 2026 12:59:43 +0000 (14:59 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Tue, 6 Oct 2026 13:39:56 +0000 (15:39 +0200)
commit4ea77731a971c5e17861fc2cfcf78632695aeba4
tree29c548b3445acfd883338126c16d70a93fb30a53
parentc808988fa1873e10439a8cbab3988cabfba3f841
MINOR: ssl: add curve2name converter

Add a string converter to normalize curve names to IANA, ANSI X9.62
or NIST notation. Match both the requested format and input names
case-insensitively, and resolve old ecdh_* aliases to canonical names.

Keep the original string unchanged when no curve matches or the
requested naming convention has no corresponding name. The converter
uses the curve table independently of the SSL library's available NIDs.

Document the supported formats and add regression coverage for curve
aliases, mixed-case formats and unchanged-string fallbacks. The build
and all three SSL curve regression tests pass.
doc/configuration.txt
reg-tests/ssl/curve2name.vtc [new file with mode: 0644]
src/ssl_utils.c