ErrorDetail.h
Go to the documentation of this file.
48 ErrorDetail(ErrorCode err_no, const CertPointer &peer, const CertPointer &broken, const char *aReason = nullptr);
interface for supplying additional information about a transaction failure
Definition: Detail.h:21
Definition: ErrorDetail.h:40
MEMPROXY_CLASS(Security::ErrorDetail)
void printErrorCode(std::ostream &os) const
textual representation of error_no
Definition: ErrorDetail.cc:690
SBuf verbose(const HttpRequestPointer &) const override
Definition: ErrorDetail.cc:534
void printCommonName(std::ostream &os) const
a list of the broken certificates CN and alternate names
Definition: ErrorDetail.cc:623
LibErrorCode lib_error_no
TLS library-reported non-validation error or zero;.
Definition: ErrorDetail.h:105
ErrorDetail(ErrorCode err_no, const CertPointer &peer, const CertPointer &broken, const char *aReason=nullptr)
Definition: ErrorDetail.cc:466
CertPointer broken_cert
A pointer to the broken certificate (peer or intermediate)
Definition: ErrorDetail.h:99
void printSubject(std::ostream &os) const
textual representation of the subject of the broken certificate
Definition: ErrorDetail.cc:561
size_t convertErrorCodeToDescription(const char *code, std::ostream &os) const
Definition: ErrorDetail.cc:752
void printErrorLibError(std::ostream &os) const
textual representation of lib_error_no
Definition: ErrorDetail.cc:723
void printErrorDescription(std::ostream &os) const
short description of error_no
Definition: ErrorDetail.cc:704
void setPeerCertificate(const CertPointer &)
Definition: ErrorDetail.cc:490
std::optional< ErrorDetailEntry > detailEntry
Definition: ErrorDetail.h:118
void printNotBefore(std::ostream &os) const
textual representation of the "not before" field of the broken certificate
Definition: ErrorDetail.cc:654
Certificate * brokenCert()
peer or intermediate certificate that failed validation (or nil)
Definition: ErrorDetail.h:78
void printCaName(std::ostream &os) const
the issuer of the broken certificate
Definition: ErrorDetail.cc:638
void printNotAfter(std::ostream &os) const
textual representation of the "not after" field of the broken certificate
Definition: ErrorDetail.cc:672
Definition: ErrorDetailManager.h:27
Definition: SquidString.h:26
int ErrorCode
Squid-defined error code (<0), an error code returned by X.509 API, or zero.
Definition: forward.h:132
const char * ErrorNameFromCode(ErrorCode err, bool prefixRawCode=false)
Definition: ErrorDetail.cc:430
ErrorCode ErrorCodeFromName(const char *name)
Definition: ErrorDetail.cc:410
std::ostream & operator<<(std::ostream &, const EncryptorAnswer &)
Definition: EncryptorAnswer.cc:20