ServerBump.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef _SQUID_SSL_PEEKER_H
10 #define _SQUID_SSL_PEEKER_H
11 
12 #include "base/AsyncJob.h"
13 #include "base/CbcPointer.h"
14 #include "comm/forward.h"
15 #include "HttpRequest.h"
16 #include "ip/Address.h"
17 #include "security/forward.h"
18 #include "Store.h"
19 
20 class ConnStateData;
21 class store_client;
22 class ClientHttpRequest;
23 
24 namespace Ssl
25 {
26 
31 {
33 
34 public:
35  explicit ServerBump(ClientHttpRequest *http, StoreEntry *e = nullptr, Ssl::BumpMode mode = Ssl::bumpServerFirst);
36  ~ServerBump();
38  const Security::CertErrors *sslErrors() const;
39 
41  bool connectedOk() const {return entry && entry->isEmpty();}
42 
49  struct {
53  } act;
55 
56 private:
59 };
60 
61 } // namespace Ssl
62 
63 #endif
64 
const Security::CertErrors * sslErrors() const
SSL [certificate validation] errors.
Definition: ServerBump.cc:69
void attachServerSession(const Security::SessionPointer &)
Sets the server TLS session object.
Definition: ServerBump.cc:60
struct Ssl::ServerBump::@126 act
bumping actions at various bumping steps
Ssl::BumpMode step1
The SSL bump mode at step1.
Definition: ServerBump.h:50
Ssl::BumpMode step2
The SSL bump mode at step2.
Definition: ServerBump.h:51
Ssl::BumpMode step3
The SSL bump mode at step3.
Definition: ServerBump.h:52
BumpStep
Definition: support.h:137
Security::CertPointer serverCert
Definition: ServerBump.h:48
Security::SessionPointer serverSession
The TLS session object on server side.
Definition: ServerBump.h:57
CBDATA_CLASS(ServerBump)
ServerBump(ClientHttpRequest *http, StoreEntry *e=nullptr, Ssl::BumpMode mode=Ssl::bumpServerFirst)
Definition: ServerBump.cc:23
bool connectedOk() const
whether there was a successful connection to (and peeking at) the origin server
Definition: ServerBump.h:41
bool isEmpty() const
Definition: Store.h:60
store_client * sc
dummy client to prevent entry trimming
Definition: ServerBump.h:58
Definition: Xaction.cc:47
HttpRequest::Pointer request
faked, minimal request; required by Client API
Definition: ServerBump.h:44
BumpMode
Definition: support.h:135
Ssl::BumpStep step
The SSL bumping step.
Definition: ServerBump.h:54
StoreEntry * entry
Definition: ServerBump.h:45
std::shared_ptr< SSL > SessionPointer
Definition: Session.h:44

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors