stub_libsecurity.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 
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"
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 bool PeerConnector::initialize(Security::SessionPointer &) STUB_RETVAL(false)
62 void PeerConnector::negotiate() STUB
63 bool PeerConnector::sslFinalized() STUB_RETVAL(false)
64 void PeerConnector::handleNegotiateError(const int) STUB
65 void PeerConnector::noteWantRead() STUB
66 void PeerConnector::noteWantWrite() STUB
67 void PeerConnector::noteNegotiationError(const int, const int, const int) STUB
68 // virtual Security::ContextPointer getTlsContext() = 0;
69 void PeerConnector::bail(ErrorState *) STUB
70 void PeerConnector::callBack() STUB
71 void PeerConnector::recordNegotiationDetails() STUB
72 }
73 
74 #include "security/PeerOptions.h"
77 #if USE_OPENSSL
78  parsedOptions = 0;
79 #endif
80  STUB_NOP
81 }
82 void Security::PeerOptions::parse(char const*) STUB
84 void Security::PeerOptions::updateTlsVersionLimits() STUB
85 Security::ContextPointer Security::PeerOptions::createBlankContext() const STUB_RETVAL(Security::ContextPointer())
86 void Security::PeerOptions::updateContextCa(Security::ContextPointer &) STUB
87 void Security::PeerOptions::updateContextCrl(Security::ContextPointer &) STUB
88 void Security::PeerOptions::updateContextTrust(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
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 {
111 bool CreateClientSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, const char *) STUB_RETVAL(false)
112 bool CreateServerSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, Security::PeerOptions &, 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
120 #endif
121 } // namespace Security
122 
AnyP::ProtocolVersion ProtocolVersion()
Protocol version to use in Http::Message structures wrapping FTP messages.
Definition: Elements.cc:24
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:16
~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)
void updateContextCrl(Security::ContextPointer &)
setup the CRL details for the given context
Definition: PeerOptions.cc:696
Security::ParsedOptions parsedOptions
Definition: PeerOptions.h:94
std::unique_ptr< SSL_SESSION, HardFun< void, SSL_SESSION *, &SSL_SESSION_free > > SessionStatePointer
Definition: Session.h:46
bool CreateServerSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, Security::PeerOptions &, const char *squidCtx)
Definition: Session.cc:194
void SessionSendGoodbye(const Security::SessionPointer &)
send the shutdown/bye notice for an active TLS session.
Definition: Session.cc:200
bool SessionIsResumed(const Security::SessionPointer &)
whether the session is a resumed one
Definition: Session.cc:213
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 &)
void updateContextCa(Security::ContextPointer &)
setup the CA details for the given context
Definition: PeerOptions.cc:660
#define STUB_RETVAL(x)
Definition: STUB.h:41
virtual Security::ContextPointer createBlankContext() const
generate an unset security context object
Definition: PeerOptions.cc:239
#define true
Definition: GnuRegex.c:234
bool CreateClientSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, const char *squidCtx)
Definition: Session.cc:184
void updateSessionOptions(Security::SessionPointer &)
setup any library-specific options that can be set for the given session
Definition: PeerOptions.cc:738
PeerOptions ProxyOutgoingConfig
configuration options for DIRECT server access
Definition: PeerOptions.cc:22
void updateContextTrust(Security::ContextPointer &)
decide which CAs to trust
Definition: PeerOptions.cc:721
#define STUB
macro to stub a void function.
Definition: STUB.h:33
Definition: forward.h:14
std::shared_ptr< SSL_CTX > ContextPointer
Definition: Context.h:29
Network/connection security abstraction layer.
Definition: Connection.h:31
Security::ContextPointer createClientContext(bool setOptions)
generate a security client-context from these configured options
Definition: PeerOptions.cc:269
virtual bool initialize(Security::SessionPointer &)
virtual void parse(const char *)
parse a TLS squid.conf option
virtual void parse(const char *)
parse a TLS squid.conf option
Definition: PeerOptions.cc:31
virtual void dumpCfg(Packable *, const char *pfx) const
output squid.conf syntax with &#39;pfx&#39; prefix on parameters for the stored settings
Definition: PeerOptions.cc:103
void SetSessionResumeData(const Security::SessionPointer &, const Security::SessionStatePointer &)
Definition: Session.cc:247
TLS squid.conf settings for a listening port.
Definition: ServerOptions.h:25
void MaybeGetSessionResumeData(const Security::SessionPointer &, Security::SessionStatePointer &data)
Definition: Session.cc:226
#define STUB_NOP
Definition: STUB.h:37
std::ostream & operator<<(std::ostream &, const Security::EncryptorAnswer &)
void updateTlsVersionLimits()
sync the context options with tls-min-version=N configuration
Definition: PeerOptions.cc:151
Security::SessionPointer NewSessionObject(const Security::ContextPointer &)
Definition: Session.cc:97
void parseOptions()
parse and verify the [tls-]options= string in sslOptions
Definition: PeerOptions.cc:433
void parse_securePeerOptions(Security::PeerOptions *opt)
Definition: PeerOptions.cc:767
virtual Security::ContextPointer createBlankContext() const
generate an unset security context object
virtual void dumpCfg(Packable *, const char *pfx) const
output squid.conf syntax with &#39;pfx&#39; prefix on parameters for the stored settings
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:376
std::shared_ptr< SSL > SessionPointer
Definition: Session.h:44

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors