]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/evp/evp_fetch.c
EVP_FETCH: deal with names without pre-defined NIDs
authorRichard Levitte <levitte@openssl.org>
Sun, 5 May 2019 06:42:21 +0000 (08:42 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 12 May 2019 20:43:38 +0000 (13:43 -0700)
commit2e49c05472ab76cee4e30c2eaa4fa576b9ae92c6
tree951fe7806aa785611359885afeae27b8229df247
parentbaff732dc654f8aab37953f6036399989c765604
EVP_FETCH: deal with names without pre-defined NIDs

We didn't deal very well with names that didn't have pre-defined NIDs,
as the NID zero travelled through the full process and resulted in an
inaccessible method.  By consequence, we need to refactor the method
construction callbacks to rely more on algorithm names.

We must, however, still store the legacy NID with the method, for the
sake of other code that depend on it (for example, CMS).

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8878)
crypto/core_fetch.c
crypto/evp/evp_fetch.c
doc/internal/man3/evp_generic_fetch.pod
doc/internal/man3/ossl_method_construct.pod
include/internal/core.h