diff options
author | Richard Levitte <levitte@openssl.org> | 2021-02-03 13:55:30 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-05 15:53:42 +1000 |
commit | 13e85fb3214fc5c84e30258ed56add1275b0fde3 (patch) | |
tree | 180fb3720c93425df00f4d74b90322367828cf0b /doc/man3/EVP_PKEY_settable_params.pod | |
parent | f4a3799cc45cb986d5920403b3e0471678fee020 (diff) | |
download | openssl-new-13e85fb3214fc5c84e30258ed56add1275b0fde3.tar.gz |
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)
Diffstat (limited to 'doc/man3/EVP_PKEY_settable_params.pod')
-rw-r--r-- | doc/man3/EVP_PKEY_settable_params.pod | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/man3/EVP_PKEY_settable_params.pod b/doc/man3/EVP_PKEY_settable_params.pod index a33eadc8fc..535570cd1d 100644 --- a/doc/man3/EVP_PKEY_settable_params.pod +++ b/doc/man3/EVP_PKEY_settable_params.pod @@ -15,11 +15,12 @@ EVP_PKEY_set_utf8_string_param, EVP_PKEY_set_octet_string_param int EVP_PKEY_set_params(EVP_PKEY *pkey, OSSL_PARAM params[]); int EVP_PKEY_set_int_param(EVP_PKEY *pkey, const char *key_name, int in); int EVP_PKEY_set_size_t_param(EVP_PKEY *pkey, const char *key_name, size_t in); - int EVP_PKEY_set_bn_param(EVP_PKEY *pkey, const char *key_name, BIGNUM *bn); + int EVP_PKEY_set_bn_param(EVP_PKEY *pkey, const char *key_name, + const BIGNUM *bn); int EVP_PKEY_set_utf8_string_param(EVP_PKEY *pkey, const char *key_name, - char *str); + const char *str); int EVP_PKEY_set_octet_string_param(EVP_PKEY *pkey, const char *key_name, - unsigned char *buf, size_t bsize); + const unsigned char *buf, size_t bsize); =head1 DESCRIPTION |