Check for EVP_MD_CTX_copy in crypto lib instead of MD5_Init.
authorWayne Davison <wayne@opencoder.net>
Wed, 26 Oct 2022 04:55:53 +0000 (21:55 -0700)
committerWayne Davison <wayne@opencoder.net>
Wed, 26 Oct 2022 04:55:53 +0000 (21:55 -0700)
configure.ac

index a2c995587f088053ed4d47cd8d2714abec88edcc..ccad7f13205a8f82d800e9cc6f86f228f94734f9 100644 (file)
@@ -432,10 +432,10 @@ AH_TEMPLATE([USE_OPENSSL],
 if test x"$enable_openssl" != x"no"; then
     if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
       AC_MSG_RESULT(yes)
-      AC_SEARCH_LIBS(MD5_Init, crypto,
+      AC_SEARCH_LIBS(EVP_MD_CTX_copy, crypto,
           [AC_DEFINE(USE_OPENSSL)
           enable_openssl=yes],
-          [err_msg="$err_msg$nl- Failed to find MD5_Init function in openssl crypto lib.";
+          [err_msg="$err_msg$nl- Failed to find EVP_MD_CTX_copy function in openssl crypto lib.";
           no_lib="$no_lib openssl"])
     else
         AC_MSG_RESULT(no)