#include <ServerBump.h>

Collaboration diagram for Ssl::ServerBump:

Public Member Functions

 ServerBump (ClientHttpRequest *http, StoreEntry *e=nullptr, Ssl::BumpMode mode=Ssl::bumpServerFirst)
 
 ~ServerBump ()
 
void attachServerSession (const Security::SessionPointer &)
 Sets the server TLS session object. More...
 
const Security::CertErrorssslErrors () const
 SSL [certificate validation] errors. More...
 
bool connectedOk () const
 whether there was a successful connection to (and peeking at) the origin server More...
 
bool at (const BumpStep stp) const
 whether we are currently performing the given processing step More...
 
bool at (const BumpStep step1, const BumpStep step2) const
 whether we are currently performing one of the given processing steps More...
 

Public Attributes

HttpRequest::Pointer request
 faked, minimal request; required by Client API More...
 
StoreEntryentry
 
Security::CertPointer serverCert
 
struct {
   Ssl::BumpMode   step1
 The SSL bump mode at step1. More...
 
   Ssl::BumpMode   step2
 The SSL bump mode at step2. More...
 
   Ssl::BumpMode   step3
 The SSL bump mode at step3. More...
 
act
 bumping actions at various bumping steps More...
 
Ssl::BumpStep step
 The SSL bumping step. More...
 

Private Member Functions

 CBDATA_CLASS (ServerBump)
 

Private Attributes

Security::SessionPointer serverSession
 The TLS session object on server side. More...
 
store_clientsc
 dummy client to prevent entry trimming More...
 

Detailed Description

Maintains bump-server-first related information.

Definition at line 33 of file ServerBump.h.

Constructor & Destructor Documentation

◆ ServerBump()

◆ ~ServerBump()

Ssl::ServerBump::~ServerBump ( )

Definition at line 49 of file ServerBump.cc.

References debugs, entry, HERE(), sc, storeUnregister(), and StoreEntry::unlock().

Member Function Documentation

◆ at() [1/2]

bool Ssl::ServerBump::at ( const BumpStep  stp) const
inline

◆ at() [2/2]

bool Ssl::ServerBump::at ( const BumpStep  step1,
const BumpStep  step2 
) const
inline

Definition at line 50 of file ServerBump.h.

References at().

Referenced by at().

◆ attachServerSession()

void Ssl::ServerBump::attachServerSession ( const Security::SessionPointer s)

Definition at line 60 of file ServerBump.cc.

References serverSession.

◆ CBDATA_CLASS()

Ssl::ServerBump::CBDATA_CLASS ( ServerBump  )
private

◆ connectedOk()

bool Ssl::ServerBump::connectedOk ( ) const
inline

Definition at line 44 of file ServerBump.h.

References entry, and StoreEntry::isEmpty().

Referenced by ConnStateData::buildSslCertGenerationParams().

◆ sslErrors()

const Security::CertErrors * Ssl::ServerBump::sslErrors ( ) const

Definition at line 69 of file ServerBump.cc.

References NULL, serverSession, and ssl_ex_index_ssl_errors.

Referenced by ConnStateData::buildSslCertGenerationParams().

Member Data Documentation

◆ act

◆ entry

StoreEntry* Ssl::ServerBump::entry

for receiving Squid-generated error messages

Definition at line 54 of file ServerBump.h.

Referenced by connectedOk(), ConnStateData::parseTlsHandshake(), ServerBump(), ConnStateData::startPeekAndSplice(), and ~ServerBump().

◆ request

◆ sc

store_client* Ssl::ServerBump::sc
private

Definition at line 67 of file ServerBump.h.

Referenced by ServerBump(), and ~ServerBump().

◆ serverCert

Security::CertPointer Ssl::ServerBump::serverCert

HTTPS server certificate. Maybe it is different than the one it is stored in serverSession object (error SQUID_X509_V_ERR_CERT_CHANGE)

Definition at line 57 of file ServerBump.h.

Referenced by ConnStateData::buildSslCertGenerationParams(), and ACLServerCertificateStrategy::match().

◆ serverSession

Security::SessionPointer Ssl::ServerBump::serverSession
private

Definition at line 66 of file ServerBump.h.

Referenced by attachServerSession(), and sslErrors().

◆ step

Ssl::BumpStep Ssl::ServerBump::step

Definition at line 63 of file ServerBump.h.

Referenced by at(), and ConnStateData::startPeekAndSplice().

◆ step1

◆ step2

Ssl::BumpMode Ssl::ServerBump::step2

Definition at line 60 of file ServerBump.h.

Referenced by httpsSslBumpStep2AccessCheckDone().

◆ step3

Ssl::BumpMode Ssl::ServerBump::step3

The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors