EVP: Modify the checks in EVP_PKEY_{set,get}_xxx_param() functions
authorRichard Levitte <levitte@openssl.org>
Wed, 3 Feb 2021 13:10:08 +0000 (14:10 +0100)
committerPauli <ppzgs1@gmail.com>
Fri, 5 Feb 2021 05:53:49 +0000 (15:53 +1000)
commitd82c7f3dba44b190eac80e5ddffac9a00cefd47d
tree1ae61a3dce08ad81176bb630ca672fe971148a38
parent13e85fb3214fc5c84e30258ed56add1275b0fde3
EVP: Modify the checks in EVP_PKEY_{set,get}_xxx_param() functions

The checks of the type of EVP_PKEY were from before we had the macro
evp_pkey_is_provided().

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14056)
crypto/evp/p_lib.c
doc/man3/EVP_PKEY_settable_params.pod
include/openssl/evp.h