diff options
author | Rich Salz <rsalz@akamai.com> | 2019-12-04 19:15:08 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-12-14 20:57:35 +0100 |
commit | 742ccab318b13a8779d9f9164d479b4a428a6da8 (patch) | |
tree | 47e5cb0544e2f74a4fbefcdd30cb65d8078f214f /test/sslbuffertest.c | |
parent | Parse large GOST ClientKeyExchange messages (diff) | |
download | openssl-742ccab318b13a8779d9f9164d479b4a428a6da8.tar.xz openssl-742ccab318b13a8779d9f9164d479b4a428a6da8.zip |
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)
Diffstat (limited to 'test/sslbuffertest.c')
-rw-r--r-- | test/sslbuffertest.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/sslbuffertest.c b/test/sslbuffertest.c index e8293f7def..163beafb2f 100644 --- a/test/sslbuffertest.c +++ b/test/sslbuffertest.c @@ -150,13 +150,6 @@ static int test_func(int test) return result; } -int global_init(void) -{ - CRYPTO_set_mem_debug(1); - CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); - return 1; -} - OPT_TEST_DECLARE_USAGE("certfile privkeyfile\n") int setup_tests(void) |