WIP
This commit is contained in:
parent
f6770c2d0c
commit
bc3577ec17
1 changed files with 5 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue