From 200f9be97bff11063aff48678fe2543690655255 Mon Sep 17 00:00:00 2001 From: James Price Date: Mon, 29 Jun 2026 00:45:21 +0200 Subject: [PATCH] Patch to fix ed25519 in PIV slot. --- src/piv.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/piv.rs b/src/piv.rs index 78ba16d..df611ea 100644 --- a/src/piv.rs +++ b/src/piv.rs @@ -565,8 +565,10 @@ impl Key { }; if !buf.is_empty() { - let cert = Certificate::from_bytes(buf)?; - keys.push(Key { slot, cert }); + match Certificate::from_bytes(buf) { + Ok(cert) => keys.push(Key { slot, cert }), + Err(Error::InvalidObject) => {} // skip slots we can't parse (e.g. Ed25519) + Err(other) => return Err(other), } }