]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_libsslsquid.cc
Stub updates after bump-server-first changes
[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
AJ
12
13#include "ssl/Config.h"
0bf57f33
AJ
14Ssl::Config::Config() { printf("Ssl::Config::Config No implemented\n"); }
15Ssl::Config::~Config() { printf("Ssl::Config::Config No implemented\n"); }
1b76e6c1
AJ
16Ssl::Config Ssl::TheConfig;
17
18#include "ssl/context_storage.h"
19//Ssl::CertificateStorageAction::CertificateStorageAction(const Mgr::Command::Pointer &cmd) STUB
0bf57f33 20Ssl::CertificateStorageAction::Pointer Ssl::CertificateStorageAction::Create(const Mgr::Command::Pointer &cmd) STUB_RETSTATREF(Ssl::CertificateStorageAction::Pointer)
1b76e6c1
AJ
21void Ssl::CertificateStorageAction::dump(StoreEntry *sentry) STUB
22Ssl::LocalContextStorage::Item::Item(SSL_CTX * aSsl_ctx, std::string const & aName) STUB
23Ssl::LocalContextStorage::Item::~Item() STUB
24Ssl::LocalContextStorage::LocalContextStorage(size_t aMax_memory) STUB
25Ssl::LocalContextStorage::~LocalContextStorage() STUB
26void Ssl::LocalContextStorage::SetSize(size_t aMax_memory) STUB
27SSL_CTX * Ssl::LocalContextStorage::add(char const * host_name, SSL_CTX * ssl_ctx) STUB_RETVAL(NULL)
28SSL_CTX * Ssl::LocalContextStorage::find(char const * host_name) STUB_RETVAL(NULL)
29void Ssl::LocalContextStorage::remove(char const * host_name) STUB
0bf57f33
AJ
30//Ssl::GlobalContextStorage::GlobalContextStorage() STUB
31//Ssl::GlobalContextStorage::~GlobalContextStorage() STUB
1b76e6c1 32void Ssl::GlobalContextStorage::addLocalStorage(Ip::Address const & address, size_t size_of_store) STUB
0bf57f33
AJ
33Ssl::LocalContextStorage & Ssl::GlobalContextStorage::getLocalStorage(Ip::Address const & address)
34 { fatal(STUB_API " required"); static Ssl::LocalContextStorage v(0); return v; }
1b76e6c1
AJ
35void Ssl::GlobalContextStorage::reconfigureStart() STUB
36//Ssl::GlobalContextStorage Ssl::TheGlobalContextStorage;
37
38#include "ssl/ErrorDetail.h"
39Ssl::ssl_error_t parseErrorString(const char *name) STUB_RETVAL(0)
0bf57f33 40//const char *Ssl::getErrorName(ssl_error_t value) STUB_RETVAL(NULL)
6402baa6 41Ssl::ErrorDetail::ErrorDetail(ssl_error_t err_no, X509 *, X509 *) STUB
1b76e6c1 42Ssl::ErrorDetail::ErrorDetail(ErrorDetail const &) STUB
0bf57f33 43const String & Ssl::ErrorDetail::toString() const STUB_RETSTATREF(String)
1b76e6c1
AJ
44
45#include "ssl/support.h"
46SSL_CTX *sslCreateServerContext(const char *certfile, const char *keyfile, int version, const char *cipher, const char *options, const char *flags, const char *clientCA, const char *CAfile, const char *CApath, const char *CRLfile, const char *dhpath, const char *context) STUB_RETVAL(NULL)
47SSL_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)
48int ssl_read_method(int, char *, int) STUB_RETVAL(0)
49int ssl_write_method(int, const char *, int) STUB_RETVAL(0)
0bf57f33 50void ssl_shutdown_method(SSL *) STUB
1b76e6c1
AJ
51const char *sslGetUserEmail(SSL *ssl) STUB_RETVAL(NULL)
52// typedef char const *SSLGETATTRIBUTE(SSL *, const char *);
53// SSLGETATTRIBUTE sslGetUserAttribute;
54// SSLGETATTRIBUTE sslGetCAAttribute;
55const char *sslGetUserCertificatePEM(SSL *ssl) STUB_RETVAL(NULL)
56const char *sslGetUserCertificateChainPEM(SSL *ssl) STUB_RETVAL(NULL)
6402baa6 57SSL_CTX * Ssl::generateSslContext(CertificateProperties const &properties) STUB_RETVAL(NULL)
1b76e6c1
AJ
58SSL_CTX * Ssl::generateSslContextUsingPkeyAndCertFromMemory(const char * data) STUB_RETVAL(NULL)
59int Ssl::matchX509CommonNames(X509 *peer_cert, void *check_data, int (*check_func)(void *check_data, ASN1_STRING *cn_data)) STUB_RETVAL(0)
60int Ssl::asn1timeToString(ASN1_TIME *tm, char *buf, int len) STUB_RETVAL(0)
0bf57f33
AJ
61
62#endif