2 * Copyright (C) 1996-2016 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 Security::ErrorCode
parseErrorString(const char *name
) STUB_RETVAL(0)
45 //const char *Ssl::getErrorName(Security::ErrorCode value) STUB_RETVAL(NULL)
46 Ssl::ErrorDetail::ErrorDetail(Security::ErrorCode
, 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(Security::ErrorCode, X509 *) STUB
54 bool InitServerContext(const Security::ContextPointer
&, AnyP::PortCfg
&) STUB_RETVAL(false)
55 bool InitClientContext(Security::ContextPtr
&, Security::PeerOptions
&, long, const char *) STUB_RETVAL(false)
57 int ssl_read_method(int, char *, int) STUB_RETVAL(0)
58 int ssl_write_method(int, const char *, int) STUB_RETVAL(0)
59 void ssl_shutdown_method(SSL
*ssl
) 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 const char *sslGetUserCertificatePEM(SSL
*ssl
) STUB_RETVAL(NULL
)
64 const char *sslGetUserCertificateChainPEM(SSL
*ssl
) STUB_RETVAL(NULL
)
67 //GETX509ATTRIBUTE GetX509UserAttribute;
68 //GETX509ATTRIBUTE GetX509CAAttribute;
69 //GETX509ATTRIBUTE GetX509Fingerprint;
70 const char *BumpModeStr
[] = {""};
71 bool generateUntrustedCert(Security::CertPointer
& untrustedCert
, EVP_PKEY_Pointer
& untrustedPkey
, Security::CertPointer
const & cert
, EVP_PKEY_Pointer
const & pkey
) STUB_RETVAL(false)
72 Security::ContextPtr
generateSslContext(CertificateProperties
const &properties
, AnyP::PortCfg
&port
) STUB_RETVAL(NULL
)
73 bool verifySslCertificate(Security::ContextPtr sslContext
, CertificateProperties
const &properties
) STUB_RETVAL(false)
74 Security::ContextPtr
generateSslContextUsingPkeyAndCertFromMemory(const char * data
, AnyP::PortCfg
&port
) STUB_RETVAL(NULL
)
75 void addChainToSslContext(Security::ContextPtr sslContext
, STACK_OF(X509
) *certList
) STUB
76 void readCertChainAndPrivateKeyFromFiles(Security::CertPointer
& cert
, EVP_PKEY_Pointer
& pkey
, X509_STACK_Pointer
& chain
, char const * certFilename
, char const * keyFilename
) STUB
77 int matchX509CommonNames(X509
*peer_cert
, void *check_data
, int (*check_func
)(void *check_data
, ASN1_STRING
*cn_data
)) STUB_RETVAL(0)
78 bool checkX509ServerValidity(X509
*cert
, const char *server
) STUB_RETVAL(false)
79 int asn1timeToString(ASN1_TIME
*tm
, char *buf
, int len
) STUB_RETVAL(0)
80 bool setClientSNI(SSL
*ssl
, const char *fqdn
) STUB_RETVAL(false)