]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_libsslsquid.cc
Fix lots of SNMP alignment, sizeof(), and memory uninitialized erorrs
[thirdparty/squid.git] / src / tests / stub_libsslsquid.cc
CommitLineData
f7f3304a 1#include "squid.h"
0bf57f33
AJ
2
3#if USE_SSL
4
1b76e6c1
AJ
5#include "fatal.h"
6
7/* Stub File for the ssl/libsslsquid.la convenience library */
8
0bf57f33
AJ
9#define STUB_API "ssl/libsslsquid.la"
10#include "tests/STUB.h"
1b76e6c1 11
1b76e6c1 12#include "ssl/Config.h"
0bf57f33
AJ
13Ssl::Config::Config() { printf("Ssl::Config::Config No implemented\n"); }
14Ssl::Config::~Config() { printf("Ssl::Config::Config No implemented\n"); }
1b76e6c1
AJ
15Ssl::Config Ssl::TheConfig;
16
17#include "ssl/context_storage.h"
18//Ssl::CertificateStorageAction::CertificateStorageAction(const Mgr::Command::Pointer &cmd) STUB
0bf57f33 19Ssl::CertificateStorageAction::Pointer Ssl::CertificateStorageAction::Create(const Mgr::Command::Pointer &cmd) STUB_RETSTATREF(Ssl::CertificateStorageAction::Pointer)
1b76e6c1 20void Ssl::CertificateStorageAction::dump(StoreEntry *sentry) STUB
1b76e6c1 21void Ssl::GlobalContextStorage::addLocalStorage(Ip::Address const & address, size_t size_of_store) STUB
0bf57f33 22Ssl::LocalContextStorage & Ssl::GlobalContextStorage::getLocalStorage(Ip::Address const & address)
14798e73 23{ fatal(STUB_API " required"); static Ssl::LocalContextStorage v(0,0); return v; }
1b76e6c1
AJ
24void Ssl::GlobalContextStorage::reconfigureStart() STUB
25//Ssl::GlobalContextStorage Ssl::TheGlobalContextStorage;
26
27#include "ssl/ErrorDetail.h"
28Ssl::ssl_error_t parseErrorString(const char *name) STUB_RETVAL(0)
0bf57f33 29//const char *Ssl::getErrorName(ssl_error_t value) STUB_RETVAL(NULL)
b56756cb 30Ssl::ErrorDetail::ErrorDetail(ssl_error_t err_no, X509 *, X509 *, const char *) STUB
1b76e6c1 31Ssl::ErrorDetail::ErrorDetail(ErrorDetail const &) STUB
0bf57f33 32const String & Ssl::ErrorDetail::toString() const STUB_RETSTATREF(String)
1b76e6c1
AJ
33
34#include "ssl/support.h"
86660d64 35SSL_CTX *sslCreateServerContext(AnyP::PortCfg &) STUB_RETVAL(NULL)
1b76e6c1
AJ
36SSL_CTX *sslCreateClientContext(const char *certfile, const char *keyfile, int version, const char *cipher, const char *options, const char *flags, const char *CAfile, const char *CApath, const char *CRLfile) STUB_RETVAL(NULL)
37int ssl_read_method(int, char *, int) STUB_RETVAL(0)
38int ssl_write_method(int, const char *, int) STUB_RETVAL(0)
0bf57f33 39void ssl_shutdown_method(SSL *) STUB
1b76e6c1 40const char *sslGetUserEmail(SSL *ssl) STUB_RETVAL(NULL)
00352183
AR
41// typedef char const *Ssl::GETATTRIBUTE(X509 *, const char *);
42// Ssl::GETATTRIBUTE Ssl::GetX509UserAttribute;
43// Ssl::GETATTRIBUTE Ssl::GetX509CAAttribute;
1b76e6c1
AJ
44const char *sslGetUserCertificatePEM(SSL *ssl) STUB_RETVAL(NULL)
45const char *sslGetUserCertificateChainPEM(SSL *ssl) STUB_RETVAL(NULL)
86660d64
CT
46SSL_CTX * Ssl::generateSslContext(CertificateProperties const &properties, AnyP::PortCfg &) STUB_RETVAL(NULL)
47SSL_CTX * Ssl::generateSslContextUsingPkeyAndCertFromMemory(const char * data, AnyP::PortCfg &) STUB_RETVAL(NULL)
1b76e6c1
AJ
48int Ssl::matchX509CommonNames(X509 *peer_cert, void *check_data, int (*check_func)(void *check_data, ASN1_STRING *cn_data)) STUB_RETVAL(0)
49int Ssl::asn1timeToString(ASN1_TIME *tm, char *buf, int len) STUB_RETVAL(0)
0bf57f33
AJ
50
51#endif