CRL Data Model for toy-pki
pub struct RevokedEntry {
pub serial_hex: String,
pub revocation_time: OffsetDateTime,
pub reason: RevocationReason,
}
pub struct CrlStore {
pub issuer_path: PathBuf,
pub crl_number: u64,
pub revoked: Vec<RevokedEntry>,
}
pub enum RevocationReason {
Unspecified,
KeyCompromise,
CaCompromise,
AffiliationChanged,
Superseded,
CessationOfOperation,
}