Skip to content

Commit 1efeaf6

Browse files
committed
MAL-9769 Include latest pckcert in fallback pckcerts request
1 parent 2c5380e commit 1efeaf6

File tree

1 file changed

+4
-0
lines changed
  • intel-sgx/dcap-artifact-retrieval/src/provisioning_client

1 file changed

+4
-0
lines changed

intel-sgx/dcap-artifact-retrieval/src/provisioning_client/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,10 @@ pub trait ProvisioningClient {
596596
let tcb_info = self.tcbinfo(&fmspc, None)?;
597597
let tcb_data = tcb_info.data()?;
598598
let mut pcks = HashMap::new();
599+
{
600+
let ptcb = pck_cert.platform_tcb()?;
601+
pcks.insert((ptcb.cpusvn, ptcb.tcb_components.pce_svn()), pck_cert);
602+
}
599603
for (cpu_svn, pce_isvsvn) in tcb_data.iter_tcb_components() {
600604
let p = match self.pckcert(
601605
Some(&pck_id.enc_ppid),

0 commit comments

Comments
 (0)