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);