From 3d672865ce4bb91e1b6fe74640fd77ece2fe17e0 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Tue, 6 Oct 2026 18:20:34 +0200 Subject: [PATCH] package/trousers: fix build with OpenSSL 4.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernd Kuhls Cc: NoƩ Rubinstein Signed-off-by: Thomas Petazzoni --- package/trousers/0004-openssl4.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/trousers/0004-openssl4.patch diff --git a/package/trousers/0004-openssl4.patch b/package/trousers/0004-openssl4.patch new file mode 100644 index 0000000000..5ef6cb19b0 --- /dev/null +++ b/package/trousers/0004-openssl4.patch @@ -0,0 +1,26 @@ +Description: Fix for OpenSSL4 compatibility + Replace direct access to opaque ASN1_OCTET_STRING->data field with + ASN1_STRING_get0_data() accessor. ASN1_STRING is fully opaque in OpenSSL 4.0. +Author: Ravi Kant Sharma +Bug-Ubuntu: https://bugs.launchpad.net/bugs/2155003 +Bug-Debian: https://bugs.debian.org/1138451 +Forwarded: no + +Patch downloaded from Debian: +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1138451#12 + +Upstream: https://sourceforge.net/p/trousers/bugs/240/ + +Signed-off-by: Bernd Kuhls + +--- a/src/tspi/tspi_asn1.c ++++ b/src/tspi/tspi_asn1.c +@@ -237,7 +237,7 @@ + + if (*rawBlobSize != 0) { + if (decBlobSize <= *rawBlobSize) { +- memcpy(rawBlob, tssBlob->blob->data, decBlobSize); ++ memcpy(rawBlob, ASN1_STRING_get0_data(tssBlob->blob), decBlobSize); + } + else { + TSS_BLOB_free(tssBlob);