mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Move the openssl namespace back into .c files.
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>
This commit is contained in:
parent
5cd74b4884
commit
f2fca51976
@ -29,6 +29,21 @@
|
|||||||
#include "crypto_ed25519.h"
|
#include "crypto_ed25519.h"
|
||||||
#include "crypto_format.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 __GNUC__ && GCC_VERSION >= 402
|
||||||
#if GCC_VERSION >= 406
|
#if GCC_VERSION >= 406
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
@ -12,6 +12,21 @@
|
|||||||
|
|
||||||
#include "crypto_openssl_mgt.h"
|
#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
|
#ifndef NEW_THREAD_API
|
||||||
/** A number of preallocated mutexes for use by OpenSSL. */
|
/** A number of preallocated mutexes for use by OpenSSL. */
|
||||||
static tor_mutex_t **openssl_mutexes_ = NULL;
|
static tor_mutex_t **openssl_mutexes_ = NULL;
|
||||||
|
@ -18,21 +18,6 @@
|
|||||||
|
|
||||||
#include <openssl/engine.h>
|
#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
|
Macro to create an arbitrary OpenSSL version number as used by
|
||||||
OPENSSL_VERSION_NUMBER or SSLeay(), since the actual numbers are a bit hard
|
OPENSSL_VERSION_NUMBER or SSLeay(), since the actual numbers are a bit hard
|
||||||
|
Loading…
Reference in New Issue
Block a user