]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: use standard names for X25519 and X448 groups
authorWilliam Lallemand <wlallemand@irq6.net>
Tue, 6 Oct 2026 11:51:45 +0000 (13:51 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Tue, 6 Oct 2026 13:39:56 +0000 (15:39 +0200)
commit5b19cde53bdf5188364eed3e61d8c51e1af47adf
tree0ff69e64aff42a200267bd52394b7487dcfe5b46
parenta06fd567b3049ed2045e5c3775349b4307d9ed9d
BUG/MINOR: ssl: use standard names for X25519 and X448 groups

The curve table uses ecdh_x25519 and ecdh_x448, which are OpenSSL TLS1.3
draft11 name labels rather than the released group names registered at
IANA. As a result, SSL traces print those labels and curves2nid() cannot
resolve x25519 or x448 even when the corresponding NID is available.

Use x25519 and x448 as the primary names. Keep the old ecdh_* strings
as aliases at the end of the table so existing name-to-NID lookups
continue to work. The aliases must follow the standard names because
curveid2str() returns the first entry matching a group identifier.

curveid2str() is only used in the traces so there's no fonctionnal
changes.

This should be backported to 3.3 and 3.4, which contain the curve table
introduced by d799a1b3b (MINOR: ssl: Add curve id to curve name table
and mapping functions).
src/ssl_utils.c