Skip to contentSkip to conversation

ipmiutil: fix build with OpenSSL 4.0

PATCH New Alper Ak 1 participant 1 message Sep 9

lore
Share & tools
lore

Alper Ak

author
#0 lore raw

PATCH 1/1 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

---
 ...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
meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch new file +25 -0
new file mode 100644
index 0000000000..ae790f1909
@@ -0,0 +1,25 @@
+From: Alper Ak <[email protected]>
+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 <[email protected]>
+---
+ 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
meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb +1 -0
index 7945c6f535..4bcf627672 100644
@@ -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"
 
Signature · 1 line
2.43.0