]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Add curve id to curve name table and mapping functions
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 15 Jul 2025 08:45:08 +0000 (10:45 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 21 Jul 2025 14:44:50 +0000 (16:44 +0200)
commitd799a1b3b29382af41b87539bcc6edee49793c79
treeda6b346a3ccfc31164e9e1a6478a7fc1fa8f3c19
parentf00d9bf12d9613b7a8910f383cf643a94083423e
MINOR: ssl: Add curve id to curve name table and mapping functions

The SSL libraries like OpenSSL for instance do not seem to actually
provide a public mapping between IANA defined curve IDs and curve names,
or even a mapping between curve IDs and internal NIDs.
This new table regroups all those information in a single table so that
we can convert curve names (be it SECG or NIST format) to curve IDs or
NIDs.
The previously existing 'curves2nid' function now uses the new table,
and a new 'curveid2str' one is added.
include/haproxy/ssl_utils.h
src/ssl_utils.c