From d6fd1867c406bb34e405717a1c7720ba74a03091 Mon Sep 17 00:00:00 2001 From: Pi Delport Date: Mon, 31 May 2021 17:51:04 +0200 Subject: [PATCH] check(rtc_tenclave,dh): peer identity code not used yet, but will be --- rtc_tenclave/src/dh/sessions.rs | 1 + rtc_tenclave/src/dh/types.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/rtc_tenclave/src/dh/sessions.rs b/rtc_tenclave/src/dh/sessions.rs index 9e23a62d..aa279bf5 100644 --- a/rtc_tenclave/src/dh/sessions.rs +++ b/rtc_tenclave/src/dh/sessions.rs @@ -270,6 +270,7 @@ pub unsafe extern "C" fn exchange_report( } // TODO: Integrate using function reference with similar signature or a config obj +#[allow(dead_code)] // not used yet, but will be fn verify_peer_enclave_trust(peer_identity: &sgx_dh_session_enclave_identity_t) -> Result<(), ()> { let required_flags = SGX_FLAGS_INITTED; let denied_flags = SGX_FLAGS_DEBUG; diff --git a/rtc_tenclave/src/dh/types.rs b/rtc_tenclave/src/dh/types.rs index e10fd547..3988f798 100644 --- a/rtc_tenclave/src/dh/types.rs +++ b/rtc_tenclave/src/dh/types.rs @@ -23,6 +23,7 @@ impl Zeroize for AlignedKey { pub struct DhValues { pub(crate) session_key: Secret, + #[allow(dead_code)] // not used yet, but will be pub(crate) peer_identity: sgx_dh_session_enclave_identity_t, }