]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compilation when openssl is compiled without engine support.
authorNick Mathewson <nickm@torproject.org>
Fri, 8 Feb 2019 13:50:04 +0000 (08:50 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 8 Feb 2019 13:50:43 +0000 (08:50 -0500)
Patch from Mangix. Closes part of ticket 29026.

src/lib/crypt_ops/aes_openssl.c
src/lib/crypt_ops/crypto_openssl_mgt.h

index 42ee924a8a7b0a01dc97d3a878efc9501c57d831..2f985d4512956b9615c8fbba181587925a8d7adc 100644 (file)
@@ -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
index 83fb44cadf89b634e92debbc5321f1efd0da64e2..a3dd03aa04e6992c1d85f6044891a314b460ed8e 100644 (file)
@@ -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