From f4aec4be9dffcfd08f00a5959db9d51369f7a4b1 Mon Sep 17 00:00:00 2001 From: Raoul Strackx Date: Tue, 21 Jan 2025 15:53:56 +0100 Subject: [PATCH] Always fetch early variant of DCAP artifacts --- .../dcap-artifact-retrieval/src/provisioning_client/intel.rs | 4 ++-- .../dcap-artifact-retrieval/src/provisioning_client/pccs.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/intel.rs b/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/intel.rs index d3dcd49f..4a98a5fa 100644 --- a/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/intel.rs +++ b/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/intel.rs @@ -355,7 +355,7 @@ impl<'inp> ProvisioningServiceApi<'inp> for TcbInfoApi { let api_version = input.api_version as u8; let fmspc = input.fmspc.as_bytes().to_hex(); let url = format!( - "{}/sgx/certification/v{}/tcb?fmspc={}", + "{}/sgx/certification/v{}/tcb?fmspc={}&update=early", INTEL_BASE_URL, api_version, fmspc, ); Ok((url, Vec::new())) @@ -430,7 +430,7 @@ impl<'inp> ProvisioningServiceApi<'inp> for QeIdApi { fn build_request(&self, input: &Self::Input) -> Result<(String, Vec<(String, String)>), Error> { let api_version = input.api_version as u8; let url = format!( - "{}/sgx/certification/v{}/qe/identity", + "{}/sgx/certification/v{}/qe/identity?update=early", INTEL_BASE_URL, api_version, ); Ok((url, Vec::new())) diff --git a/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/pccs.rs b/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/pccs.rs index f69d6a25..8611b73d 100644 --- a/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/pccs.rs +++ b/intel-sgx/dcap-artifact-retrieval/src/provisioning_client/pccs.rs @@ -281,7 +281,7 @@ impl<'inp> ProvisioningServiceApi<'inp> for TcbInfoApi { let api_version = input.api_version as u8; let fmspc = input.fmspc.as_bytes().to_hex(); let url = format!( - "{}/sgx/certification/v{}/tcb?fmspc={}", + "{}/sgx/certification/v{}/tcb?fmspc={}&update=early", self.base_url, api_version, fmspc ); Ok((url, Vec::new())) @@ -359,7 +359,7 @@ impl<'inp> ProvisioningServiceApi<'inp> for QeIdApi { fn build_request(&self, input: &Self::Input) -> Result<(String, Vec<(String, String)>), Error> { let api_version = input.api_version as u8; let url = format!( - "{}/sgx/certification/v{}/qe/identity", + "{}/sgx/certification/v{}/qe/identity?update=early", self.base_url, api_version, ); Ok((url, Vec::new()))