0001-Check-for-EVP_MD_CTX_copy-in-crypto-lib-instead-of-MD5_Init.patch 1.2 KB

12345678910111213141516171819202122232425262728
  1. From 556a2c5bc2f6244f140a96302d4df92cfc25af8b Mon Sep 17 00:00:00 2001
  2. From: Wayne Davison <wayne@opencoder.net>
  3. Date: Tue, 25 Oct 2022 21:55:53 -0700
  4. Subject: [PATCH] Check for EVP_MD_CTX_copy in crypto lib instead of MD5_Init.
  5. Upstream: https://github.com/WayneD/rsync/commit/556a2c5bc2f6244f140a96302d4df92cfc25af8b
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. ---
  8. configure.ac | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/configure.ac b/configure.ac
  11. index a2c99558..ccad7f13 100644
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -432,10 +432,10 @@ AH_TEMPLATE([USE_OPENSSL],
  15. if test x"$enable_openssl" != x"no"; then
  16. if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
  17. AC_MSG_RESULT(yes)
  18. - AC_SEARCH_LIBS(MD5_Init, crypto,
  19. + AC_SEARCH_LIBS(EVP_MD_CTX_copy, crypto,
  20. [AC_DEFINE(USE_OPENSSL)
  21. enable_openssl=yes],
  22. - [err_msg="$err_msg$nl- Failed to find MD5_Init function in openssl crypto lib.";
  23. + [err_msg="$err_msg$nl- Failed to find EVP_MD_CTX_copy function in openssl crypto lib.";
  24. no_lib="$no_lib openssl"])
  25. else
  26. AC_MSG_RESULT(no)