1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 09:08:49 -05:00

openssl: disable engine if OPENSSL_NO_UI_CONSOLE is defined

... since that needs UI_OpenSSL() which isn't provided when OpenSSL is
built with OPENSSL_NO_UI_CONSOLE which happens when OpenSSL is built for
UWP (with "VC-WIN32-UWP").

Reported-by: Vasily Lobaskin
Fixes #4073
Closes #4077
This commit is contained in:
Daniel Stenberg 2019-06-25 20:35:22 +02:00
parent 8b159d1fe9
commit c40eb3220c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -75,7 +75,7 @@
#endif #endif
#if (OPENSSL_VERSION_NUMBER >= 0x0090700fL) && /* 0.9.7 or later */ \ #if (OPENSSL_VERSION_NUMBER >= 0x0090700fL) && /* 0.9.7 or later */ \
!defined(OPENSSL_NO_ENGINE) !defined(OPENSSL_NO_ENGINE) && !defined(OPENSSL_NO_UI_CONSOLE)
#define USE_OPENSSL_ENGINE #define USE_OPENSSL_ENGINE
#include <openssl/engine.h> #include <openssl/engine.h>
#endif #endif