From 6b7942fa8c691ad9daba25b5420692949b5e00e7 Mon Sep 17 00:00:00 2001 From: Alper Ak Date: Wed, 9 Sep 2026 23:07:06 +0300 Subject: [PATCH] ipmiutil: fix build with OpenSSL 4.0 do_compile fails with: lanplus_crypt_impl.c:233:24: error: storage size of 'ctx' isn't known Signed-off-by: Alper Ak Signed-off-by: Khem Raj --- ...configure-enable-SSL11-for-OpenSSL-4.patch | 25 +++++++++++++++++++ .../recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch diff --git a/meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch b/meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch new file mode 100644 index 0000000000..ae790f1909 --- /dev/null +++ b/meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch @@ -0,0 +1,25 @@ +From: Alper Ak +Date: Wed, 9 Sep 2026 23:00:00 +0300 +Subject: [PATCH] configure: enable SSL11 for OpenSSL 4 + +OpenSSL 4 keeps EVP_CIPHER_CTX opaque, so it cannot go on the stack. +The heap path behind SSL11 is already there, configure just does not +turn it on for major version 4. + +Upstream-Status: Submitted [https://sourceforge.net/p/ipmiutil/feature-requests/13/] +Signed-off-by: Alper Ak +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/configure.ac ++++ b/configure.ac +@@ -443,7 +443,7 @@ + MD2_CFLAGS="-DSKIP_MD2 -DSSL11" + sslnew=1 + fi +- if test "$sslrel" = "3"; then ++ if test "$sslrel" = "3" -o "$sslrel" = "4"; then + echo "Detected openssl-$sslver" + MD2_CFLAGS="-DSKIP_MD2 -DSSL11" + sslnew=1 diff --git a/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb b/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb index 7945c6f535..4bcf627672 100644 --- a/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb +++ b/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb @@ -22,6 +22,7 @@ PARALLEL_MAKE = "" SRC_URI = "${SOURCEFORGE_MIRROR}/ipmiutil/ipmiutil-${PV}.tar.gz \ file://fix_systemd_path.patch \ file://0001-ihpm-Include-stdlib.h-for-malloc-free-atoi-functions.patch \ + file://0002-configure-enable-SSL11-for-OpenSSL-4.patch \ " SRC_URI[sha256sum] = "37f9bc8e6b18c1155e4d5ea38c87b83908b7acc7a44fbc5e3af493f26ef8b767"