]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix detection of OpenSSL built w/o deprecated features support (#470)
authorFX Coudert <fxcoudert@gmail.com>
Wed, 11 Sep 2019 05:12:04 +0000 (05:12 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 14 Oct 2019 12:04:16 +0000 (01:04 +1300)
SSL_library_init() is deprecated since OpenSSL v1.1 and is absent in
OpenSSL built without deprecated features. Several distributions (e.g.
Homebrew) ship OpenSSL built without deprecated features.

configure.ac

index 7b3aae345981ac7f1269398f66d7e5d66651f733..7ad21e9e03e019f44ef8229ae7d5a9829c1777a5 100644 (file)
@@ -1357,7 +1357,7 @@ if test "x$with_openssl" = "xyes"; then
     AC_CHECK_LIB(crypto,[CRYPTO_new_ex_data],[LIBOPENSSL_LIBS="-lcrypto $LIBOPENSSL_LIBS"],[
       AC_MSG_ERROR([library 'crypto' is required for OpenSSL])
     ],$LIBOPENSSL_LIBS)
-    AC_CHECK_LIB(ssl,[SSL_library_init],[LIBOPENSSL_LIBS="-lssl $LIBOPENSSL_LIBS"],[
+    AC_CHECK_LIB(ssl,[SSL_CTX_new],[LIBOPENSSL_LIBS="-lssl $LIBOPENSSL_LIBS"],[
       AC_MSG_ERROR([library 'ssl' is required for OpenSSL])
     ],$LIBOPENSSL_LIBS)
   ])