squid: Fix compilation without OpenSSL ENGINE support

OpenSSL 1.1 includes the header but support has to be checked in another
way.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-01-06 21:02:59 -08:00
parent 483c9fceae
commit 0e4b4f66a2
2 changed files with 12 additions and 1 deletions
@@ -0,0 +1,11 @@
--- a/src/ssl/support.cc
+++ b/src/ssl/support.cc
@@ -485,7 +485,7 @@ Ssl::Initialize(void)
SQUID_OPENSSL_init_ssl();
-#if HAVE_OPENSSL_ENGINE_H
+#ifndef OPENSSL_NO_ENGINE
if (::Config.SSL.ssl_engine) {
ENGINE_load_builtin_engines();
ENGINE *e;