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