nixsgx/packages/azure-dcap-client/Azure-DCAP-Client.patch
Harald Hoyer 1054e3dbe4
feat: initial commit
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-02-07 11:25:05 +01:00

38 lines
1.4 KiB
Diff

diff --git a/src/dcap_provider.cpp b/src/dcap_provider.cpp
index af09546..40f8883 100644
--- a/src/dcap_provider.cpp
+++ b/src/dcap_provider.cpp
@@ -1348,7 +1348,7 @@ static std::string build_tcb_info_url(
tcb_info_url << base_url;
}
else
- tcb_info_url << get_base_url();
+ tcb_info_url << "https://api.trustedservices.intel.com/sgx/certification";
if (!version.empty())
{
@@ -1441,7 +1441,7 @@ static std::string build_enclave_id_url(
qe_id_url << base_url;
}
else
- qe_id_url << get_base_url();
+ qe_id_url << "https://api.trustedservices.intel.com/sgx/certification/";
// Select the correct issuer header name
if (!version.empty())
@@ -1536,6 +1536,7 @@ static quote3_error_t get_collateral(
"Successfully fetched %s from URL: '%s'.",
friendly_name.c_str(),
url.c_str());
+/*
std::string cache_control;
auto get_cache_header_operation = get_unescape_header(*curl_operation, headers::CACHE_CONTROL, &cache_control);
retval = convert_to_intel_error(get_cache_header_operation);
@@ -1549,6 +1550,7 @@ static quote3_error_t get_collateral(
local_cache_add(issuer_chain_cache_name, expiry, issuer_chain.size(), issuer_chain.c_str());
}
}
+*/
}
return retval;