33 return os <<
"No error";
35 return os <<
"Signature verification failed";
37 return os <<
"Missing or malformed signature";
39 return os <<
"Cannot retrieve certificate";
41 return os <<
"Certificate expired or not yet valid";
43 return os <<
"Loop detected in certification chain";
45 return os <<
"Malformed certificate";
47 return os <<
"Exceeded validation depth limit";
49 return os <<
"Invalid key locator";
51 return os <<
"Policy violation";
53 return os <<
"Internal error";
57 if (code >= ValidationError::Code::USER_MIN) {
66 ValidationError::print(std::ostream& os)
const
69 if (!m_info.empty()) {
70 os <<
" (" << m_info <<
")";
Code
Known error codes that can be returned by the Validator interface.
@ LOOP_DETECTED
Loop detected in the certification chain.
@ MALFORMED_CERT
The certificate is malformed.
@ EXCEEDED_DEPTH_LIMIT
Exceeded validation depth limit.
@ USER_MIN
Third-party validator implementations can use error codes greater than or equal to this value to indi...
@ MALFORMED_SIGNATURE
The signature (e.g., SignatureInfo element) is missing or malformed.
@ IMPLEMENTATION_ERROR
Internal implementation error.
@ INVALID_SIGNATURE
Signature verification failed.
@ CANNOT_RETRIEVE_CERT
The certificate cannot be retrieved.
@ POLICY_ERROR
The packet violates the validation rules enforced by the policy.
@ INVALID_KEY_LOCATOR
The KeyLocator element is missing or has an invalid format.
@ EXPIRED_CERT
The certificate expired or is not yet valid.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)
constexpr std::underlying_type_t< T > to_underlying(T val) noexcept