fixup! refactor(intel-dcap-api): split client.rs into smaller files

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2025-04-11 12:34:09 +02:00
parent 4501b3421c
commit 1a392e800a
Signed by: harald
GPG key ID: F519A1143B3FBE32
8 changed files with 24 additions and 23 deletions

View file

@ -1,6 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 Matter Labs
//! PCK Certificate Revocation List
use super::ApiClient; // Import from parent module
use crate::{
error::{check_status, IntelApiError},
@ -52,8 +54,8 @@ impl ApiClient {
let issuer_chain = self.get_required_header(
&response,
"SGX-PCK-CRL-Issuer-Chain", // v4 name
Some("SGX-PCK-CRL-Issuer-Chain"), // v3 name
"SGX-PCK-CRL-Issuer-Chain",
Some("SGX-PCK-CRL-Issuer-Chain"),
)?;
// Response body is PEM or DER CRL