mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
EVP_MD_CTX_cleanup replaced with EVP_MD_CTX_reset
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)
This commit is contained in:
parent
a8b2b52fe5
commit
c12a2d2728
@ -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
|
||||
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
|
||||
|
@ -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 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
|
||||
|
@ -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
|
||||
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
|
||||
|
@ -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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user