22 #ifndef NDN_CXX_SECURITY_VALIDATION_ERROR_HPP
23 #define NDN_CXX_SECURITY_VALIDATION_ERROR_HPP
75 : m_code(static_cast<
Code>(code))
94 print(std::ostream& os)
const;
Validation error code and optional detailed error message.
const std::string & getInfo() const
friend std::ostream & operator<<(std::ostream &os, const ValidationError &err)
ValidationError(uint32_t code, const std::string &info="")
ValidationError is implicitly constructible from an integer error code and an optional info string.
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.
Common includes and macros used throughout the library.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)