Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
check(rtc_tenclave,dh): peer identity code not used yet, but will be
Browse files Browse the repository at this point in the history
  • Loading branch information
PiDelport committed May 31, 2021
1 parent ead4d8b commit d6fd186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rtc_tenclave/src/dh/sessions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions rtc_tenclave/src/dh/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ impl Zeroize for AlignedKey {

pub struct DhValues {
pub(crate) session_key: Secret<AlignedKey>,
#[allow(dead_code)] // not used yet, but will be
pub(crate) peer_identity: sgx_dh_session_enclave_identity_t,
}

Expand Down

0 comments on commit d6fd186

Please sign in to comment.