Skip to content

Commit

Permalink
dcap/verify_quote_any - impl regardless to SGX mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad committed Jan 30, 2025
1 parent ecf04e6 commit a0c7771
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions cosmwasm/enclaves/shared/crypto/src/dcap.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#[cfg(feature = "SGX_MODE_HW")]
use log::*;

use sgx_types::{sgx_ql_qv_result_t, sgx_status_t};

#[cfg(feature = "SGX_MODE_HW")]
use sgx_types::{
sgx_isv_svn_t, sgx_ql_qe_report_info_t, sgx_quote3_error_t, sgx_self_target, sgx_target_info_t,
sgx_tvl_verify_qve_report_and_identity,
};
use sgx_types::{sgx_ql_qv_result_t, sgx_status_t};

#[cfg(feature = "SGX_MODE_HW")]
extern "C" {
pub fn ocall_verify_quote_ecdsa(
ret_val: *mut sgx_status_t,
Expand All @@ -29,16 +24,6 @@ extern "C" {
) -> sgx_status_t;
}

#[cfg(not(feature = "SGX_MODE_HW"))]
pub fn verify_quote_any(
_vec_quote: &[u8],
_vec_coll: &[u8],
_time_s: i64,
) -> Result<sgx_ql_qv_result_t, sgx_status_t> {
Err(sgx_status_t::SGX_ERROR_NO_DEVICE)
}

#[cfg(feature = "SGX_MODE_HW")]
pub fn verify_quote_any(
vec_quote: &[u8],
vec_coll: &[u8],
Expand Down

0 comments on commit a0c7771

Please sign in to comment.