]> git.ipfire.org Git - thirdparty/openssl.git/commit
Modify EVP_CIPHER_is_a() and EVP_MD_is_a() to handle legacy methods too
authorRichard Levitte <levitte@openssl.org>
Wed, 15 Jan 2020 00:04:37 +0000 (01:04 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 17 Jan 2020 07:59:41 +0000 (08:59 +0100)
commite4a1d0230016d090ba78bc7092384315f85b0e72
tree518e1155d0185622e42d10918b9b0ca9a2317c3a
parent9bb3e5fd87905e3e9f5f7edcc2e22d98360510ab
Modify EVP_CIPHER_is_a() and EVP_MD_is_a() to handle legacy methods too

These functions would only handle provided methods, but there are
cases where the caller just passes along a received method without
knowing the underlying method tech, so might pass along a legacy
method.  We therefore need to have them handle this case as well so
they don't cause any unnecessary surprises.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10845)
13 files changed:
crypto/core_namemap.c
crypto/evp/evp_fetch.c
crypto/evp/evp_lib.c
crypto/evp/evp_local.h
crypto/evp/exchange.c
crypto/evp/kdf_lib.c
crypto/evp/keymgmt_meth.c
crypto/evp/mac_lib.c
crypto/evp/pmeth_fn.c
crypto/evp/signature.c
doc/man3/EVP_DigestInit.pod
doc/man3/EVP_EncryptInit.pod
test/namemap_internal_test.c