Skip to content

Commit

Permalink
Remove unused NewEReportResponse
Browse files Browse the repository at this point in the history
The `NewEReportResponse` doesn't appear to have ever been used as such
it is being removed.
  • Loading branch information
nick-mobilecoin committed Jul 25, 2023
1 parent bd09a26 commit 3acb0a4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions attest/enclave-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub use error::{Error, Result};

use alloc::vec::Vec;
use core::hash::{Hash, Hasher};
use mc_attest_core::{IntelSealed, QuoteNonce, Report};
use mc_attest_core::IntelSealed;
use serde::{Deserialize, Serialize};

macro_rules! impl_newtype_vec_inout {
Expand Down Expand Up @@ -100,15 +100,6 @@ pub struct PlaintextClientRequest {
pub channel_id: ClientSession,
}

/// The response to a request for a new report. The enclave will expect the
/// QuoteNonce to be used when the report is quoted, and both the quote and
/// report to be returned to the enclave during the verify_quote() phase.
#[derive(Clone, Debug, Deserialize, Hash, Eq, PartialEq, Serialize)]
pub struct NewEReportResponse {
pub report: Report,
pub quote_nonce: QuoteNonce,
}

/// A helper trait to aid in generic implementation of enclave methods
pub trait Session:
Clone + Default + Hash + for<'bytes> From<&'bytes [u8]> + Into<Vec<u8>> + PartialEq + PartialOrd
Expand Down

0 comments on commit 3acb0a4

Please sign in to comment.