diff options
author | Richard Levitte <levitte@openssl.org> | 2000-08-01 17:15:36 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-08-01 17:15:36 +0000 |
commit | ee087bb8ebc2565e31a91290a270db0abe00de99 (patch) | |
tree | b157bb493b49e017be74c23a4b1a58c3a5720b53 /apps | |
parent | e5acb2bd2e80a0d6923b2b0602e4821597284a8b (diff) |
Make it so we can dynamically enable memory allocation debugging through the
environment variable OPENSSL_DEBUG_MEMORY (existence is sufficient). At the
same time, it makes sure that CRYPTO_malloc_debug_init() gets expanded some-
where and thereby tested for compilation.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/openssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index 5f0ffa9fd4..c3680c5e71 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -101,6 +101,8 @@ int main(int Argc, char *Argv[]) arg.data=NULL; arg.count=0; + if (getenv("OPENSSL_DEBUG_MEMORY") != NULL) + CRYPTO_malloc_debug_init(); CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); apps_startup(); |