mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 18:00:33 +01:00
Merge branch 'tor-github/pr/689' into maint-0.3.5
This commit is contained in:
commit
d83c299eba
4
changes/ticket29026
Normal file
4
changes/ticket29026
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor features (compilation):
|
||||
- Compile correctly when OpenSSL is built with engine support
|
||||
disabled, or with deprecated APIs disabled. Closes ticket
|
||||
29026. Patches from "Mangix".
|
@ -43,7 +43,7 @@ ENABLE_GCC_WARNING(redundant-decls)
|
||||
#include "lib/log/log.h"
|
||||
#include "lib/ctime/di_ops.h"
|
||||
|
||||
#ifdef ANDROID
|
||||
#ifdef OPENSSL_NO_ENGINE
|
||||
/* Android's OpenSSL seems to have removed all of its Engine support. */
|
||||
#define DISABLE_ENGINES
|
||||
#endif
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "lib/log/util_bug.h"
|
||||
|
||||
#ifdef ENABLE_OPENSSL
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#if defined(HAVE_ERR_LOAD_KDF_STRINGS)
|
||||
|
@ -50,7 +50,7 @@
|
||||
#define OPENSSL_V_SERIES(a,b,c) \
|
||||
OPENSSL_VER((a),(b),(c),0,0)
|
||||
|
||||
#ifdef ANDROID
|
||||
#ifdef OPENSSL_NO_ENGINE
|
||||
/* Android's OpenSSL seems to have removed all of its Engine support. */
|
||||
#define DISABLE_ENGINES
|
||||
#endif
|
||||
|
@ -45,6 +45,7 @@
|
||||
#ifdef ENABLE_OPENSSL
|
||||
DISABLE_GCC_WARNING(redundant-decls)
|
||||
#include <openssl/rand.h>
|
||||
#include <openssl/sha.h>
|
||||
ENABLE_GCC_WARNING(redundant-decls)
|
||||
#endif
|
||||
|
||||
|
@ -31,6 +31,10 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_OPENSSL
|
||||
#include <openssl/rsa.h>
|
||||
#endif
|
||||
|
||||
/** Return the number of bytes added by padding method <b>padding</b>.
|
||||
*/
|
||||
int
|
||||
|
@ -31,7 +31,10 @@ DISABLE_GCC_WARNING(redundant-decls)
|
||||
#include <openssl/asn1.h>
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/rsa.h>
|
||||
#include <openssl/x509.h>
|
||||
|
||||
ENABLE_GCC_WARNING(redundant-decls)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user