blob: 688b4e28fd6b10a203de484e7c5e1568959e5c56 [file] [log] [blame]
#include <openssl/base.h>
#include <openssl/pki/verify_error.h>
BSSL_NAMESPACE_BEGIN
VerifyError::VerifyError(StatusCode code, ptrdiff_t offset,
std::string diagnostic)
: offset_(offset), code_(code), diagnostic_(std::move(diagnostic)) {}
const std::string &VerifyError::DiagnosticString() const { return diagnostic_; }
ptrdiff_t VerifyError::Index() const { return offset_; }
VerifyError::StatusCode VerifyError::Code() const { return code_; }
BSSL_NAMESPACE_END