From a2ade8fbc351a96d57d2c34ed8dd7479addfedbd Mon Sep 17 00:00:00 2001 From: "Jan Chren (rindeal)" Date: Sun, 24 Jun 2018 04:39:06 +0200 Subject: [PATCH] check that libcrypto supports MD2 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 484d22fecc..92c1bdaca1 100644 --- a/configure.ac +++ b/configure.ac @@ -343,6 +343,10 @@ AC_CHECK_LIB(crypto, EVP_DigestInit_ex, [], [ AC_MSG_ERROR([required OpenSSL library 'libcrypto' missing or too old]) ]) +AC_CHECK_LIB(crypto, EVP_md2, [], [ + AC_MSG_ERROR([required OpenSSL library 'libcrypto' wasn't compiled with MD2 support]) +]) + AC_CHECK_LIB(crypto, EVP_MD_CTX_new, [ AC_DEFINE(HAVE_EVP_MD_CTX_NEW, 1, [Define to 1 if OpenSSL has EVP_MD_CTX_new]) AC_SUBST(HAVE_EVP_MD_CTX_NEW, [1])