aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-09-10 15:03:08 +0000
committerBodo Möller <bodo@openssl.org>2001-09-10 15:03:08 +0000
commitfb9520c12d7afeda447ebb6a3bc71abd9f5d9a85 (patch)
treea6285a82fc31b4223375bdc29597d50bba8ecaac
parent62b05027507a7667be48c661394dfee938b988e1 (diff)
downloadopenssl-fb9520c12d7afeda447ebb6a3bc71abd9f5d9a85.tar.gz
comments
-rw-r--r--crypto/crypto.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h
index 1fff49de9c..cc4d5c47a3 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -351,6 +351,9 @@ int CRYPTO_push_info_(const char *info, const char *file, int line);
int CRYPTO_pop_info(void);
int CRYPTO_remove_all_info(void);
+
+/* Default debugging functions (enabled by CRYPTO_malloc_debug_init() macro;
+ * used as default in CRYPTO_MDEBUG compilations): */
/* The last argument has the following significance:
*
* 0: called before the actual memory allocation has taken place
@@ -359,18 +362,18 @@ int CRYPTO_remove_all_info(void);
void CRYPTO_dbg_malloc(void *addr,int num,const char *file,int line,int before_p);
void CRYPTO_dbg_realloc(void *addr1,void *addr2,int num,const char *file,int line,int before_p);
void CRYPTO_dbg_free(void *addr,int before_p);
-
/* Tell the debugging code about options. By default, the following values
* apply:
*
- * 0: Clear all options.
- * 1: Set the "Show Time" option.
- * 2: Set the "Show Thread Number" option.
- * 3: 1 + 2
+ * 0: Clear all options.
+ * V_CRYPTO_MDEBUG_TIME (1): Set the "Show Time" option.
+ * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option.
+ * V_CRYPTO_MDEBUG_ALL (3): 1 + 2
*/
void CRYPTO_dbg_set_options(long bits);
long CRYPTO_dbg_get_options(void);
+
#ifndef NO_FP_API
void CRYPTO_mem_leaks_fp(FILE *);
#endif