]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move the openssl namespace back into .c files.
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Mon, 22 Jan 2018 15:48:33 +0000 (16:48 +0100)
committerFernando Fernandez Mancera <ffmancera@riseup.net>
Mon, 22 Jan 2018 15:48:33 +0000 (16:48 +0100)
As we're trying not to have all the other modules in Tor, we moved the openssl
namespace includes back into crypto.c and crypto_openssl_mgt.c files.

Follows #24658.

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
src/common/crypto.c
src/common/crypto_openssl_mgt.c
src/common/crypto_openssl_mgt.h

index 96a1f7c007cc393e3c8b9492fd2ee4bbef54cffb..3fba2da5d9f7792e7724cfd0ba83a1d2181f86a9 100644 (file)
 #include "crypto_ed25519.h"
 #include "crypto_format.h"
 
+DISABLE_GCC_WARNING(redundant-decls)
+
+#include <openssl/err.h>
+#include <openssl/rsa.h>
+#include <openssl/pem.h>
+#include <openssl/evp.h>
+#include <openssl/engine.h>
+#include <openssl/rand.h>
+#include <openssl/bn.h>
+#include <openssl/dh.h>
+#include <openssl/conf.h>
+#include <openssl/hmac.h>
+
+ENABLE_GCC_WARNING(redundant-decls)
+
 #if __GNUC__ && GCC_VERSION >= 402
 #if GCC_VERSION >= 406
 #pragma GCC diagnostic pop
index c19da5b9f40f60749e4305743b488a7aa083b0c2..ca91e12d1e9d3ea6370bd9e7c9f0aa38fe557f57 100644 (file)
 
 #include "crypto_openssl_mgt.h"
 
+DISABLE_GCC_WARNING(redundant-decls)
+
+#include <openssl/err.h>
+#include <openssl/rsa.h>
+#include <openssl/pem.h>
+#include <openssl/evp.h>
+#include <openssl/engine.h>
+#include <openssl/rand.h>
+#include <openssl/bn.h>
+#include <openssl/dh.h>
+#include <openssl/conf.h>
+#include <openssl/hmac.h>
+
+ENABLE_GCC_WARNING(redundant-decls)
+
 #ifndef NEW_THREAD_API
 /** A number of preallocated mutexes for use by OpenSSL. */
 static tor_mutex_t **openssl_mutexes_ = NULL;
index 9b887abd5d62bf041e42620bfafbbbdf43278009..09b673796214c96c0f22763e0896124fc49d0b96 100644 (file)
 
 #include <openssl/engine.h>
 
-DISABLE_GCC_WARNING(redundant-decls)
-
-#include <openssl/err.h>
-#include <openssl/rsa.h>
-#include <openssl/pem.h>
-#include <openssl/evp.h>
-#include <openssl/engine.h>
-#include <openssl/rand.h>
-#include <openssl/bn.h>
-#include <openssl/dh.h>
-#include <openssl/conf.h>
-#include <openssl/hmac.h>
-
-ENABLE_GCC_WARNING(redundant-decls)
-
 /*
   Macro to create an arbitrary OpenSSL version number as used by
   OPENSSL_VERSION_NUMBER or SSLeay(), since the actual numbers are a bit hard