summaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-02-14 14:47:15 +0000
committerBodo Möller <bodo@openssl.org>2002-02-14 14:47:15 +0000
commit48033c3242beffd474498c81f547beff79eee76a (patch)
tree6730f8653030273793cfb6990a3496c6f89ba278 /crypto/ec
parentaa1f5b35810356d6f6b4daf9a3b2181f1c3c1fc7 (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.c7
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();