Enum rustls::WebPkiError [−][src]
#[non_exhaustive] pub enum WebPkiError {}Show variants
BadEncoding, BadTimeEncoding, CaUsedAsEndEntity, CertExpired, CertNotValidForName, CertNotValidYet, EndEntityUsedAsCa, ExtensionValueInvalid, InvalidCertValidity, InvalidSignatureForPublicKey, NameConstraintViolation, PathLenConstraintViolation, SignatureAlgorithmMismatch, RequiredEkuNotFound, UnknownIssuer, UnsupportedCertVersion, MissingOrMalformedExtension, UnsupportedCriticalExtension, UnsupportedSignatureAlgorithmForPublicKey, UnsupportedSignatureAlgorithm,
Expand description
Reasons for a WebPKI operation to fail, used in Error
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Encountered an illegal encoding.
Encountered an illegal encoding of a time field.
A CA certificate was used as an end-entity.
A certificate was expired, ie the verification time was after the notAfter instant.
A certificate was not issued for the given name.
A certificate was not yet valid, ie the verification time was before the notBefore instant.
An end-entity certificate was used as a CA
An X.509 extension had an invalid value
An X.509 certificate had an illegal validity period; for example notBefore was after notAfter
The given signature is invalid.
A certificate violated name constraits required by its issuing path.
A certificate violated path length constraits required by its issuing path.
A certificate contained inconsistent signature algorithms.
A certificate did not contain the the required extended key usage bits.
It wasn’t possible to construct a path from the given end-entity certificate to one of the trusted issuers.
An X.509 certificate was encountered that had an illegal version, or a version other than 3.
An X.509 extension was encountered that had a missing or malformed extensions.
An X.509 unrecognized extension was encountered with the critical bit set.
The given certified public key cannot verify signatures of this type.
The given signature algorithm is not supported.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WebPkiError
impl Send for WebPkiError
impl Sync for WebPkiError
impl Unpin for WebPkiError
impl UnwindSafe for WebPkiError
Blanket Implementations
Mutably borrows from an owned value. Read more