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