EVP: Adapt the other EVP_PKEY_set_xxx_param() functions
authorRichard Levitte <levitte@openssl.org>
Wed, 3 Feb 2021 12:55:30 +0000 (13:55 +0100)
committerPauli <ppzgs1@gmail.com>
Fri, 5 Feb 2021 05:53:42 +0000 (15:53 +1000)
commit13e85fb3214fc5c84e30258ed56add1275b0fde3
tree180fb3720c93425df00f4d74b90322367828cf0b
parentf4a3799cc45cb986d5920403b3e0471678fee020
EVP: Adapt the other EVP_PKEY_set_xxx_param() functions

They were calling evp_keymgmt_set_params() directly.  Those calls are
changed to go through EVP_PKEY_set_params().

We take the opportunity to constify these functions.  They have to
unconstify internally for the compiler to stop complaining when
placing those pointers in an OSSL_PARAM element, but that's still
better than forcing the callers to do that cast.

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_gettable_params.pod
doc/man3/EVP_PKEY_settable_params.pod
include/openssl/evp.h
util/libcrypto.num