1 #include <openssl/base.h> 2 #include <openssl/pki/verify_error.h> 3 4 namespace bssl { 5 VerifyError(StatusCode code,ptrdiff_t offset,std::string diagnostic)6VerifyError::VerifyError(StatusCode code, ptrdiff_t offset, 7 std::string diagnostic) 8 : offset_(offset), code_(code), diagnostic_(std::move(diagnostic)) {} 9 DiagnosticString() const10const std::string &VerifyError::DiagnosticString() const { return diagnostic_; } 11 Index() const12ptrdiff_t VerifyError::Index() const { return offset_; } 13 Code() const14VerifyError::StatusCode VerifyError::Code() const { return code_; } 15 16 } // namespacee bssl 17