🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6998

Bug#1138331: tpm2-openssl: FTBFS with openssl 4.0

#6998
From: 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--
Technical Details
Message-ID: <O5vjj-fkzg-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <N0ugq-93rU-51@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Bastian Germann <bage@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1138331: tpm2-openssl: FTBFS with openssl 4.0
Date: Tue, 01 Dec 2026 13:40:01 +0100
Message-ID: <O5vjj-fkzg-5@gated-at.bofh.it>
References: <N0ugq-93rU-51@gated-at.bofh.it>
X-Original-To: 1138331@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Dec  1 12:31:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Bastian Germann <bage@debian.org>, 1138331@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: bluca@debian.org
X-Debian-Pr-Message: followup 1138331
X-Debian-Pr-Package: tpm2-openssl
X-Debian-Pr-Keywords: sid
X-Debian-Pr-Source: tpm2-openssl
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="bK7VL/1y9EiP4c9q"
Content-Disposition: inline
X-Debian-User: bage
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006279
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 45
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 1 Dec 2026 13:29:05 +0100
X-Original-Message-ID: <aw69kbOG6TdtrO8k@duagon-BXN3S64.localdomain>
X-Original-References: <20260530155504.OTyFlG8t@breakpoint.cc>