#[non_exhaustive]pub enum RejectionReason<'a> {
Show 16 variants
EmptyPath,
DuplicateCertificate {
earlier: usize,
},
AnchorIncluded,
Validity,
Issuer,
NotAuthority,
KeyCertSign,
EmptyAuthorityName,
PathLength {
source: ConstraintSource,
limit: u32,
},
Signature,
UnsupportedSignature,
CriticalExtension(Oid<'a>),
MalformedExtension {
extension: Oid<'a>,
code: ErrorCode,
field: &'static str,
offset: u64,
},
NameConstraintsOnNonAuthority,
NameConstraints {
source: ConstraintSource,
failure: NameConstraintFailure,
},
Policies,
}Expand description
A completed semantic rejection, distinct from inability to execute a check.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyPath
A certification path must contain at least one certificate.
DuplicateCertificate
The same encoded certificate already occurs at the named position.
AnchorIncluded
The trust anchor’s own certificate is not part of a prospective path.
Validity
The certificate does not cover the requested validation interval.
Issuer
The certificate’s issuer name differs from the expected issuer.
NotAuthority
An intermediate does not assert certificate-authority status.
KeyCertSign
An intermediate’s KeyUsage forbids signing certificates.
EmptyAuthorityName
An asserted authority has an empty subject name.
PathLength
The path exceeds an authority’s pathLenConstraint.
Fields
source: ConstraintSourceThe authority whose retained limit was exhausted.
Signature
The provider completed the signature check with a negative answer.
UnsupportedSignature
The provider cannot verify this algorithm/key/parameter combination.
CriticalExtension(Oid<'a>)
A critical extension is not understood.
MalformedExtension
A relevant extension could not be decoded semantically.
Fields
NameConstraintsOnNonAuthority
A name constraint is carried by a certificate that is not a CA.
NameConstraints
A name violates a constraint originating above this certificate.
Fields
source: ConstraintSourceThe authority or anchor that supplied the decisive constraint.
failure: NameConstraintFailureThe completed constraint result.
Policies
The path does not satisfy the requested/required certificate policies.