Memory allocator code cleanup
authorDavide Galassi <davxy@datawok.net>
Mon, 10 Feb 2020 06:49:10 +0000 (16:49 +1000)
committerPauli <paul.dale@oracle.com>
Mon, 10 Feb 2020 06:49:10 +0000 (16:49 +1000)
commitf4dcc09ba71c0a51771311428c20634f574ccf12
tree3226ec1675e2f410bc9d3477778f40260d108629
parent96f0b8adddc4ffc8599c60b5755b0d9c19a9c84b
Memory allocator code cleanup

Typedefs of CRYPTO malloc, realloc and free.

MEM_CHECK "modes" are used only as a CRYPTO_mem_ctrl() parameter

The CRYPTO_mem_ctrl is defined only if OPENSSL_NO_CRYPTO_MDEBUG is
defined, thus define the MEM_CHECK modes under the same condition.

Maybe the macros can be removed at all since:
1. CRYPTO_mem_ctrl() just returns -1 and ignores the parameter
2. CRYPTO_mem_ctr() is declared as DEPRECATED by 3.0

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11042)
crypto/mem.c
doc/man3/OPENSSL_malloc.pod
include/openssl/crypto.h
util/indent.pro
util/other.syms