stub_libsecurity.cc
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 #include "squid.h"
10 #include "AccessLogEntry.h"
11 #include "comm/Connection.h"
12 #include "HttpRequest.h"
13 
14 #define STUB_API "security/libsecurity.la"
15 #include "tests/STUB.h"
16 
18 CBDATA_NAMESPACED_CLASS_INIT(Security, BlindPeerConnector);
19 namespace Security
20 {
22 Security::ContextPointer BlindPeerConnector::getTlsContext() STUB_RETVAL(Security::ContextPointer())
23 void BlindPeerConnector::noteNegotiationDone(ErrorState *) STUB
24 }
25 
26 #include "security/EncryptorAnswer.h"
28 std::ostream &Security::operator <<(std::ostream &os, const Security::EncryptorAnswer &) STUB_RETVAL(os)
29 
30 #include "security/Handshake.h"
32 bool Security::HandshakeParser::parseHello(const SBuf &) STUB_RETVAL(false)
33 
34 #include "security/NegotiationHistory.h"
36 void Security::NegotiationHistory::retrieveNegotiatedInfo(const Security::SessionPointer &) STUB
37 void Security::NegotiationHistory::retrieveParsedInfo(Security::TlsDetails::Pointer const &) STUB
38 const char *Security::NegotiationHistory::cipherName() const STUB
39 const char *Security::NegotiationHistory::printTlsVersion(AnyP::ProtocolVersion const &v) const STUB
40 
41 #include "security/PeerConnector.h"
42 CBDATA_NAMESPACED_CLASS_INIT(Security, PeerConnector);
43 namespace Security
44 {
46  AsyncJob("Security::PeerConnector") {STUB}
47 PeerConnector::~PeerConnector() {STUB}
48 void PeerConnector::start() STUB
49 bool PeerConnector::doneAll() const STUB_RETVAL(true)
50 void PeerConnector::swanSong() STUB
51 const char *PeerConnector::status() const STUB_RETVAL("")
52 void PeerConnector::commCloseHandler(const CommCloseCbParams &) STUB
53 void PeerConnector::connectionClosed(const char *) STUB
54 bool PeerConnector::prepareSocket() STUB_RETVAL(false)
55 void PeerConnector::setReadTimeout() STUB
56 bool PeerConnector::initialize(Security::SessionPointer &) STUB_RETVAL(false)
57 void PeerConnector::negotiate() STUB
58 bool PeerConnector::sslFinalized() STUB_RETVAL(false)
59 void PeerConnector::handleNegotiateError(const int) STUB
60 void PeerConnector::noteWantRead() STUB
61 void PeerConnector::noteWantWrite() STUB
62 void PeerConnector::noteNegotiationError(const int, const int, const int) STUB
63 // virtual Security::ContextPointer getTlsContext() = 0;
64 void PeerConnector::bail(ErrorState *) STUB
65 void PeerConnector::callBack() STUB
66 void PeerConnector::recordNegotiationDetails() STUB
67 }
68 
69 #include "security/PeerOptions.h"
72 #if USE_OPENSSL
73  parsedOptions = 0;
74 #endif
75  STUB_NOP
76 }
77 void Security::PeerOptions::parse(char const*) STUB
78 Security::ContextPointer Security::PeerOptions::createClientContext(bool) STUB_RETVAL(Security::ContextPointer())
79 void Security::PeerOptions::updateTlsVersionLimits() STUB
80 Security::ContextPointer Security::PeerOptions::createBlankContext() const STUB_RETVAL(Security::ContextPointer())
81 void Security::PeerOptions::updateContextCa(Security::ContextPointer &) STUB
82 void Security::PeerOptions::updateContextCrl(Security::ContextPointer &) STUB
83 void Security::PeerOptions::updateSessionOptions(Security::SessionPointer &) STUB
84 void Security::PeerOptions::dumpCfg(Packable*, char const*) const STUB
85 void Security::PeerOptions::parseOptions() STUB
86 void parse_securePeerOptions(Security::PeerOptions *) STUB
87 
88 #include "security/ServerOptions.h"
89 //Security::ServerOptions::ServerOptions(const Security::ServerOptions &) STUB
91 void Security::ServerOptions::parse(const char *) STUB
92 void Security::ServerOptions::dumpCfg(Packable *, const char *) const STUB
93 Security::ContextPointer Security::ServerOptions::createBlankContext() const STUB_RETVAL(Security::ContextPointer())
94 bool Security::ServerOptions::createStaticServerContext(AnyP::PortCfg &) STUB_RETVAL(false)
95 void Security::ServerOptions::createSigningContexts(AnyP::PortCfg &) STUB
96 bool Security::ServerOptions::updateContextConfig(Security::ContextPointer &) STUB_RETVAL(false)
97 void Security::ServerOptions::updateContextEecdh(Security::ContextPointer &) STUB
98 void Security::ServerOptions::updateContextClientCa(Security::ContextPointer &) STUB
99 void Security::ServerOptions::syncCaFiles() STUB
100 void Security::ServerOptions::updateContextSessionId(Security::ContextPointer &) STUB
101 
102 #include "security/Session.h"
103 namespace Security {
105 bool CreateServerSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, const char *) STUB_RETVAL(false)
106 void SessionSendGoodbye(const Security::SessionPointer &) STUB
107 bool SessionIsResumed(const Security::SessionPointer &) STUB_RETVAL(false)
108 void MaybeGetSessionResumeData(const Security::SessionPointer &, Security::SessionStatePointer &) STUB
109 void SetSessionResumeData(const Security::SessionPointer &, const Security::SessionStatePointer &) STUB
110 #if USE_OPENSSL
112 Security::SessionPointer NewSessionObject(const Security::ContextPointer &) STUB_RETVAL(nullptr)
113 #endif
114 } // namespace Security
115 
AnyP::ProtocolVersion ProtocolVersion()
Protocol version to use in Http::Message structures wrapping FTP messages.
Definition: Elements.cc:24
~EncryptorAnswer()
deletes error if it is still set
Definition: SBuf.h:87
PeerConnector(const Comm::ConnectionPointer &aServerConn, AsyncCall::Pointer &aCallback, const AccessLogEntryPointer &alp, const time_t timeout=0)
Security::ParsedOptions parsedOptions
parsed value of sslOptions
Definition: PeerOptions.h:81
std::unique_ptr< SSL_SESSION, HardFun< void, SSL_SESSION *,&SSL_SESSION_free > > SessionStatePointer
Definition: Session.h:43
static struct node * parse(FILE *fp)
Definition: parse.c:995
void SessionSendGoodbye(const Security::SessionPointer &)
send the shutdown/bye notice for an active TLS session.
Definition: Session.cc:197
bool SessionIsResumed(const Security::SessionPointer &)
whether the session is a resumed one
Definition: Session.cc:210
TLS squid.conf settings for a remote server peer.
Definition: PeerOptions.h:22
ServerOptions & operator=(const ServerOptions &)
bool CreateServerSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, const char *squidCtx)
Definition: Session.cc:191
#define STUB_RETVAL(x)
Definition: STUB.h:41
#define true
Definition: GnuRegex.c:234
bool CreateClientSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, const char *squidCtx)
Definition: Session.cc:185
PeerOptions ProxyOutgoingConfig
configuration options for DIRECT server access
Definition: PeerOptions.cc:22
#define STUB
macro to stub a void function.
Definition: STUB.h:33
std::shared_ptr< SSL_CTX > ContextPointer
Definition: Context.h:28
virtual bool initialize(Security::SessionPointer &)
virtual void parse(const char *)
parse a TLS squid.conf option
Definition: PeerOptions.cc:31
void SetSessionResumeData(const Security::SessionPointer &, const Security::SessionStatePointer &)
Definition: Session.cc:244
TLS squid.conf settings for a listening port.
Definition: ServerOptions.h:19
void MaybeGetSessionResumeData(const Security::SessionPointer &, Security::SessionStatePointer &data)
Definition: Session.cc:223
#define STUB_NOP
Definition: STUB.h:37
std::ostream & operator<<(std::ostream &, const Security::EncryptorAnswer &)
Security::SessionPointer NewSessionObject(const Security::ContextPointer &)
Definition: Session.cc:97
void parse_securePeerOptions(Security::PeerOptions *opt)
Definition: PeerOptions.cc:735
CBDATA_NAMESPACED_CLASS_INIT(Security, BlindPeerConnector)
#define false
Definition: GnuRegex.c:233
void SetSessionCacheCallbacks(Security::ContextPointer &)
Setup the given TLS context with callbacks used to manage the session cache.
Definition: Session.cc:378
std::shared_ptr< SSL > SessionPointer
Definition: Session.h:41

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors