]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix OpenSSL builds that define OPENSSL_NO_ENGINE (#349)
authorRosen Penev <rosenp@gmail.com>
Wed, 9 Jan 2019 17:42:21 +0000 (17:42 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 11 Jan 2019 02:08:26 +0000 (02:08 +0000)
Even with ENGINE support disabled, OpenSSL provides the openssl/engine.h
header. We have to use OPENSSL_NO_ENGINE to detect ENGINE support.

src/ssl/support.cc

index 8f3c54ab2746716a4467e6f4b84113879bedf5e0..17c3ee0485851768b60dd1b64c6c2ac1fce4872f 100644 (file)
@@ -485,7 +485,7 @@ Ssl::Initialize(void)
 
     SQUID_OPENSSL_init_ssl();
 
-#if HAVE_OPENSSL_ENGINE_H
+#if !defined(OPENSSL_NO_ENGINE)
     if (::Config.SSL.ssl_engine) {
         ENGINE_load_builtin_engines();
         ENGINE *e;