2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-24 16:54:04 +00:00
Files
xcat-dep/ipmitool/0017-openssl3-disable-md2-without-header.patch
T
Vinícius Ferrão dea988bc53 fix(ipmitool): Add OpenSSL 3 MD2 header check for SLES 15/Leap 15
OpenSSL 3.x removed <openssl/md2.h> but keeps MD2_Init as a
deprecated shim in libcrypto. Add AC_CHECK_HEADER([openssl/md2.h])
inside the existing AC_CHECK_LIB block so HAVE_CRYPTO_MD2 is only
defined when both the function and header are available.
2026-05-11 21:06:20 -03:00

17 lines
619 B
Diff

--- ipmitool-1.8.18.orig/configure.ac 2026-05-11 11:35:37
+++ ipmitool-1.8.18/configure.ac 2026-05-11 11:36:20
@@ -184,9 +184,12 @@
[if test "x$xenable_internal_md5" != "xyes"; then
if test "x$have_crypto" != "xyes" && test "x$have_md5" != "xyes"; then
LIBS="$LIBS -lcrypto"
- have_md2=yes
fi
- AC_DEFINE(HAVE_CRYPTO_MD2, [1], [Define to 1 if libcrypto supports MD2.])
+ AC_CHECK_HEADER([openssl/md2.h],
+ [have_md2=yes
+ AC_DEFINE(HAVE_CRYPTO_MD2, [1],
+ [Define to 1 if libcrypto supports MD2.])],
+ [have_md2=no])
fi],
[], [-lcrypto])