From: James Bottomley Date: Sun, 29 Oct 2017 15:34:48 +0000 (+0000) Subject: autoconf: Fix engine checks for openssl 1.1 X-Git-Tag: v2.4.5~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e047e93f5d5317be1d491c6269524cee9a07085;p=thirdparty%2Fopenvpn.git autoconf: Fix engine checks for openssl 1.1 In openssl 1.1, ENGINE_cleanup became a #define instead of a function (because it's no longer needed as engines are self cleaning). Update the autoconf.ac script to check for ENGINE_cleanup as a declaration to avoid falsely undefinig HAVE_OPENSSL_ENGINE in openssl 1.1+ Signed-off-by: James Bottomley Acked-by: Steffan Karger Message-Id: <1509291288.3116.14.camel@HansenPartnership.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15676.html Signed-off-by: Gert Doering (cherry picked from commit 6b5dbf6c8da0ff82fa1dca4eb4665be0a4fe31d3) --- diff --git a/configure.ac b/configure.ac index bc0142214..afcecb137 100644 --- a/configure.ac +++ b/configure.ac @@ -879,6 +879,13 @@ if test "${enable_crypto}" = "yes" -a "${with_crypto_library}" = "openssl"; then , [have_openssl_engine="no"; break] ) + if test "${have_openssl_engine}" = "no"; then + AC_CHECK_DECL( [ENGINE_cleanup], [have_openssl_engine="yes"],, + [[ + #include + ]] + ) + fi if test "${have_openssl_engine}" = "yes"; then AC_DEFINE([HAVE_OPENSSL_ENGINE], [1], [OpenSSL engine support available]) fi