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.
ValidationError(uint32_t code, const std::string &info="")
ValidationError is implicitly constructible from an integer error code and an optional info string.
friend std::ostream & operator<<(std::ostream &os, const ValidationError &err)
const std::string & getInfo() const
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)