stub_libsecurity.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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/KeyData.h"
35 namespace Security
36 {
37 void KeyData::loadFromFiles(const AnyP::PortCfg &, const char *) STUB
38 }
39 
40 #include "security/NegotiationHistory.h"
42 void Security::NegotiationHistory::retrieveNegotiatedInfo(const Security::SessionPointer &) STUB
43 void Security::NegotiationHistory::retrieveParsedInfo(Security::TlsDetails::Pointer const &) STUB
44 const char *Security::NegotiationHistory::cipherName() const STUB
45 const char *Security::NegotiationHistory::printTlsVersion(AnyP::ProtocolVersion const &v) const STUB
46 
47 #include "security/PeerConnector.h"
48 CBDATA_NAMESPACED_CLASS_INIT(Security, PeerConnector);
49 namespace Security
50 {
52  AsyncJob("Security::PeerConnector") {STUB}
53 PeerConnector::~PeerConnector() {STUB}
54 void PeerConnector::start() STUB
55 bool PeerConnector::doneAll() const STUB_RETVAL(true)
56 void PeerConnector::swanSong() STUB
57 const char *PeerConnector::status() const STUB_RETVAL("")
58 void PeerConnector::commCloseHandler(const CommCloseCbParams &) STUB
59 void PeerConnector::connectionClosed(const char *) STUB
60 bool PeerConnector::prepareSocket() STUB_RETVAL(false)
61 void PeerConnector::setReadTimeout() STUB
62 bool PeerConnector::initialize(Security::SessionPointer &) STUB_RETVAL(false)
63 void PeerConnector::negotiate() STUB
64 bool PeerConnector::sslFinalized() STUB_RETVAL(false)
65 void PeerConnector::handleNegotiateError(const int) STUB
66 void PeerConnector::noteWantRead() STUB
67 void PeerConnector::noteWantWrite() STUB
68 void PeerConnector::noteNegotiationError(const int, const int, const int) STUB
69 // virtual Security::ContextPointer getTlsContext() = 0;
70 void PeerConnector::bail(ErrorState *) STUB
71 void PeerConnector::callBack() STUB
72 void PeerConnector::recordNegotiationDetails() STUB
73 }
74 
75 #include "security/PeerOptions.h"
78 #if USE_OPENSSL
79  parsedOptions = 0;
80 #endif
81  STUB_NOP
82 }
83 void Security::PeerOptions::parse(char const*) STUB
84 Security::ContextPointer Security::PeerOptions::createClientContext(bool) STUB_RETVAL(Security::ContextPointer())
85 void Security::PeerOptions::updateTlsVersionLimits() STUB
86 Security::ContextPointer Security::PeerOptions::createBlankContext() const STUB_RETVAL(Security::ContextPointer())
87 void Security::PeerOptions::updateContextCa(Security::ContextPointer &) STUB
88 void Security::PeerOptions::updateContextCrl(Security::ContextPointer &) STUB
89 void Security::PeerOptions::updateSessionOptions(Security::SessionPointer &) STUB
90 void Security::PeerOptions::dumpCfg(Packable*, char const*) const STUB
91 void Security::PeerOptions::parseOptions() STUB
92 void parse_securePeerOptions(Security::PeerOptions *) STUB
93 
94 #include "security/ServerOptions.h"
95 //Security::ServerOptions::ServerOptions(const Security::ServerOptions &) STUB
97 void Security::ServerOptions::parse(const char *) STUB
98 void Security::ServerOptions::dumpCfg(Packable *, const char *) const STUB
99 Security::ContextPointer Security::ServerOptions::createBlankContext() const STUB_RETVAL(Security::ContextPointer())
100 void Security::ServerOptions::initServerContexts(AnyP::PortCfg&) STUB
101 bool Security::ServerOptions::createStaticServerContext(AnyP::PortCfg &) STUB_RETVAL(false)
102 void Security::ServerOptions::createSigningContexts(const AnyP::PortCfg &) STUB
103 bool Security::ServerOptions::updateContextConfig(Security::ContextPointer &) STUB_RETVAL(false)
104 void Security::ServerOptions::updateContextEecdh(Security::ContextPointer &) STUB
105 void Security::ServerOptions::updateContextClientCa(Security::ContextPointer &) STUB
106 void Security::ServerOptions::syncCaFiles() STUB
107 void Security::ServerOptions::updateContextSessionId(Security::ContextPointer &) STUB
108 
109 #include "security/Session.h"
110 namespace Security {
112 bool CreateServerSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, const char *) STUB_RETVAL(false)
113 void SessionSendGoodbye(const Security::SessionPointer &) STUB
114 bool SessionIsResumed(const Security::SessionPointer &) STUB_RETVAL(false)
115 void MaybeGetSessionResumeData(const Security::SessionPointer &, Security::SessionStatePointer &) STUB
116 void SetSessionResumeData(const Security::SessionPointer &, const Security::SessionStatePointer &) STUB
117 #if USE_OPENSSL
119 Security::SessionPointer NewSessionObject(const Security::ContextPointer &) STUB_RETVAL(nullptr)
120 #endif
121 } // namespace Security
122 
#define CBDATA_NAMESPACED_CLASS_INIT(namespace, type)
Definition: cbdata.h:326
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:86
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:82
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
void loadFromFiles(const AnyP::PortCfg &, const char *portType)
load the contents of certFile and privateKeyFile into memory cert, pkey and chain ...
Definition: KeyData.cc:191
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
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:25
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
#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