diff options
author | beck <> | 2014-05-24 13:57:18 +0000 |
---|---|---|
committer | beck <> | 2014-05-24 13:57:18 +0000 |
commit | cae65df81b69f410afddb3d880daac7c43ce3daf (patch) | |
tree | deb94273e62c0be2f39f578173b1232887e77c64 /src/regress/lib/libcrypto/engine/enginetest.c | |
parent | 4eb4d7bb8c263141ef39d6b0ad13ef197e422063 (diff) | |
download | openbsd-cae65df81b69f410afddb3d880daac7c43ce3daf.tar.gz openbsd-cae65df81b69f410afddb3d880daac7c43ce3daf.tar.bz2 openbsd-cae65df81b69f410afddb3d880daac7c43ce3daf.zip |
remove OPENSSL_malloc and CRYPTO_malloc goo from the regress tests.
ok miod@ jsing@ guenther@
Diffstat (limited to 'src/regress/lib/libcrypto/engine/enginetest.c')
-rw-r--r-- | src/regress/lib/libcrypto/engine/enginetest.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/regress/lib/libcrypto/engine/enginetest.c b/src/regress/lib/libcrypto/engine/enginetest.c index f4d70e7e0a..5032dc47e7 100644 --- a/src/regress/lib/libcrypto/engine/enginetest.c +++ b/src/regress/lib/libcrypto/engine/enginetest.c | |||
@@ -105,18 +105,6 @@ int main(int argc, char *argv[]) | |||
105 | ENGINE *new_h3 = NULL; | 105 | ENGINE *new_h3 = NULL; |
106 | ENGINE *new_h4 = NULL; | 106 | ENGINE *new_h4 = NULL; |
107 | 107 | ||
108 | /* enable memory leak checking unless explicitly disabled */ | ||
109 | if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off")))) | ||
110 | { | ||
111 | CRYPTO_malloc_debug_init(); | ||
112 | CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL); | ||
113 | } | ||
114 | else | ||
115 | { | ||
116 | /* OPENSSL_DEBUG_MEMORY=off */ | ||
117 | CRYPTO_set_mem_debug_functions(0, 0, 0, 0, 0); | ||
118 | } | ||
119 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
120 | ERR_load_crypto_strings(); | 108 | ERR_load_crypto_strings(); |
121 | 109 | ||
122 | memset(block, 0, 512 * sizeof(ENGINE *)); | 110 | memset(block, 0, 512 * sizeof(ENGINE *)); |
@@ -258,8 +246,8 @@ cleanup_loop: | |||
258 | } | 246 | } |
259 | for(loop = 0; loop < 512; loop++) | 247 | for(loop = 0; loop < 512; loop++) |
260 | { | 248 | { |
261 | OPENSSL_free((void *)ENGINE_get_id(block[loop])); | 249 | free((void *)ENGINE_get_id(block[loop])); |
262 | OPENSSL_free((void *)ENGINE_get_name(block[loop])); | 250 | free((void *)ENGINE_get_name(block[loop])); |
263 | } | 251 | } |
264 | printf("\nTests completed happily\n"); | 252 | printf("\nTests completed happily\n"); |
265 | to_return = 0; | 253 | to_return = 0; |