aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-07-19 09:25:35 +0000
committerBodo Möller <bodo@openssl.org>1999-07-19 09:25:35 +0000
commit458cddc1042eb91c5bb1e2bffd8fcfe5ee960d4d (patch)
tree9c379735139ac1b641f355f0bf60b5d7fdb23c2a /crypto/crypto.h
parent3dff94c2e4f48a1f222aba613d2cee2911ea9c3f (diff)
downloadopenssl-458cddc1042eb91c5bb1e2bffd8fcfe5ee960d4d.tar.gz
Have CRYPTO_MDEBUG_TIME automatically set CRYPTO_MDEBUG,
and make it the default for some debugging configurations.
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r--crypto/crypto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h
index 1b927e189d..fe8292fcbe 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -200,6 +200,12 @@ typedef struct crypto_ex_data_func_st
(char *(*)())realloc,\
(void (*)())free)
+#ifdef CRYPTO_MDEBUG_TIME
+# ifndef CRYPTO_MDEBUG /* avoid duplicate #define */
+# define CRYPTO_MDEBUG
+# endif
+#endif
+
#ifdef CRYPTO_MDEBUG
#define MemCheck_start() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON)
#define MemCheck_stop() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF)