#[non_exhaustive]pub enum PathError {
Show 16 variants
EmptyPath,
PathInadequate(Vec<KeyHandle>, UserID, usize, usize),
MissingIssuer(KeyHandle),
MissingTarget(KeyHandle),
TargetExpired(KeyHandle, SystemTime, SystemTime),
TargetRevoked(KeyHandle, ReasonForRevocation, Vec<u8>, SystemTime, SystemTime),
TargetUserIDRevoked(KeyHandle, UserID, ReasonForRevocation, Vec<u8>, SystemTime, SystemTime),
RegexMismatch(Certification, UserID),
InsufficientTrustDepth(Certification, Depth),
InsufficientTrustAmount(Certification, usize),
NoCertification(CertSynopsis, CertSynopsis, UserID),
NoDelegation(CertSynopsis, CertSynopsis),
NoAdequateCertification(CertSynopsis, CertSynopsis, UserID, usize),
NoAdequateDelegation(CertSynopsis, CertSynopsis, Depth, usize),
AdequateButNotActive(Certification),
AdequateButNotValid(Certification, Error),
}
Expand description
Network::lint_path
specific error codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyPath
A path consists of at least one node.
PathInadequate(Vec<KeyHandle>, UserID, usize, usize)
There is a path, but the trust amount is insufficient.
MissingIssuer(KeyHandle)
Missing the issuer’s certificate.
MissingTarget(KeyHandle)
Missing the target’s certificate.
TargetExpired(KeyHandle, SystemTime, SystemTime)
The target certificate is expired.
TargetRevoked(KeyHandle, ReasonForRevocation, Vec<u8>, SystemTime, SystemTime)
The target certificate is revoked.
- Target cert, 1. revocation code, 2. revocation reason,
- revocation time, 4. reference time.
TargetUserIDRevoked(KeyHandle, UserID, ReasonForRevocation, Vec<u8>, SystemTime, SystemTime)
The target User ID is revoked.
- Target cert, 1. target user id, 2. revocation code,
- revocation reason, 4. revocation time, 5. reference time.
RegexMismatch(Certification, UserID)
None of this certificate’s regular expressions match the target User ID.
InsufficientTrustDepth(Certification, Depth)
The certification’s target does not have a sufficiently high trust depth to authenticate the rest of the path.
InsufficientTrustAmount(Certification, usize)
The certification does not have a sufficient trust amount.
NoCertification(CertSynopsis, CertSynopsis, UserID)
The certificate did not issue a certification for the specified binding.
NoDelegation(CertSynopsis, CertSynopsis)
The certificate did not delegate to the target.
NoAdequateCertification(CertSynopsis, CertSynopsis, UserID, usize)
None of the active certifications were adequate for authenticating the target.
NoAdequateDelegation(CertSynopsis, CertSynopsis, Depth, usize)
None of the active delegations were adequate for the path suffix.
AdequateButNotActive(Certification)
A certification would be adequate, but it is not active.
AdequateButNotValid(Certification, Error)
A certification would be adequate, but it is not valid.