From 0a5228543cc9535b6a20d496df2c7894a4446ad0 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 19 Jul 2016 21:48:52 +0200 Subject: [PATCH] Document the slight change in CRYPTO_mem_ctrl() Reviewed-by: Kurt Roeckx --- doc/crypto/OPENSSL_malloc.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/crypto/OPENSSL_malloc.pod b/doc/crypto/OPENSSL_malloc.pod index 574db8a5f3..0060b989a9 100644 --- a/doc/crypto/OPENSSL_malloc.pod +++ b/doc/crypto/OPENSSL_malloc.pod @@ -179,7 +179,8 @@ CRYPTO_set_mem_functions() and CRYPTO_set_mem_debug() return 1 on success or 0 on failure (almost always because allocations have already happened). -CRYPTO_mem_ctrl() returns the previous value of the mode. +CRYPTO_mem_ctrl() returns -1 if an error occured, otherwise the +previous value of the mode. OPENSSL_mem_debug_push() and OPENSSL_mem_debug_pop() return 1 on success or 0 on failure. -- 2.25.1