]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove some now-needless openssl includes from src/test.
authorNick Mathewson <nickm@torproject.org>
Sat, 25 Mar 2017 11:19:14 +0000 (12:19 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 31 Mar 2017 14:04:44 +0000 (10:04 -0400)
It would appear that these includes weren't actually used.

src/test/test_crypto_slow.c
src/test/test_microdesc.c
src/test/test_rendcache.c

index 6d676ff9b9032e0a10c69aa8696a384a28ab1d89..d6b0a43dd5098819b87108c5b29e709a1bf3d5cf 100644 (file)
 
 #if defined(HAVE_LIBSCRYPT_H) && defined(HAVE_LIBSCRYPT_SCRYPT)
 #define HAVE_LIBSCRYPT
-#include <libscrypt.h>
 #endif
 
-#include <openssl/evp.h>
-
 /** Run unit tests for our secret-to-key passphrase hashing functionality. */
 static void
 test_crypto_s2k_rfc2440(void *arg)
index b8d96491d42e2ab44fae7a241a038bd15e0eb456..c78fda3b69a797ed68b8a02522d8808f6b43488c 100644 (file)
 
 #include "test.h"
 
-DISABLE_GCC_WARNING(redundant-decls)
-#include <openssl/rsa.h>
-#include <openssl/bn.h>
-#include <openssl/pem.h>
-ENABLE_GCC_WARNING(redundant-decls)
-
 #ifdef _WIN32
 /* For mkdir() */
 #include <direct.h>
index 59d3be9003882b0f7235dd6061883c8404b88e43..feba8f664e089c06053930d86ccd184bcf412ec5 100644 (file)
@@ -11,7 +11,6 @@
 #include "routerlist.h"
 #include "config.h"
 #include "hs_common.h"
-#include <openssl/rsa.h>
 #include "rend_test_helpers.h"
 #include "log_test_helpers.h"