Bläddra i källkod

Fix compilation when openssl is compiled without engine support.

Patch from Mangix. Closes part of ticket 29026.
Nick Mathewson 6 år sedan
förälder
incheckning
b9abdcd6bc
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      src/lib/crypt_ops/aes_openssl.c
  2. 1 1
      src/lib/crypt_ops/crypto_openssl_mgt.h

+ 1 - 1
src/lib/crypt_ops/aes_openssl.c

@@ -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

+ 1 - 1
src/lib/crypt_ops/crypto_openssl_mgt.h

@@ -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