]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_libsecurity.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_libsecurity.cc
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
17 #include "security/BlindPeerConnector.h"
18 CBDATA_NAMESPACED_CLASS_INIT(Security, BlindPeerConnector);
19 namespace Security
20 {
21 bool BlindPeerConnector::initialize(Security::SessionPointer &) STUB_RETVAL(false)
22 Security::ContextPointer BlindPeerConnector::getTlsContext() STUB_RETVAL(Security::ContextPointer())
23 void BlindPeerConnector::noteNegotiationDone(ErrorState *) STUB
24 }
25
26 #include "security/EncryptorAnswer.h"
27 Security::EncryptorAnswer::~EncryptorAnswer() {}
28 std::ostream &Security::operator <<(std::ostream &os, const Security::EncryptorAnswer &) STUB_RETVAL(os)
29
30 #include "security/Handshake.h"
31 Security::HandshakeParser::HandshakeParser() STUB
32 bool Security::HandshakeParser::parseHello(const SBuf &) STUB_RETVAL(false)
33
34 #include "security/NegotiationHistory.h"
35 Security::NegotiationHistory::NegotiationHistory() STUB
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 {
45 PeerConnector::PeerConnector(const Comm::ConnectionPointer &, AsyncCall::Pointer &, const AccessLogEntryPointer &, const time_t) :
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"
70 Security::PeerOptions Security::ProxyOutgoingConfig;
71 void Security::PeerOptions::parse(char const*) STUB
72 Security::ContextPointer Security::PeerOptions::createClientContext(bool) STUB_RETVAL(Security::ContextPointer())
73 void Security::PeerOptions::updateTlsVersionLimits() STUB
74 Security::ContextPointer Security::PeerOptions::createBlankContext() const STUB_RETVAL(Security::ContextPointer())
75 void Security::PeerOptions::updateContextCa(Security::ContextPointer &) STUB
76 void Security::PeerOptions::updateContextCrl(Security::ContextPointer &) STUB
77 void Security::PeerOptions::dumpCfg(Packable*, char const*) const STUB
78 long Security::PeerOptions::parseOptions() STUB_RETVAL(0)
79 long Security::PeerOptions::parseFlags() STUB_RETVAL(0)
80 void parse_securePeerOptions(Security::PeerOptions *) STUB
81
82 #include "security/ServerOptions.h"
83 //Security::ServerOptions::ServerOptions(const Security::ServerOptions &) STUB
84 void Security::ServerOptions::parse(const char *) STUB
85 void Security::ServerOptions::dumpCfg(Packable *, const char *) const STUB
86 Security::ContextPointer Security::ServerOptions::createBlankContext() const STUB_RETVAL(Security::ContextPointer())
87 bool Security::ServerOptions::createStaticServerContext(AnyP::PortCfg &) STUB_RETVAL(false)
88 void Security::ServerOptions::updateContextEecdh(Security::ContextPointer &) STUB
89
90 #include "security/Session.h"
91 namespace Security {
92 bool SessionIsResumed(const Security::SessionPointer &) STUB_RETVAL(false)
93 void MaybeGetSessionResumeData(const Security::SessionPointer &, Security::SessionStatePointer &) STUB
94 void SetSessionResumeData(const Security::SessionPointer &, const Security::SessionStatePointer &) STUB
95 } // namespace Security
96