]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ssl/ServerBump.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 #ifndef _SQUID_SSL_PEEKER_H
10 #define _SQUID_SSL_PEEKER_H
12 #include "base/AsyncJob.h"
13 #include "base/CbcPointer.h"
14 #include "comm/forward.h"
15 #include "HttpRequest.h"
16 #include "ip/Address.h"
25 \ingroup ServerProtocolSSLAPI
26 * Maintains bump-server-first related information.
31 explicit ServerBump(HttpRequest
*fakeRequest
, StoreEntry
*e
= NULL
, Ssl::BumpMode mode
= Ssl::bumpServerFirst
);
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
44 store_client
*sc
; ///< dummy client to prevent entry trimming
46 CBDATA_CLASS2(ServerBump
);