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 <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Alper Ak authored and Khem Raj committed 2026-09-11 07:07:58 -07:00
1 parent b18bcbb94a
commit 6b7942fa8c
2 files changed
+26

No files matched your search

@@ -0,0 +1,25 @@
From: Alper Ak <alperyasinak1@gmail.com>
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 <alperyasinak1@gmail.com>
---
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
@@ -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"