int result = 0;
const char *test_type_name;
const char *expected_error_string;
+ const char *p = getenv("OPENSSL_DEBUG_MEMORY");
size_t i;
{"compare", ASN1_COMPARE}
};
+ if (p != NULL && strcmp(p, "on") == 0)
+ CRYPTO_set_mem_debug(1);
+ CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
+
if (argc != 4) {
fprintf(stderr,
"Usage: d2i_test item_name expected_error file.der\n");
result = run_tests(argv[0]);
+#ifndef OPENSSL_NO_CRYPTO_MDEBUG
+ if (CRYPTO_mem_leaks_fp(stderr) <= 0)
+ result = 1;
+#endif
+
return result;
}