From a62ce81f2447b1791a8d8c0aa6317fb6388f189b Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 17 Nov 2026 11:54:40 -0500 Subject: [PATCH 1/2] Expose consuming parsed certificate and revocation components --- crates/pkcs7/src/revocation.rs | 53 ++++++++++++++++++- crates/pkcs7/src/x509.rs | 90 +++++++++++++++++++++++++++++++++ crates/pkcs7/tests/it/crypto.rs | 53 +++++++++++++++++++ 3 files changed, 194 insertions(+), 2 deletions(-) diff --git a/crates/pkcs7/src/revocation.rs b/crates/pkcs7/src/revocation.rs index 0aa9be9c6..dfb398cae 100644 --- a/crates/pkcs7/src/revocation.rs +++ b/crates/pkcs7/src/revocation.rs @@ -63,6 +63,27 @@ pub struct CertificateList { pub revoked: Vec<(Vec, Time)>, } +/// Owned parsed components for adapters. This is not a signature or trust verdict. +/// Consuming conversion moves buffers without reparsing or cloning signed material. +pub struct CertificateListParts { + pub tbs: Vec, + pub sig_alg: Vec, + pub signature: Vec, + pub issuer_raw: Vec, + pub this_update: Time, + pub next_update: Option