EVP_MD_CTX_cleanup replaced with EVP_MD_CTX_reset
authorTheo Buehler <tb@openbsd.org>
Wed, 11 Apr 2018 16:59:25 +0000 (12:59 -0400)
committerRich Salz <rsalz@openssl.org>
Wed, 11 Apr 2018 16:59:25 +0000 (12:59 -0400)
The EVP_MD_CTX_cleanup() function was merged into EVP_MD_CTX_reset()
which is called by EVP_MD_CTX_free().  Adjust the documentation to say
that the latter should be used to avoid leaking memory.

CLA: trivial

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5921)

doc/man3/EVP_DigestSignInit.pod
doc/man3/EVP_DigestVerifyInit.pod
doc/man3/EVP_SignInit.pod
doc/man3/EVP_VerifyInit.pod

index c3513f5320dcf05ea5ef1de73b778053ce117f2e..176872d5fb7690c6e00a869768b07eb0588a2196 100644 (file)
@@ -77,7 +77,7 @@ context. This means that calls to EVP_DigestSignUpdate() and
 EVP_DigestSignFinal() can be called later to digest and sign additional data.
 
 Since only a copy of the digest context is ever finalized the context must
 EVP_DigestSignFinal() can be called later to digest and sign additional data.
 
 Since only a copy of the digest context is ever finalized the context must
-be cleaned up after use by calling EVP_MD_CTX_cleanup() or a memory leak
+be cleaned up after use by calling EVP_MD_CTX_free() or a memory leak
 will occur.
 
 The use of EVP_PKEY_size() with these functions is discouraged because some
 will occur.
 
 The use of EVP_PKEY_size() with these functions is discouraged because some
index 2191b9edbf363b8ca8e9b59af1592101dda0c499..603e2cddc78c502c9fd424dbfb719e2b69d3128d 100644 (file)
@@ -76,7 +76,7 @@ context. This means that EVP_VerifyUpdate() and EVP_VerifyFinal() can
 be called later to digest and verify additional data.
 
 Since only a copy of the digest context is ever finalized the context must
 be called later to digest and verify additional data.
 
 Since only a copy of the digest context is ever finalized the context must
-be cleaned up after use by calling EVP_MD_CTX_cleanup() or a memory leak
+be cleaned up after use by calling EVP_MD_CTX_free() or a memory leak
 will occur.
 
 =head1 SEE ALSO
 will occur.
 
 =head1 SEE ALSO
index d3fe79c96cedb77549e809e5df7b9ca7d293f3f7..12e67f8cbf8677a837528a15037bd9447ce6df57 100644 (file)
@@ -75,7 +75,7 @@ This means that calls to EVP_SignUpdate() and EVP_SignFinal() can be called
 later to digest and sign additional data.
 
 Since only a copy of the digest context is ever finalized the context must
 later to digest and sign additional data.
 
 Since only a copy of the digest context is ever finalized the context must
-be cleaned up after use by calling EVP_MD_CTX_cleanup() or a memory leak
+be cleaned up after use by calling EVP_MD_CTX_free() or a memory leak
 will occur.
 
 =head1 BUGS
 will occur.
 
 =head1 BUGS
index faabc717a2794eb8c1db5c38457264b0c30894b3..f86825849b80ec36b4320b984e761a0ef7162425 100644 (file)
@@ -57,7 +57,7 @@ This means that calls to EVP_VerifyUpdate() and EVP_VerifyFinal() can be called
 later to digest and verify additional data.
 
 Since only a copy of the digest context is ever finalized the context must
 later to digest and verify additional data.
 
 Since only a copy of the digest context is ever finalized the context must
-be cleaned up after use by calling EVP_MD_CTX_cleanup() or a memory leak
+be cleaned up after use by calling EVP_MD_CTX_free() or a memory leak
 will occur.
 
 =head1 BUGS
 will occur.
 
 =head1 BUGS