Browse Source

Fix compilation when openssl is compiled without engine support.

Patch from Mangix. Closes part of ticket 29026.
Nick Mathewson 5 years ago
parent
commit
b9abdcd6bc
2 changed files with 2 additions and 2 deletions
  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