This commit is contained in:
Ajinkya Kulkarni 2024-12-04 21:41:48 +01:00
parent f6770c2d0c
commit bc3577ec17

View file

@ -73,7 +73,11 @@ async fn upsert_tcbinfo() -> Result<(), &'static str> {
for fmspc in fmspc_list {
let tcbinfo = get_tcbinfo(fmspc.clone(), "standard".to_string()).await;
assert!(verify_signature(tcbinfo.clone(), key));
let store_entry = &store[&fmspc];
let store_entry = if store.contains_key(&fmspc)
{
&store[&fmspc]
}
else {""}
if *store_entry != tcbinfo {
println!("updating local TCBInfo for FMSPC: {fmspc}");
store.insert(fmspc.clone(), tcbinfo.clone());