#[repr(u32)]pub enum CrlReason {
Unspecified = 0,
KeyCompromise = 1,
CaCompromise = 2,
AffiliationChanged = 3,
Superseded = 4,
CessationOfOperation = 5,
CertificateHold = 6,
RemoveFromCRL = 8,
PrivilegeWithdrawn = 9,
AaCompromise = 10,
}
Expand description
CRLReason as defined in RFC 5280 Section 5.3.1.
CRLReason ::= ENUMERATED {
unspecified (0),
keyCompromise (1),
cACompromise (2),
affiliationChanged (3),
superseded (4),
cessationOfOperation (5),
certificateHold (6),
removeFromCRL (8),
privilegeWithdrawn (9),
aACompromise (10)
}
Variants§
Unspecified = 0
KeyCompromise = 1
CaCompromise = 2
AffiliationChanged = 3
Superseded = 4
CessationOfOperation = 5
CertificateHold = 6
RemoveFromCRL = 8
PrivilegeWithdrawn = 9
AaCompromise = 10
Trait Implementations§
source§impl AsExtension for CrlReason
impl AsExtension for CrlReason
source§impl AssociatedOid for CrlReason
impl AssociatedOid for CrlReason
source§const OID: ObjectIdentifier = ID_CE_CRL_REASONS
const OID: ObjectIdentifier = ID_CE_CRL_REASONS
The OID associated with this type.
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for CrlReason
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for CrlReason
source§impl EncodeValue for CrlReason
impl EncodeValue for CrlReason
source§impl PartialEq for CrlReason
impl PartialEq for CrlReason
impl Copy for CrlReason
impl Eq for CrlReason
impl StructuralEq for CrlReason
impl StructuralPartialEq for CrlReason
Auto Trait Implementations§
impl RefUnwindSafe for CrlReason
impl Send for CrlReason
impl Sync for CrlReason
impl Unpin for CrlReason
impl UnwindSafe for CrlReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.