2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-06-02 00:08:34 +00:00
Files
xcat-dep/ipmitool/0017-openssl3-disable-md2-without-header.patch
Vinícius Ferrão 30dfa85538 fix(conserver): Port DH key setup to OpenSSL 3 opaque structs
OpenSSL 3.x made the DH struct opaque. Replace direct dh->p/dh->g
member access with DH_set0_pqg() behind a version guard so older
OpenSSL (< 1.1.0) keeps the original code path.
2026-05-11 21:06:20 -03:00

17 lines
586 B
Diff

--- a/configure.ac 2026-05-11 11:35:37
+++ b/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])