From: Guus Sliepen Date: Sun, 8 May 2011 19:06:06 +0000 (+0200) Subject: Check for EVP_EncryptInit_ex instead of SHA1_Version in OpenSSL. X-Git-Tag: release-1.0.14~4 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=6e6b037ef4fd9877aeb1d947da7364409fa8cbb7;p=tinc Check for EVP_EncryptInit_ex instead of SHA1_Version in OpenSSL. The latter function disappeared, and wasn't actually used in tinc, so now we check on a function that we do use. --- diff --git a/m4/openssl.m4 b/m4/openssl.m4 index f0913001..8d4a24bf 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -28,13 +28,13 @@ AC_DEFUN([tinc_OPENSSL], case $host_os in *mingw*) - AC_CHECK_LIB(crypto, SHA1_version, + AC_CHECK_LIB(crypto, EVP_EncryptInit_ex, [LIBS="$LIBS -lcrypto -lgdi32 -lcrypt32"], [AC_MSG_ERROR([OpenSSL libraries not found.])] ) ;; *) - AC_CHECK_LIB(crypto, SHA1_version, + AC_CHECK_LIB(crypto, EVP_EncryptInit_ex, [LIBS="$LIBS -lcrypto"], [AC_MSG_ERROR([OpenSSL libraries not found.])] )