Deprecate most of debug-memory
authorRich Salz <rsalz@akamai.com>
Wed, 4 Dec 2019 18:15:08 +0000 (13:15 -0500)
committerRichard Levitte <levitte@openssl.org>
Sat, 14 Dec 2019 19:57:35 +0000 (20:57 +0100)
commit742ccab318b13a8779d9f9164d479b4a428a6da8
tree47e5cb0544e2f74a4fbefcdd30cb65d8078f214f
parent4e3ee452d091615e52a43e6e7c6db7d09e260353
Deprecate most of debug-memory

Fixes #8322

The leak-checking (and backtrace option, on some platforms) provided
by crypto-mdebug and crypto-mdebug-backtrace have been mostly neutered;
only the "make malloc fail" capability remains.  OpenSSL recommends using
the compiler's leak-detection instead.

The OPENSSL_DEBUG_MEMORY environment variable is no longer used.
CRYPTO_mem_ctrl(), CRYPTO_set_mem_debug(), CRYPTO_mem_leaks(),
CRYPTO_mem_leaks_fp() and CRYPTO_mem_leaks_cb() return a failure code.
CRYPTO_mem_debug_{malloc,realloc,free}() have been removed.  All of the
above are now deprecated.

Merge (now really small) mem_dbg.c into mem.c

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10572)
28 files changed:
CHANGES
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
Configure
INSTALL
NEWS
apps/openssl.c
crypto/build.info
crypto/ex_data.c
crypto/mem.c
crypto/mem_dbg.c [deleted file]
crypto/objects/o_names.c
crypto/provider_core.c
doc/man3/OPENSSL_malloc.pod
doc/man7/provider-base.pod
include/openssl/core_numbers.h
include/openssl/crypto.h
providers/fips/fipsprov.c
providers/fips/selftest.c
ssl/ssl_ciph.c
test/asynctest.c
test/bio_memleak_test.c
test/sslapitest.c
test/sslbuffertest.c
test/ssltest_old.c
test/testutil/driver.c
util/libcrypto.num