]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ssl/ServerBump.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / ssl / ServerBump.h
1 /*
2 * Copyright (C) 1996-2014 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
18 class ConnStateData;
19 class store_client;
20
21 namespace Ssl
22 {
23
24 /**
25 \ingroup ServerProtocolSSLAPI
26 * Maintains bump-server-first related information.
27 */
28 class ServerBump
29 {
30 public:
31 explicit ServerBump(HttpRequest *fakeRequest, StoreEntry *e = NULL, Ssl::BumpMode mode = Ssl::bumpServerFirst);
32 ~ServerBump();
33
34 /// faked, minimal request; required by server-side API
35 HttpRequest::Pointer request;
36 StoreEntry *entry; ///< for receiving Squid-generated error messages
37 Ssl::X509_Pointer serverCert; ///< HTTPS server certificate
38 Ssl::CertErrors *sslErrors; ///< SSL [certificate validation] errors
39 Ssl::BumpMode mode; ///< The SSL server bump mode
40 Ssl::BumpStep step; ///< The SSL server bumping step
41 SBuf clientSni; ///< the SSL client SNI name
42
43 private:
44 store_client *sc; ///< dummy client to prevent entry trimming
45
46 CBDATA_CLASS2(ServerBump);
47 };
48
49 } // namespace Ssl
50
51 #endif