From a0c77719dbf153cd1a36c8622ffe4922d15a1e75 Mon Sep 17 00:00:00 2001 From: vlad Date: Thu, 30 Jan 2025 13:19:17 +0000 Subject: [PATCH] dcap/verify_quote_any - impl regardless to SGX mode --- cosmwasm/enclaves/shared/crypto/src/dcap.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/cosmwasm/enclaves/shared/crypto/src/dcap.rs b/cosmwasm/enclaves/shared/crypto/src/dcap.rs index 5c4f8d635..5c65e71df 100644 --- a/cosmwasm/enclaves/shared/crypto/src/dcap.rs +++ b/cosmwasm/enclaves/shared/crypto/src/dcap.rs @@ -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, @@ -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 { - Err(sgx_status_t::SGX_ERROR_NO_DEVICE) -} - -#[cfg(feature = "SGX_MODE_HW")] pub fn verify_quote_any( vec_quote: &[u8], vec_coll: &[u8],