🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Bastian Germann Tue, 01 Dec 2026 12:40
Bug#1138331: tpm2-openssl: FTBFS with openssl 4.0
#6998
Author: Bastian Germann
Date: Tue, 01 Dec 2026 12:40
45 lines
3416 bytes
--bK7VL/1y9EiP4c9q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Control: tags -1 patch

Ubuntu has applied the attached patch.

--bK7VL/1y9EiP4c9q
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename=openssl4.patch

From 6dcc3b2984e3f4dc1849c79d89c6ce736a8435b3 Mon Sep 17 00:00:00 2001
From: Petr Gotthard <petr.gotthard@advantech.cz>
Date: Sat, 7 Mar 2026 15:51:12 +0100
Subject: [PATCH] Fix ASN1_OCTET_STRING and X509_NAME access for OpenSSL 4.0
 compatibility

Fixes: #166

Origin: upstream, https://github.com/tpm2-software/tpm2-openssl/commit/6dcc3b2984e3f4dc1849c79d89c6ce736a8435b3
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2154878
Bug-Debian: http://bugs.debian.org/1138331
---
--- a/src/tpm2-provider-pkey.c
+++ b/src/tpm2-provider-pkey.c
@@ -149,13 +149,13 @@ tpm2_keydata_read(BIO *bin, TPM2_KEYDATA *keydata, TPM2_PKEY_FORMAT format)
             strcmp(type_oid, OID_loadableKey))
         goto error;
 
-    if (Tss2_MU_TPM2B_PRIVATE_Unmarshal(tpk->privkey->data,
-                                        tpk->privkey->length, NULL,
+    if (Tss2_MU_TPM2B_PRIVATE_Unmarshal(ASN1_STRING_get0_data(tpk->privkey),
+                                        ASN1_STRING_length(tpk->privkey), NULL,
                                         &keydata->priv))
         goto error;
 
-    if (Tss2_MU_TPM2B_PUBLIC_Unmarshal(tpk->pubkey->data,
-                                       tpk->pubkey->length, NULL,
+    if (Tss2_MU_TPM2B_PUBLIC_Unmarshal(ASN1_STRING_get0_data(tpk->pubkey),
+                                       ASN1_STRING_length(tpk->pubkey), NULL,
                                        &keydata->pub))
         goto error;

--bK7VL/1y9EiP4c9q--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads