summaryrefslogtreecommitdiff
path: root/src/test/testing_common.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-25 11:27:50 +0100
committerNick Mathewson <nickm@torproject.org>2017-03-31 10:04:44 -0400
commite7506c03cf7e3121fb33567452039eaccd1eea50 (patch)
tree83c9437c838894d23c39b9d9037ff831fa7e4bab /src/test/testing_common.c
parent04f1ddaa2a33194ba861cc38f89f16fd076c63a6 (diff)
downloadtor-e7506c03cf7e3121fb33567452039eaccd1eea50.tar.gz
tor-e7506c03cf7e3121fb33567452039eaccd1eea50.zip
Isolate dmalloc/openssl bridge code to crypto.c
This makes it so main.c, and the rest of src/or, no longer need to include any openssl headers.
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r--src/test/testing_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c
index bb2bcbf44c..0e37e0d154 100644
--- a/src/test/testing_common.c
+++ b/src/test/testing_common.c
@@ -38,7 +38,6 @@ const char tor_git_revision[] = "";
#ifdef USE_DMALLOC
#include <dmalloc.h>
-#include <openssl/crypto.h>
#include "main.h"
#endif
@@ -238,8 +237,8 @@ main(int c, const char **v)
#ifdef USE_DMALLOC
{
- int r = CRYPTO_set_mem_ex_functions(tor_malloc_, tor_realloc_, tor_free_);
- tor_assert(r);
+ int r = crypto_use_tor_alloc_functions();
+ tor_assert(r == 0);
}
#endif