Enum CertRevocationListError
#[non_exhaustive]pub enum CertRevocationListError {
Show 14 variants
BadSignature,
UnsupportedSignatureAlgorithm,
UnsupportedSignatureAlgorithmContext {
signature_algorithm_id: Vec<u8>,
supported_algorithms: Vec<AlgorithmIdentifier>,
},
UnsupportedSignatureAlgorithmForPublicKeyContext {
signature_algorithm_id: Vec<u8>,
public_key_algorithm_id: Vec<u8>,
},
InvalidCrlNumber,
InvalidRevokedCertSerialNumber,
IssuerInvalidForCrl,
Other(OtherError),
ParseError,
UnsupportedCrlVersion,
UnsupportedCriticalExtension,
UnsupportedDeltaCrl,
UnsupportedIndirectCrl,
UnsupportedRevocationReason,
}tls only.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 signature from its issuer.
UnsupportedSignatureAlgorithm
UnsupportedSignatureAlgorithmContext insteadThe CRL had an unsupported signature from its issuer.
UnsupportedSignatureAlgorithmContext
A signature inside a certificate or on a handshake was made with an unsupported algorithm.
Fields
supported_algorithms: Vec<AlgorithmIdentifier>Supported algorithms that were available for signature verification.
UnsupportedSignatureAlgorithmForPublicKeyContext
A signature was made with an algorithm that doesn’t match the relevant public key.
Fields
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§
§impl Clone for CertRevocationListError
impl Clone for CertRevocationListError
§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 more§impl Debug for CertRevocationListError
impl Debug for CertRevocationListError
§impl From<CertRevocationListError> for Error
impl From<CertRevocationListError> for Error
§fn from(e: CertRevocationListError) -> Error
fn from(e: CertRevocationListError) -> Error
§impl From<CertRevocationListError> for VerifierBuilderError
impl From<CertRevocationListError> for VerifierBuilderError
§fn from(value: CertRevocationListError) -> VerifierBuilderError
fn from(value: CertRevocationListError) -> VerifierBuilderError
§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more