diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-12-23 08:35:15 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-12-23 08:35:15 +0000 |
commit | 11160d7f6f5c276f08f5e45588c557d3ae8729de (patch) | |
tree | 31d5ea1d54f36dfcb454b1df5f5ee25dcab0924f | |
parent | 9497453185719aa31d7c445f6cdc488e929304cd (diff) |
EVP_MD_CTX_cleanup() is deprecated and doesn't free, so recommend using
EVP_MD_CTX_free() instead if the goal is to avoid leaking memory.
From my corresponding upstream commit, reminded by schwarze
-rw-r--r-- | lib/libcrypto/man/EVP_DigestSignInit.3 | 6 | ||||
-rw-r--r-- | lib/libcrypto/man/EVP_DigestVerifyInit.3 | 6 | ||||
-rw-r--r-- | lib/libcrypto/man/EVP_SignInit.3 | 6 | ||||
-rw-r--r-- | lib/libcrypto/man/EVP_VerifyInit.3 | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/lib/libcrypto/man/EVP_DigestSignInit.3 b/lib/libcrypto/man/EVP_DigestSignInit.3 index bd750bf5a74..c8988971144 100644 --- a/lib/libcrypto/man/EVP_DigestSignInit.3 +++ b/lib/libcrypto/man/EVP_DigestSignInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_DigestSignInit.3,v 1.5 2018/03/23 04:34:23 schwarze Exp $ +.\" $OpenBSD: EVP_DigestSignInit.3,v 1.6 2018/12/23 08:35:14 tb Exp $ .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 .\" .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. @@ -49,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: March 23 2018 $ +.Dd $Mdocdate: December 23 2018 $ .Dt EVP_DIGESTSIGNINIT 3 .Os .Sh NAME @@ -168,7 +168,7 @@ can be called later to digest and sign additional data. .Pp Since only a copy of the digest context is ever finalized, the context must be cleaned up after use by calling -.Xr EVP_MD_CTX_cleanup 3 , +.Xr EVP_MD_CTX_free 3 , or a memory leak will occur. .Pp The use of diff --git a/lib/libcrypto/man/EVP_DigestVerifyInit.3 b/lib/libcrypto/man/EVP_DigestVerifyInit.3 index 5138e784f4a..3904e20afa1 100644 --- a/lib/libcrypto/man/EVP_DigestVerifyInit.3 +++ b/lib/libcrypto/man/EVP_DigestVerifyInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.6 2018/05/13 14:00:22 schwarze Exp $ +.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.7 2018/12/23 08:35:14 tb Exp $ .\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000 .\" .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. @@ -49,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: May 13 2018 $ +.Dd $Mdocdate: December 23 2018 $ .Dt EVP_DIGESTVERIFYINIT 3 .Os .Sh NAME @@ -151,7 +151,7 @@ can be called later to digest and verify additional data. .Pp Since only a copy of the digest context is ever finalized, the context must be cleaned up after use by calling -.Xr EVP_MD_CTX_cleanup 3 +.Xr EVP_MD_CTX_free 3 or a memory leak will occur. .Sh RETURN VALUES .Fn EVP_DigestVerifyInit diff --git a/lib/libcrypto/man/EVP_SignInit.3 b/lib/libcrypto/man/EVP_SignInit.3 index 284684104aa..d9e62972a68 100644 --- a/lib/libcrypto/man/EVP_SignInit.3 +++ b/lib/libcrypto/man/EVP_SignInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_SignInit.3,v 1.11 2018/07/09 09:56:05 tb Exp $ +.\" $OpenBSD: EVP_SignInit.3,v 1.12 2018/12/23 08:35:14 tb Exp $ .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" selective merge up to: OpenSSL 79b49fb0 Mar 20 10:03:10 2018 +1000 .\" @@ -50,7 +50,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 9 2018 $ +.Dd $Mdocdate: December 23 2018 $ .Dt EVP_SIGNINIT 3 .Os .Sh NAME @@ -171,7 +171,7 @@ can be called later to digest and sign additional data. .Pp Since only a copy of the digest context is ever finalized, the context must be cleaned up after use by calling -.Xr EVP_MD_CTX_cleanup 3 +.Xr EVP_MD_CTX_free 3 or a memory leak will occur. .Sh RETURN VALUES .Fn EVP_SignInit_ex , diff --git a/lib/libcrypto/man/EVP_VerifyInit.3 b/lib/libcrypto/man/EVP_VerifyInit.3 index a3cac954559..899bbc04096 100644 --- a/lib/libcrypto/man/EVP_VerifyInit.3 +++ b/lib/libcrypto/man/EVP_VerifyInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_VerifyInit.3,v 1.8 2018/03/29 21:26:51 schwarze Exp $ +.\" $OpenBSD: EVP_VerifyInit.3,v 1.9 2018/12/23 08:35:14 tb Exp $ .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" selective merge up to: OpenSSL 79b49fb0 Mar 20 10:03:10 2018 +1000 .\" @@ -50,7 +50,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: March 29 2018 $ +.Dd $Mdocdate: December 23 2018 $ .Dt EVP_VERIFYINIT 3 .Os .Sh NAME @@ -145,7 +145,7 @@ can be called later to digest and verify additional data. .Pp Since only a copy of the digest context is ever finalized, the context must be cleaned up after use by calling -.Xr EVP_MD_CTX_cleanup 3 , +.Xr EVP_MD_CTX_free 3 , or a memory leak will occur. .Sh RETURN VALUES .Fn EVP_VerifyInit_ex |