]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl: Use only NIDs in curve name to id table
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 24 Jul 2025 08:51:29 +0000 (10:51 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 24 Jul 2025 08:58:54 +0000 (10:58 +0200)
commit14615a86722341b65f9bc18cb157be42e2798f90
tree53528350b488b8ee209f1da835360010cf20f1df
parenta2267fafcf93b7e41107a1f688a8ca3febf4393c
CLEANUP: ssl: Use only NIDs in curve name to id table

The curve name to curve id mapping table was built out of multiple
internal tables found in openssl sources, namely the 'nid_to_group'
table found in 'ssl/t1_lib.c' which maps openssl specific NIDs to public
IANA curve identifiers. In this table, there were two instances of
EVP_PKEY_XXX ids being used while all the other ones are NID_XXX
identifiers.
Since the two EVP_PKEY are actually equal to their NID equivalent in
'include/openssl/evp.h' we can use NIDs all along for better coherence.
src/ssl_utils.c