34 return os <<
"No error";
36 return os <<
"Signature verification failed";
38 return os <<
"Missing or malformed signature";
40 return os <<
"Cannot retrieve certificate";
42 return os <<
"Certificate expired or not yet valid";
44 return os <<
"Loop detected in certification chain";
46 return os <<
"Malformed certificate";
48 return os <<
"Exceeded validation depth limit";
50 return os <<
"Invalid key locator";
52 return os <<
"Policy violation";
54 return os <<
"Internal error";
58 if (code >= ValidationError::Code::USER_MIN) {
67 ValidationError::print(std::ostream& os)
const
70 if (!m_info.empty()) {
71 os <<
" (" << m_info <<
")";
Code
Known error codes that can be returned by the Validator interface.
@ CANNOT_RETRIEVE_CERT
The certificate cannot be retrieved.
@ INVALID_KEY_LOCATOR
The KeyLocator element is missing or has an invalid format.
@ EXCEEDED_DEPTH_LIMIT
Exceeded validation depth limit.
@ MALFORMED_CERT
The certificate is malformed.
@ EXPIRED_CERT
The certificate expired or is not yet valid.
@ POLICY_ERROR
The packet violates the validation rules enforced by the policy.
@ INVALID_SIGNATURE
Signature verification failed.
@ IMPLEMENTATION_ERROR
Internal implementation error.
@ USER_MIN
Third-party validator implementations can use error codes greater than or equal to this value to indi...
@ LOOP_DETECTED
Loop detected in the certification chain.
@ MALFORMED_SIGNATURE
The signature (e.g., SignatureInfo element) is missing or malformed.
Contains the ndn-cxx security framework.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)
constexpr std::underlying_type_t< T > to_underlying(T val) noexcept