summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-02-03 16:48:21 +0100
committerPauli <ppzgs1@gmail.com>2021-02-05 15:53:49 +1000
commit76624df15fef0725f28a8b9d0f31256946669b1a (patch)
tree142a6e1dd458a7dc3873e382e1b1edcffa6cdd7a /doc
parentd82c7f3dba44b190eac80e5ddffac9a00cefd47d (diff)
EVP: Adapt EVP_PKEY_{set1,get1}_encoded_public_key()
These functions are modified to use EVP_PKEY_set_octet_string_param() and EVP_PKEY_get_octet_string_param() instead of evp_keymgmt_set_params() and evp_keymgmt_get_params(). To accomplish this fully, EVP_PKEY_get_octet_string_param() is changed slightly to populate |*out_sz| with the return size, even if getting the params resulted in an error. We also modify EVP_PKEY_get_utf8_string_param() to match EVP_PKEY_get_octet_string_param() Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14056)
Diffstat (limited to 'doc')
-rw-r--r--doc/man3/EVP_PKEY_gettable_params.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/man3/EVP_PKEY_gettable_params.pod b/doc/man3/EVP_PKEY_gettable_params.pod
index 9b455a22f6..7a1eaaa548 100644
--- a/doc/man3/EVP_PKEY_gettable_params.pod
+++ b/doc/man3/EVP_PKEY_gettable_params.pod
@@ -67,7 +67,8 @@ All other methods return 1 if a value associated with the key's I<key_name> was
successfully returned, or 0 if there was an error.
An error may be returned by methods EVP_PKEY_get_utf8_string_param() and
EVP_PKEY_get_octet_string_param() if I<max_buf_sz> is not big enough to hold the
-value.
+value. If I<out_sz> is not NULL, I<*out_sz> will be assigned the required
+buffer size to hold the value.
=head1 EXAMPLES