public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Robinson <pbrobinson@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/tpm2-tools] rawhide: drop obsolete patch
Date: Wed, 15 Jul 2026 21:46:47 GMT [thread overview]
Message-ID: <178415200738.1.17294122276094889795.rpms-tpm2-tools-acfce501fa86@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/tpm2-tools
Branch : rawhide
Commit : acfce501fa866b535cb4e957feb5cf447186d7ae
Author : Peter Robinson <pbrobinson@gmail.com>
Date : 2026-07-15T22:46:39+01:00
Stats : +0/-80 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/tpm2-tools/c/acfce501fa866b535cb4e957feb5cf447186d7ae?branch=rawhide
Log:
drop obsolete patch
---
diff --git a/0001-Use-ASN1-getters-instead-of-direct-struct-access.patch b/0001-Use-ASN1-getters-instead-of-direct-struct-access.patch
deleted file mode 100644
index 8bdd530..0000000
--- a/0001-Use-ASN1-getters-instead-of-direct-struct-access.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 87eda54b584ed9abe8118b0ed5569dea95b62a70 Mon Sep 17 00:00:00 2001
-From: Simo Sorce <simo@redhat.com>
-Date: Fri, 17 Apr 2026 16:13:18 -0400
-Subject: [PATCH] Use ASN1 getters instead of direct struct access
-
-This updates the code to interact correctly with modern OpenSSL versions
-(4.0+) where these structures are opaque, ensuring API compatibility and
-preventing build errors.
-
-Co-authored-by: Gemini <gemini@google.com>
-Signed-off-by: Simo Sorce <simo@redhat.com>
----
- lib/object.c | 9 ++++-----
- lib/tpm2_convert.c | 8 ++++----
- 2 files changed, 8 insertions(+), 9 deletions(-)
-
-diff --git a/lib/object.c b/lib/object.c
-index 1d6cd42..17bf77a 100644
---- a/lib/object.c
-+++ b/lib/object.c
-@@ -1,4 +1,3 @@
--
- #include <stdio.h>
-
- #include "files.h"
-@@ -251,21 +250,21 @@ tool_rc tpm2_util_object_fetch_priv_pub_from_tpk(const char *objectstr,
- goto ret;
- }
-
-- int pub_len = tpk->pubkey->length;
-- int priv_len = tpk->privkey->length;
-+ int pub_len = ASN1_STRING_length(tpk->pubkey);
-+ int priv_len = ASN1_STRING_length(tpk->privkey);
- if (pub_len < 1 || priv_len < 1) {
- LOG_ERR("Error deserializing TSS Privkey Object");
- goto ret;
- }
-
-- rc = Tss2_MU_TPM2B_PUBLIC_Unmarshal(tpk->pubkey->data, pub_len,
-+ rc = Tss2_MU_TPM2B_PUBLIC_Unmarshal(ASN1_STRING_get0_data(tpk->pubkey), pub_len,
- NULL, pub);
- if (rc != tool_rc_success) {
- LOG_ERR("Error deserializing public portion of object");
- goto ret;
- }
-
-- rc = Tss2_MU_TPM2B_PRIVATE_Unmarshal(tpk->privkey->data, priv_len,
-+ rc = Tss2_MU_TPM2B_PRIVATE_Unmarshal(ASN1_STRING_get0_data(tpk->privkey), priv_len,
- NULL, priv);
- if (rc != tool_rc_success) {
- LOG_ERR("Error deserializing private portion of object");
-diff --git a/lib/tpm2_convert.c b/lib/tpm2_convert.c
-index d3a30eb..e071a95 100644
---- a/lib/tpm2_convert.c
-+++ b/lib/tpm2_convert.c
-@@ -499,8 +499,8 @@ static bool pop_ecdsa(const char *path, TPMS_SIGNATURE_ECDSA *ecdsa) {
- LOG_ERR("oom");
- return false;
- }
-- memcpy(R->buffer, r->data, r->length);
-- R->size = r->length;
-+ memcpy(R->buffer, ASN1_STRING_get0_data(r), ASN1_STRING_length(r));
-+ R->size = ASN1_STRING_length(r);
- ASN1_INTEGER_free(r);
-
- /*
-@@ -512,8 +512,8 @@ static bool pop_ecdsa(const char *path, TPMS_SIGNATURE_ECDSA *ecdsa) {
- LOG_ERR("oom");
- return false;
- }
-- memcpy(S->buffer, s->data, s->length);
-- S->size = s->length;
-+ memcpy(S->buffer, ASN1_STRING_get0_data(s), ASN1_STRING_length(s));
-+ S->size = ASN1_STRING_length(s);
- ASN1_INTEGER_free(s);
-
- return true;
---
-2.53.0
-
reply other threads:[~2026-07-15 21:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178415200738.1.17294122276094889795.rpms-tpm2-tools-acfce501fa86@fedoraproject.org \
--to=pbrobinson@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox