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

Commit

Permalink
fix(rtc_types::enclave_messages): work around cbindgen generic type h…
Browse files Browse the repository at this point in the history
  • Loading branch information
PiDelport committed Jun 15, 2021
1 parent 25b471e commit 576cf49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion rtc_types/src/enclave_messages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,15 @@ pub struct EncryptedEnclaveMessage<const MESSAGE_SIZE: usize, const AAD_SIZE: us
pub nonce: RecommendedAesGcmIv,
}

pub mod ffi_set_access_key;
/// XXX: Ignore this module to work around cbindgen generic type handling
///
/// Issues:
///
/// * <https://github.com/eqrion/cbindgen/issues/7>
/// * <https://github.com/eqrion/cbindgen/issues/286>
/// * <https://github.com/eqrion/cbindgen/issues/573>
///
/// cbindgen:ignore
pub mod set_access_key;

pub mod ffi_set_access_key;
2 changes: 1 addition & 1 deletion rtc_types/src/enclave_messages/set_access_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use core::mem;

use rkyv::{Archive, Deserialize, Serialize};

use crate::enclave_messages::EncryptedEnclaveMessage;
use crate::enclave_messages::{EncryptedEnclaveMessage, ARCHIVED_ENCLAVE_ID_SIZE};

#[derive(Archive, Deserialize, Serialize, Debug, PartialEq, Clone)]
pub struct Request {
Expand Down

0 comments on commit 576cf49

Please sign in to comment.