core_crypto/e2e_identity/
mod.rs

1mod crypto;
2pub(crate) mod device_status;
3mod error;
4pub(crate) mod id;
5pub(crate) mod identity;
6mod pki_env;
7pub use pki_env::NewCrlDistributionPoints;
8pub(crate) use pki_env::restore_pki_env;
9#[cfg(not(test))]
10mod enrollment;
11#[cfg(test)]
12pub(crate) mod enrollment;
13pub mod types;
14
15pub use enrollment::E2eiEnrollment;
16pub use error::{Error, Result};
17
18type Json = Vec<u8>;
19
20#[derive(Debug, Clone, Copy, PartialEq, Eq)]
21/// Supporting struct for CRL registration result
22pub struct CrlRegistration {
23    /// Whether this CRL modifies the old CRL (i.e. has a different revocated cert list)
24    pub dirty: bool,
25    /// Optional expiration timestamp
26    pub expiration: Option<u64>,
27}
28
29/// A unique identifier for an enrollment a consumer can use to fetch it from the keystore when he
30/// wants to resume the process
31pub(crate) type EnrollmentHandle = Vec<u8>;