summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-11 13:44:35 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-11 13:45:49 -0400
commit12a1ada15853f0cde2839921bf413ba24a741192 (patch)
tree7c65cff1ce333947a201e13c66ed33d5c965b223 /src/test
parent79267bad654ed39f13e6fb89a5468f23468c3169 (diff)
downloadtor-12a1ada15853f0cde2839921bf413ba24a741192.tar.gz
tor-12a1ada15853f0cde2839921bf413ba24a741192.zip
Move the initialization and cleanup parts of crypto.c
These are now part of crypto_init.c. The openssl-only parts now live in crypto_openssl_mgt.c. I recommend reviewing this patch with -b and --color-moved.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/bench.c1
-rw-r--r--src/test/test_crypto.c1
-rw-r--r--src/test/test_workqueue.c1
-rw-r--r--src/test/testing_common.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/test/bench.c b/src/test/bench.c
index 7919a4224f..50af9e0d69 100644
--- a/src/test/bench.c
+++ b/src/test/bench.c
@@ -33,6 +33,7 @@
#include "core/or/or_circuit_st.h"
#include "lib/crypt_ops/digestset.h"
+#include "lib/crypt_ops/crypto_init.h"
#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_PROCESS_CPUTIME_ID)
static uint64_t nanostart;
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index 2124e22196..17f23b96bd 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -16,6 +16,7 @@
#include "lib/crypt_ops/crypto_format.h"
#include "lib/crypt_ops/crypto_hkdf.h"
#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_init.h"
#include "ed25519_vectors.inc"
#ifdef HAVE_SYS_STAT_H
diff --git a/src/test/test_workqueue.c b/src/test/test_workqueue.c
index 4550bad1f0..9d48d92773 100644
--- a/src/test/test_workqueue.c
+++ b/src/test/test_workqueue.c
@@ -12,6 +12,7 @@
#include "lib/net/alertsock.h"
#include "lib/evloop/compat_libevent.h"
#include "lib/intmath/weakrng.h"
+#include "lib/crypt_ops/crypto_init.h"
#include <stdio.h>
diff --git a/src/test/testing_common.c b/src/test/testing_common.c
index 3880bca9c5..32d7bf7f0e 100644
--- a/src/test/testing_common.c
+++ b/src/test/testing_common.c
@@ -23,6 +23,7 @@
#include "core/mainloop/main.h"
#include "lib/compress/compress.h"
#include "lib/evloop/compat_libevent.h"
+#include "lib/crypt_ops/crypto_init.h"
#include <stdio.h>
#ifdef HAVE_FCNTL_H