2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
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.
14 #include "sbuf/SBuf.h"
16 /* Stub File for the ssl/libsslsquid.la convenience library */
18 #define STUB_API "ssl/libsslsquid.la"
19 #include "tests/STUB.h"
21 #include "ssl/Config.h"
22 Ssl::Config::Config():
26 ssl_crt_validator(NULL
)
28 ssl_crt_validator_Children
.concurrency
= 1;
31 Ssl::Config::~Config() STUB_NOP
32 Ssl::Config
Ssl::TheConfig
;
34 #include "ssl/context_storage.h"
35 //Ssl::CertificateStorageAction::CertificateStorageAction(const Mgr::Command::Pointer &cmd) STUB
36 Ssl::CertificateStorageAction::Pointer
Ssl::CertificateStorageAction::Create(const Mgr::Command::Pointer
&cmd
) STUB_RETSTATREF(Ssl::CertificateStorageAction::Pointer
)
37 void Ssl::CertificateStorageAction::dump(StoreEntry
*sentry
) STUB
38 void Ssl::GlobalContextStorage::addLocalStorage(Ip::Address
const & address
, size_t size_of_store
) STUB
39 Ssl::LocalContextStorage
*Ssl::GlobalContextStorage::getLocalStorage(Ip::Address
const & address
)
40 { fatal(STUB_API
" required"); static Ssl::LocalContextStorage
v(0,0); return &v
; }
41 void Ssl::GlobalContextStorage::reconfigureStart() STUB
42 //Ssl::GlobalContextStorage Ssl::TheGlobalContextStorage;
44 #include "ssl/ErrorDetail.h"
45 Security::ErrorCode
parseErrorString(const char *name
) STUB_RETVAL(0)
46 //const char *Ssl::getErrorName(Security::ErrorCode value) STUB_RETVAL(NULL)
47 Ssl::ErrorDetail::ErrorDetail(Security::ErrorCode
, X509
*, X509
*, const char *) STUB
48 Ssl::ErrorDetail::ErrorDetail(ErrorDetail
const &) STUB
49 const String
& Ssl::ErrorDetail::toString() const STUB_RETSTATREF(String
)
51 #include "ssl/support.h"
54 int AskPasswordCb(char *, int, int, void *) STUB_RETVAL(0)
55 bool InitServerContext(Security::ContextPointer
&, AnyP::PortCfg
&) STUB_RETVAL(false)
56 bool InitClientContext(Security::ContextPointer
&, Security::PeerOptions
&, const char *) STUB_RETVAL(false)
57 void SetupVerifyCallback(Security::ContextPointer
&) STUB
58 void MaybeSetupRsaCallback(Security::ContextPointer
&) STUB
60 const char *sslGetUserEmail(SSL
*ssl
) STUB_RETVAL(NULL
)
61 const char *sslGetUserAttribute(SSL
*ssl
, const char *attribute_name
) STUB_RETVAL(NULL
)
62 const char *sslGetCAAttribute(SSL
*ssl
, const char *attribute_name
) STUB_RETVAL(NULL
)
63 SBuf
sslGetUserCertificatePEM(SSL
*ssl
) STUB_RETVAL(SBuf())
64 SBuf
sslGetUserCertificateChainPEM(SSL
*ssl
) STUB_RETVAL(SBuf())
67 //GETX509ATTRIBUTE GetX509UserAttribute;
68 //GETX509ATTRIBUTE GetX509CAAttribute;
69 //GETX509ATTRIBUTE GetX509Fingerprint;
70 std::vector
<const char *> BumpModeStr
= {""};
71 bool generateUntrustedCert(Security::CertPointer
&, Security::PrivateKeyPointer
&, Security::CertPointer
const &, Security::PrivateKeyPointer
const &) STUB_RETVAL(false)
72 Security::ContextPointer
GenerateSslContext(CertificateProperties
const &, Security::ServerOptions
&, bool) STUB_RETVAL(Security::ContextPointer())
73 bool verifySslCertificate(Security::ContextPointer
&, CertificateProperties
const &) STUB_RETVAL(false)
74 Security::ContextPointer
GenerateSslContextUsingPkeyAndCertFromMemory(const char *, Security::ServerOptions
&, bool) STUB_RETVAL(Security::ContextPointer())
75 int matchX509CommonNames(X509
*peer_cert
, void *check_data
, int (*check_func
)(void *check_data
, ASN1_STRING
*cn_data
)) STUB_RETVAL(0)
76 bool checkX509ServerValidity(X509
*cert
, const char *server
) STUB_RETVAL(false)
77 int asn1timeToString(ASN1_TIME
*tm
, char *buf
, int len
) STUB_RETVAL(0)
78 void setClientSNI(SSL
*ssl
, const char *fqdn
) STUB
79 SBuf
GetX509PEM(SSL
*ssl
) STUB_RETVAL(SBuf())