diff options
author | Bodo Möller <bodo@openssl.org> | 2002-02-14 14:47:15 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-02-14 14:47:15 +0000 |
commit | 48033c3242beffd474498c81f547beff79eee76a (patch) | |
tree | 6730f8653030273793cfb6990a3496c6f89ba278 /crypto/ec | |
parent | aa1f5b35810356d6f6b4daf9a3b2181f1c3c1fc7 (diff) |
fix: make it possible to disable memory debugging even if it is
enabled by default
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ectest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c index b6ede1c3c6..243cd83fb5 100644 --- a/crypto/ec/ectest.c +++ b/crypto/ec/ectest.c @@ -156,7 +156,12 @@ int main(int argc, char *argv[]) if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off")))) { CRYPTO_malloc_debug_init(); - CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); + CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL); + } + else + { + /* OPENSSL_DEBUG_MEMORY=off */ + CRYPTO_set_mem_debug_functions(0, 0, 0, 0, 0); } CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); ERR_load_crypto_strings(); |