9#ifndef SQUID_SRC_SSL_CERT_VALIDATE_MESSAGE_H
10#define SQUID_SRC_SSL_CERT_VALIDATE_MESSAGE_H
106 X509 *
getCertByName(std::vector<CertItem>
const &, std::string
const & name);
#define RefCountable
The locking interface for use on Reference-Counted classes.
std::string name
The certificate Id to use.
void setCert(X509 *)
Sets cert to the given certificate.
Security::CertPointer cert
A pointer to certificate.
static const std::string param_domain
Parameter name for passing intended domain name.
static const std::string param_proto_version
Parameter name for SSL version.
static const std::string param_error_name
Parameter name for passing the major SSL error.
static const std::string param_error_depth
Parameter name for passing the error depth.
static const std::string param_error_cert
Parameter name for passing the error cert ID.
void composeRequest(CertValidationRequest const &vcert)
static const std::string param_cipher
Parameter name for SSL cipher.
static const std::string param_cert
Parameter name for passing SSL certificates.
CertValidationMsg(MessageKind kind)
bool parseResponse(CertValidationResponse &resp)
Parse a response message and fill the resp object with parsed information.
X509 * getCertByName(std::vector< CertItem > const &, std::string const &name)
Search a CertItems list for the certificate with ID "name".
static const std::string param_error_reason
Parameter name for passing the error reason.
static const std::string code_cert_validate
String code for "cert_validate" messages.
void tryParsingResponse(CertValidationResponse &)
Security::SessionPointer ssl
Security::CertErrors * errors
The list of errors detected.
std::string domainName
The server name.
Security::ErrorCode error_no
The OpenSSL error code.
Security::CertPointer cert
The broken certificate.
std::string error_reason
A string describing the error.
int error_depth
The error depth.
void setCert(X509 *)
Sets cert to the given certificate.
static uint64_t MemoryUsedByResponse(const CertValidationResponse::Pointer &)
RefCount< CertValidationResponse > Pointer
Security::SessionPointer ssl
RecvdError & getError(int errorId)
std::vector< RecvdError > RecvdErrors
RecvdErrors errors
The list of parsed errors.
CertValidationResponse(const Security::SessionPointer &aSession)
Helper::ResultCode resultCode
The helper result code.
ResultCode
enumeration value for the helper response 'result' field.
int ErrorCode
Squid-defined error code (<0), an error code returned by X.509 API, or zero.
std::shared_ptr< SSL > SessionPointer