mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-06-02 00:08:34 +00:00
30dfa85538
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.
17 lines
586 B
Diff
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])
|