]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/core_namemap.c
CORE: Register all legacy "names" when generating the initial namemap
authorRichard Levitte <levitte@openssl.org>
Thu, 11 Mar 2021 12:36:06 +0000 (13:36 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 18 Apr 2021 08:10:24 +0000 (10:10 +0200)
commit01ba6c8e438ea2d31c92fe2f386e6ce5809f29f0
tree28057e0df17db961a95cd00eae235f58b4963d4b
parentad57a13bb86949a9e9adc7a2960e3f39e3e5b284
CORE: Register all legacy "names" when generating the initial namemap

When generating the initial namemap from EVP cipher and digest names,
we din't do it quite as thoroughly as necessary, which meant that so
called "long names" weren't necessarily registered, and if anyone ever
tried to check the algorithm of an EVP_CIPHER or EVP_MD using a so
called "long name" would fail.

This doesn't deal with the fact that "long names" have a distinct role
as human readable descriptors, useful for printouts.  Further changes
are necessary to deal with this.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14498)
crypto/core_namemap.c