stub_libsslsquid.cc
Go to the documentation of this file.
37 Ssl::CertificateStorageAction::Pointer Ssl::CertificateStorageAction::Create(const Mgr::Command::Pointer &) STUB_RETSTATREF(Ssl::CertificateStorageAction::Pointer)
52 bool InitClientContext(Security::ContextPointer &, Security::PeerOptions &, Security::ParsedPortFlags) STUB_RETVAL(false)
68 bool generateUntrustedCert(Security::CertPointer &, Security::PrivateKeyPointer &, Security::CertPointer const &, Security::PrivateKeyPointer const &) STUB_RETVAL(false)
69 Security::ContextPointer GenerateSslContext(CertificateProperties const &, Security::ServerOptions &, bool) STUB_RETVAL(Security::ContextPointer())
70 bool verifySslCertificate(const Security::ContextPointer &, CertificateProperties const &) STUB_RETVAL(false)
71 Security::ContextPointer GenerateSslContextUsingPkeyAndCertFromMemory(const char *, Security::ServerOptions &, bool) STUB_RETVAL(Security::ContextPointer())
const char * sslGetCAAttribute(SSL *ssl, const char *attribute_name)
Definition: support.cc:860
bool InitClientContext(Security::ContextPointer &, Security::PeerOptions &, Security::ParsedPortFlags)
initialize a TLS client context with OpenSSL specific settings
Definition: support.cc:699
int asn1timeToString(ASN1_TIME *tm, char *buf, int len)
Definition: support.cc:181
bool generateUntrustedCert(Security::CertPointer &untrustedCert, Security::PrivateKeyPointer &untrustedPkey, Security::CertPointer const &cert, Security::PrivateKeyPointer const &pkey)
Definition: support.cc:1356
void MaybeSetupRsaCallback(Security::ContextPointer &)
if required, setup callback for generating ephemeral RSA keys
Definition: support.cc:171
bool InitServerContext(Security::ContextPointer &, AnyP::PortCfg &)
initialize a TLS server context with OpenSSL specific settings
Definition: support.cc:690
int matchX509CommonNames(X509 *peer_cert, void *check_data, int(*check_func)(void *check_data, ASN1_STRING *cn_data))
Definition: support.cc:195
const char * sslGetUserEmail(SSL *) STUB_RETVAL(nullptr) const char *sslGetUserAttribute(SSL *
virtual void dump(StoreEntry *sentry)
Definition: context_storage.cc:33
bool checkX509ServerValidity(X509 *cert, const char *server)
Definition: support.cc:254
bool ParseErrorString(const char *name, Security::Errors &)
Definition: ErrorDetail.cc:110
Definition: forward.h:15
LocalContextStorage * getLocalStorage(Ip::Address const &address)
Return the local storage for the given listening address/port.
Definition: context_storage.cc:80
Definition: ClpMap.h:41
Definition: Xaction.cc:48
Security::ContextPointer GenerateSslContextUsingPkeyAndCertFromMemory(const char *data, Security::ServerOptions &, bool trusted)
Definition: support.cc:931
Security::ContextPointer GenerateSslContext(CertificateProperties const &, Security::ServerOptions &, bool trusted)
Definition: support.cc:945
const char * sslGetUserAttribute(SSL *ssl, const char *attribute_name)
Definition: support.cc:847
void reconfigureStart()
When reconfigring should be called this method.
Definition: context_storage.cc:91
Definition: Store.h:42
void DisablePeerVerification(Security::ContextPointer &)
Definition: support.cc:432
const char const char * STUB_RETVAL(nullptr) const char *sslGetCAAttribute(SSL *
Definition: stub_libsslsquid.cc:59
int AskPasswordCb(char *buf, int size, int rwflag, void *userdata)
Definition: support.cc:64
static Pointer Create(const Mgr::Command::Pointer &cmd)
Definition: context_storage.cc:28
bool verifySslCertificate(const Security::ContextPointer &, CertificateProperties const &)
Definition: support.cc:1034
void addLocalStorage(Ip::Address const &address, size_t size_of_store)
Create new SSL context storage for the local listening address/port.
Definition: context_storage.cc:74
void ConfigurePeerVerification(Security::ContextPointer &, const Security::ParsedPortFlags)
set the certificate verify callback for a context
Definition: support.cc:405
Definition: Address.h:41
ClpMap< SBuf, Security::ContextPointer, MemoryUsedByContext > LocalContextStorage
Definition: context_storage.h:51