ServerBump.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
23 namespace Ssl
24 {
25 
30 {
32 
33 public:
34  explicit ServerBump(HttpRequest *fakeRequest, StoreEntry *e = NULL, Ssl::BumpMode mode = Ssl::bumpServerFirst);
35  ~ServerBump();
37  const Security::CertErrors *sslErrors() const;
38 
40  bool connectedOk() const {return entry && entry->isEmpty();}
41 
45  Security::CertPointer serverCert;
48  struct {
52  } act;
54 
55 private:
58 };
59 
60 } // namespace Ssl
61 
62 #endif
63 
void attachServerSession(const Security::SessionPointer &)
Sets the server TLS session object.
Definition: ServerBump.cc:56
Ssl::BumpMode step1
The SSL bump mode at step1.
Definition: ServerBump.h:49
ServerBump(HttpRequest *fakeRequest, StoreEntry *e=NULL, Ssl::BumpMode mode=Ssl::bumpServerFirst)
Definition: ServerBump.cc:23
Ssl::BumpMode step2
The SSL bump mode at step2.
Definition: ServerBump.h:50
Ssl::BumpMode step3
The SSL bump mode at step3.
Definition: ServerBump.h:51
BumpStep
Definition: support.h:127
Security::CertPointer serverCert
Definition: ServerBump.h:47
Security::SessionPointer serverSession
The TLS session object on server side.
Definition: ServerBump.h:56
CBDATA_CLASS(ServerBump)
store_client * sc
dummy client to prevent entry trimming
Definition: ServerBump.h:57
struct Ssl::ServerBump::@127 act
bumping actions at various bumping steps
bool connectedOk() const
whether there was a successful connection to (and peeking at) the origin server
Definition: ServerBump.h:40
const Security::CertErrors * sslErrors() const
SSL [certificate validation] errors.
Definition: ServerBump.cc:65
HttpRequest::Pointer request
faked, minimal request; required by Client API
Definition: ServerBump.h:43
BumpMode
Definition: support.h:125
Ssl::BumpStep step
The SSL bumping step.
Definition: ServerBump.h:53
virtual bool isEmpty() const
Definition: Store.h:60
StoreEntry * entry
Definition: ServerBump.h:44
#define NULL
Definition: types.h:166
std::shared_ptr< SSL > SessionPointer
Definition: Session.h:41

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors