diff options
author | Paul Yang <yang.yang@baishancloud.com> | 2018-09-05 22:01:33 +0800 |
---|---|---|
committer | Paul Yang <yang.yang@baishancloud.com> | 2018-09-07 18:12:26 +0800 |
commit | 81c7945388a49799f819f5ca5bfe6acd506840c3 (patch) | |
tree | 2bb098b9d8fcaffc3cf96cdab28039bae7b03bd5 /doc | |
parent | 571286b0a463b02ef2f9040a7e5d602635854832 (diff) |
Allow EVP_MD_CTX_set_pkey_ctx to accept NULL pctx
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7113)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/EVP_DigestInit.pod | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/man3/EVP_DigestInit.pod b/doc/man3/EVP_DigestInit.pod index 02e7719274..9b74e41d39 100644 --- a/doc/man3/EVP_DigestInit.pod +++ b/doc/man3/EVP_DigestInit.pod @@ -186,8 +186,10 @@ B<ASN1_OBJECT> structure respectively. Assigns an B<EVP_PKEY_CTX> to B<EVP_MD_CTX>. This is usually used to provide a customzied B<EVP_PKEY_CTX> to L<EVP_DigestSignInit(3)> or -L<EVP_DigestVerifyInit(3)>. The B<EVP_PKEY_CTX> passed to this function should -be freed by the caller. +L<EVP_DigestVerifyInit(3)>. The B<pctx> passed to this function should be freed +by the caller. A null B<pctx> pointer is also allowed to clear the B<EVP_PKEY_CTX> +assigned to B<ctx>. In such case, freeing the cleared B<EVP_PKEY_CTX> or not +depends on how the B<EVP_PKEY_CTX> is created. =back @@ -374,7 +376,7 @@ later, so now EVP_sha1() can be used with RSA and DSA. EVP_dss1() was removed in OpenSSL 1.1.0. -EVP_MD_CTX_set_pkey_ctx() is added in 1.1.1. +EVP_MD_CTX_set_pkey_ctx() was added in 1.1.1. =head1 COPYRIGHT |