Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo fmt #732

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions deps/verifier/src/intel_dcap/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::TeeEvidenceParsedClaim;
use anyhow::{anyhow, bail};
use intel_tee_quote_verification_rs::{
quote3_error_t, sgx_ql_qv_result_t, sgx_ql_qv_supplemental_t, sgx_ql_request_policy_t,
Expand All @@ -10,7 +11,6 @@ use std::ffi::CStr;
use std::mem;
use std::os::raw::c_char;
use std::time::{Duration, SystemTime};
use crate::TeeEvidenceParsedClaim;

pub async fn ecdsa_quote_verification(quote: &[u8]) -> anyhow::Result<Map<String, Value>> {
let mut supp_data: sgx_ql_qv_supplemental_t = Default::default();
Expand Down Expand Up @@ -89,11 +89,10 @@ pub async fn ecdsa_quote_verification(quote: &[u8]) -> anyhow::Result<Map<String
None,
p_supplemental_data,
)
.map_err(|e| anyhow!("tee_verify_quote failed: {:#04x}", e as u32))?;
.map_err(|e| anyhow!("tee_verify_quote failed: {:#04x}", e as u32))?;

debug!("tee_verify_quote successfully returned.");


match quote_verification_result {
sgx_ql_qv_result_t::SGX_QL_QV_RESULT_OK
| sgx_ql_qv_result_t::SGX_QL_QV_RESULT_CONFIG_NEEDED
Expand Down
6 changes: 5 additions & 1 deletion deps/verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ pub mod cca;
#[cfg(feature = "se-verifier")]
pub mod se;

#[cfg(any(feature = "az-tdx-vtpm-verifier", feature = "tdx-verifier", feature = "sgx-verifier"))]
#[cfg(any(
feature = "az-tdx-vtpm-verifier",
feature = "tdx-verifier",
feature = "sgx-verifier"
))]
pub mod intel_dcap;

pub fn to_verifier(tee: &Tee) -> Result<Box<dyn Verifier + Send + Sync>> {
Expand Down
2 changes: 1 addition & 1 deletion deps/verifier/src/tdx/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ mod tests {
use rstest::rstest;

use super::*;
use std::fs;
use crate::intel_dcap::ecdsa_quote_verification;
use std::fs;

#[rstest]
#[case("./test_data/tdx_quote_4.dat")]
Expand Down
Loading