BlindPeerConnector.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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_SRC_SECURITY_BLINDPEERCONNECTOR_H
10#define SQUID_SRC_SECURITY_BLINDPEERCONNECTOR_H
11
12#include "http/forward.h"
13#include "HttpRequest.h"
15
16class ErrorState;
17
18namespace Security
19{
20
24public:
26 const Comm::ConnectionPointer &aServerConn,
27 const AsyncCallback<EncryptorAnswer> &aCallback,
28 const AccessLogEntryPointer &alp,
29 const time_t timeout = 0) :
30 AsyncJob("Security::BlindPeerConnector"),
31 Security::PeerConnector(aServerConn, aCallback, alp, timeout)
32 {
33 request = aRequest;
34 }
35
36 /* Security::PeerConnector API */
37
42 bool initialize(Security::SessionPointer &) override;
43
46
49 void noteNegotiationDone(ErrorState *) override;
50};
51
52} // namespace Security
53
54#endif /* SQUID_SRC_SECURITY_BLINDPEERCONNECTOR_H */
55
a smart AsyncCall pointer for delivery of future results
A simple PeerConnector for SSL/TLS cache_peers. No SslBump capabilities.
CBDATA_CHILD(BlindPeerConnector)
Security::ContextPointer getTlsContext() override
Return the configured TLS context object.
void noteNegotiationDone(ErrorState *) override
BlindPeerConnector(HttpRequestPointer &aRequest, const Comm::ConnectionPointer &aServerConn, const AsyncCallback< EncryptorAnswer > &aCallback, const AccessLogEntryPointer &alp, const time_t timeout=0)
bool initialize(Security::SessionPointer &) override
HttpRequestPointer request
peer connection trigger or cause
Network/connection security abstraction layer.
Definition: Connection.h:34
std::shared_ptr< SSL_CTX > ContextPointer
Definition: Context.h:29
std::shared_ptr< SSL > SessionPointer
Definition: Session.h:49

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors