2 * Copyright (C) 1996-2015 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.
15 /* Stub File for the ssl/libsslsquid.la convenience library */
17 #define STUB_API "ssl/libsslsquid.la"
18 #include "tests/STUB.h"
20 #include "ssl/Config.h"
21 Ssl::Config::Config():
25 ssl_crt_validator(NULL
)
27 ssl_crt_validator_Children
.concurrency
= 1;
30 Ssl::Config::~Config() STUB_NOP
31 Ssl::Config
Ssl::TheConfig
;
33 #include "ssl/context_storage.h"
34 //Ssl::CertificateStorageAction::CertificateStorageAction(const Mgr::Command::Pointer &cmd) STUB
35 Ssl::CertificateStorageAction::Pointer
Ssl::CertificateStorageAction::Create(const Mgr::Command::Pointer
&cmd
) STUB_RETSTATREF(Ssl::CertificateStorageAction::Pointer
)
36 void Ssl::CertificateStorageAction::dump(StoreEntry
*sentry
) STUB
37 void Ssl::GlobalContextStorage::addLocalStorage(Ip::Address
const & address
, size_t size_of_store
) STUB
38 Ssl::LocalContextStorage
*Ssl::GlobalContextStorage::getLocalStorage(Ip::Address
const & address
)
39 { fatal(STUB_API
" required"); static Ssl::LocalContextStorage
v(0,0); return &v
; }
40 void Ssl::GlobalContextStorage::reconfigureStart() STUB
41 //Ssl::GlobalContextStorage Ssl::TheGlobalContextStorage;
43 #include "ssl/ErrorDetail.h"
44 Ssl::ssl_error_t
parseErrorString(const char *name
) STUB_RETVAL(0)
45 //const char *Ssl::getErrorName(ssl_error_t value) STUB_RETVAL(NULL)
46 Ssl::ErrorDetail::ErrorDetail(ssl_error_t err_no
, X509
*, X509
*, const char *) STUB
47 Ssl::ErrorDetail::ErrorDetail(ErrorDetail
const &) STUB
48 const String
& Ssl::ErrorDetail::toString() const STUB_RETSTATREF(String
)
50 #include "ssl/support.h"
53 //CertError::CertError(ssl_error_t anErr, X509 *aCert) STUB
54 //CertError::CertError(CertError const &err) STUB
55 CertError
& CertError::operator = (const CertError
&old
) STUB_RETVAL(*this)
56 bool CertError::operator == (const CertError
&ce
) const STUB_RETVAL(false)
57 bool CertError::operator != (const CertError
&ce
) const STUB_RETVAL(false)
59 SSL_CTX
*sslCreateServerContext(AnyP::PortCfg
&port
) STUB_RETVAL(NULL
)
60 SSL_CTX
*sslCreateClientContext(const char *certfile
, const char *keyfile
, const char *cipher
, long options
, const char *flags
) STUB_RETVAL(NULL
)
61 int ssl_read_method(int, char *, int) STUB_RETVAL(0)
62 int ssl_write_method(int, const char *, int) STUB_RETVAL(0)
63 void ssl_shutdown_method(SSL
*ssl
) STUB
64 const char *sslGetUserEmail(SSL
*ssl
) STUB_RETVAL(NULL
)
65 const char *sslGetUserAttribute(SSL
*ssl
, const char *attribute_name
) STUB_RETVAL(NULL
)
66 const char *sslGetCAAttribute(SSL
*ssl
, const char *attribute_name
) STUB_RETVAL(NULL
)
67 const char *sslGetUserCertificatePEM(SSL
*ssl
) STUB_RETVAL(NULL
)
68 const char *sslGetUserCertificateChainPEM(SSL
*ssl
) STUB_RETVAL(NULL
)
71 //GETX509ATTRIBUTE GetX509UserAttribute;
72 //GETX509ATTRIBUTE GetX509CAAttribute;
73 //GETX509ATTRIBUTE GetX509Fingerprint;
74 const char *BumpModeStr
[] = {""};
75 bool generateUntrustedCert(Security::CertPointer
& untrustedCert
, EVP_PKEY_Pointer
& untrustedPkey
, Security::CertPointer
const & cert
, EVP_PKEY_Pointer
const & pkey
) STUB_RETVAL(false)
76 SSL_CTX
* generateSslContext(CertificateProperties
const &properties
, AnyP::PortCfg
&port
) STUB_RETVAL(NULL
)
77 bool verifySslCertificate(SSL_CTX
* sslContext
, CertificateProperties
const &properties
) STUB_RETVAL(false)
78 SSL_CTX
* generateSslContextUsingPkeyAndCertFromMemory(const char * data
, AnyP::PortCfg
&port
) STUB_RETVAL(NULL
)
79 void addChainToSslContext(SSL_CTX
*sslContext
, STACK_OF(X509
) *certList
) STUB
80 void readCertChainAndPrivateKeyFromFiles(Security::CertPointer
& cert
, EVP_PKEY_Pointer
& pkey
, X509_STACK_Pointer
& chain
, char const * certFilename
, char const * keyFilename
) STUB
81 int matchX509CommonNames(X509
*peer_cert
, void *check_data
, int (*check_func
)(void *check_data
, ASN1_STRING
*cn_data
)) STUB_RETVAL(0)
82 bool checkX509ServerValidity(X509
*cert
, const char *server
) STUB_RETVAL(false)
83 int asn1timeToString(ASN1_TIME
*tm
, char *buf
, int len
) STUB_RETVAL(0)
84 bool setClientSNI(SSL
*ssl
, const char *fqdn
) STUB_RETVAL(false)
85 void initialize_session_cache() STUB
86 void destruct_session_cache() STUB