From 86bd3513982bda192e6e52080c5417e320b3c263 Mon Sep 17 00:00:00 2001 From: Ajinkya Kulkarni Date: Wed, 4 Dec 2024 20:27:58 +0100 Subject: [PATCH] WIP --- crates/utils/tcbinfo-updater/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/utils/tcbinfo-updater/src/main.rs b/crates/utils/tcbinfo-updater/src/main.rs index 8df9612..4cea74a 100644 --- a/crates/utils/tcbinfo-updater/src/main.rs +++ b/crates/utils/tcbinfo-updater/src/main.rs @@ -98,7 +98,11 @@ async fn upsert_tcbinfo() -> Result<(), &'static str> { } fn verify_signature (tcbinfo: Value, key: VerifyingKey) { - let signed_tcbinfo = SignedTcbInfo::try_from(tcbinfo.as_str().expect("failed to parse tcbinfo json")).expect("tcbinfo string parsing failed"); + tcbinfo_json = tcbinfo.as_str(); + if let Err(e) = tcbinfo_json { + println!("{tcbinfo:?}"); + } + let signed_tcbinfo = SignedTcbInfo::try_from().expect("tcbinfo string parsing failed"); signed_tcbinfo.verify(Some(&key), None).expect("could not verify signature"); }