Skip to content

Commit

Permalink
Derive Clone for the TcbError
Browse files Browse the repository at this point in the history
Any error that is meant out be propagated out of an enclave needs to
implement clone in order to be copied from the trusted memory to the
untrusted memory.
  • Loading branch information
nick-mobilecoin committed Sep 8, 2023
1 parent 7bdc5ab commit b861264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcap/types/src/tcb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const PCE_SVN_OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.840.1137
const FMSPC_OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.840.113741.1.13.1.4");

/// Error parsing TCB info from PCK leaf certificate
#[derive(Debug, PartialEq, displaydoc::Display)]
#[derive(Debug, PartialEq, displaydoc::Display, Clone)]
pub enum Error {
/// Missing the SGX OID extension: {0}
MissingSgxExtension(String),
Expand Down

0 comments on commit b861264

Please sign in to comment.