#[non_exhaustive]pub enum CertRevocationListError {
BadSignature,
InvalidCrlNumber,
InvalidRevokedCertSerialNumber,
IssuerInvalidForCrl,
Other(OtherError),
ParseError,
UnsupportedCrlVersion,
UnsupportedCriticalExtension,
UnsupportedDeltaCrl,
UnsupportedIndirectCrl,
UnsupportedRevocationReason,
}
Expand description
The ways in which a certificate revocation list (CRL) can be invalid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadSignature
The CRL had a bad, or unsupported signature from its issuer.
InvalidCrlNumber
The CRL contained an invalid CRL number.
InvalidRevokedCertSerialNumber
The CRL contained a revoked certificate with an invalid serial number.
IssuerInvalidForCrl
The CRL issuer does not specify the cRLSign key usage.
Other(OtherError)
The CRL is invalid for some other reason.
Enums holding this variant will never compare equal to each other.
ParseError
The CRL is not correctly encoded.
UnsupportedCrlVersion
The CRL is not a v2 X.509 CRL.
UnsupportedCriticalExtension
The CRL, or a revoked certificate in the CRL, contained an unsupported critical extension.
UnsupportedDeltaCrl
The CRL is an unsupported delta CRL, containing only changes relative to another CRL.
UnsupportedIndirectCrl
The CRL is an unsupported indirect CRL, containing revoked certificates issued by a CA other than the issuer of the CRL.
UnsupportedRevocationReason
The CRL contained a revoked certificate with an unsupported revocation reason. See RFC 5280 Section 5.3.11 for a list of supported revocation reasons.
Trait Implementations§
Source§impl Clone for CertRevocationListError
impl Clone for CertRevocationListError
Source§fn clone(&self) -> CertRevocationListError
fn clone(&self) -> CertRevocationListError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CertRevocationListError
impl Debug for CertRevocationListError
Source§impl From<CertRevocationListError> for Error
impl From<CertRevocationListError> for Error
Source§fn from(e: CertRevocationListError) -> Self
fn from(e: CertRevocationListError) -> Self
Source§impl From<CertRevocationListError> for VerifierBuilderError
impl From<CertRevocationListError> for VerifierBuilderError
Source§fn from(value: CertRevocationListError) -> Self
fn from(value: CertRevocationListError) -> Self
Source§impl PartialEq for CertRevocationListError
impl PartialEq for CertRevocationListError
Auto Trait Implementations§
impl Freeze for CertRevocationListError
impl !RefUnwindSafe for CertRevocationListError
impl Send for CertRevocationListError
impl Sync for CertRevocationListError
impl Unpin for CertRevocationListError
impl !UnwindSafe for CertRevocationListError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
BadSignature
: 0 bytesInvalidCrlNumber
: 0 bytesInvalidRevokedCertSerialNumber
: 0 bytesIssuerInvalidForCrl
: 0 bytesOther
: 16 bytesParseError
: 0 bytesUnsupportedCrlVersion
: 0 bytesUnsupportedCriticalExtension
: 0 bytesUnsupportedDeltaCrl
: 0 bytesUnsupportedIndirectCrl
: 0 bytesUnsupportedRevocationReason
: 0 bytes