From: Richard Levitte Date: Tue, 19 Jul 2016 19:48:52 +0000 (+0200) Subject: Document the slight change in CRYPTO_mem_ctrl() X-Git-Tag: OpenSSL_1_1_0-pre6~149 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a5228543cc9535b6a20d496df2c7894a4446ad0;p=oweals%2Fopenssl.git Document the slight change in CRYPTO_mem_ctrl() Reviewed-by: Kurt Roeckx --- 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.