EVP_PKEY_get_*_param should work with legacy
authorTomas Mraz <tomas@openssl.org>
Thu, 18 Mar 2021 13:22:20 +0000 (14:22 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 19 Mar 2021 14:09:55 +0000 (15:09 +0100)
commit6084b5c2c9ab5a167d808d6f6c9b21f98c99bbc2
treefd1c07e1d84022abb16c56a152a277f46266b2f9
parent03cd9d2f230fd60af23ed5ccbe8c6e8ad245cd73
EVP_PKEY_get_*_param should work with legacy

Also do not shortcut the pkey == NULL case
to allow EVP_PKEY_get_params() to raise an error.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14606)
crypto/evp/p_lib.c