Enum certitude::ValidationResult
[−]
[src]
pub enum ValidationResult { Trusted, NotTrusted, MalformedCertificateInChain, UnableToBuildTrustStore, ErrorDuringValidation, MissingFunctionality, UserAuthenticationRequired, MalformedHostname, }
Possible results from attempting to validate a certificate chain.
When attempting to validate a certificate chain, in addition to the two "successful"
results (ValidationResult::Trusted
and ValidationResult::NotTrusted
), there are
numerous possible error conditions. This enum allows for expressing those error
conditions.
Note that due to the vagaries of the system libraries, it is possible that a
misleading error may be generated: for example, the hostname may be malformed
but in a manner that does not immediate generate a ValidationResult::MalformedHostname
result. That's unfortunate, but there is relatively little that can be done about that
in the absence of clearer system APIs.
Variants
Trusted
NotTrusted
MalformedCertificateInChain
UnableToBuildTrustStore
ErrorDuringValidation
MissingFunctionality
UserAuthenticationRequired
MalformedHostname
Trait Implementations
impl PartialEq for ValidationResult
[src]
fn eq(&self, __arg_0: &ValidationResult) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.