]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/core_namemap.c
Replumbing: pre-populate the EVP namemap with commonly known names
authorRichard Levitte <levitte@openssl.org>
Thu, 23 May 2019 01:27:37 +0000 (03:27 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 20 Nov 2019 13:22:35 +0000 (14:22 +0100)
commit6a835fcfb10ba004498f9e39873db3d2b9011609
tree5188724c2854ee6bb4997ef21a4810f6393fdd9f
parent9ce91035bcf7d74fe15c94650f3bc1f89b7c0f07
Replumbing: pre-populate the EVP namemap with commonly known names

This adds ossl_namemap_empty(), to detect if a namemap is empty and
can thereby be pre-populated.

This also affects the way legacy NIDs are looked up in
evp_cipher_from_dispatch() and evp_md_from_dispatch().  Instead of
trying to find the NID directly, look up the legacy method structure
and grab the NID from there.  The reason is that NIDs can be aliases
for other NIDs, which looks like a clash even if wasn't really one.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8984)
crypto/core_namemap.c
crypto/evp/digest.c
crypto/evp/evp_enc.c
crypto/evp/evp_fetch.c
doc/internal/man3/ossl_namemap_new.pod
include/internal/namemap.h