proxygen
|
#include <ThreadSafeSSLSessionCache.h>
Public Member Functions | |
ThreadSafeSSLSessionCache (std::unique_ptr< SSLSessionCallbacks > delegate) | |
void | setSSLSession (const std::string &identity, SSLSessionPtr session) noexceptoverride |
SSLSessionPtr | getSSLSession (const std::string &identity) const noexceptoverride |
bool | removeSSLSession (const std::string &identity) noexceptoverride |
bool | supportsPersistence () const noexceptoverride |
size_t | size () const override |
Public Member Functions inherited from wangle::SSLSessionCallbacks | |
virtual | ~SSLSessionCallbacks () |
Private Attributes | |
std::unique_ptr< SSLSessionCallbacks > | delegate_ |
folly::SharedMutex | mutex_ |
Additional Inherited Members | |
Static Public Member Functions inherited from wangle::SSLSessionCallbacks | |
static void | attachCallbacksToContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks) |
static void | detachCallbacksFromContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks) |
static SSLSessionCallbacks * | getCacheFromContext (SSL_CTX *ctx) |
A SSL session cache that can be used safely across threads. This is useful for clients who cannot avoid sharing the cache across threads. It uses a read/write lock for efficiency.
Definition at line 30 of file ThreadSafeSSLSessionCache.h.
|
inlineexplicit |
Definition at line 32 of file ThreadSafeSSLSessionCache.h.
References getSSLSession(), folly::pushmi::__adl::noexcept(), removeSSLSession(), setSSLSession(), size(), string, and supportsPersistence().
|
overridevirtualnoexcept |
Implements wangle::SSLSessionCallbacks.
Definition at line 29 of file ThreadSafeSSLSessionCache.cpp.
References folly::detail::lock(), and mutex_.
Referenced by ThreadSafeSSLSessionCache().
|
overridevirtualnoexcept |
Implements wangle::SSLSessionCallbacks.
Definition at line 35 of file ThreadSafeSSLSessionCache.cpp.
References folly::detail::lock(), and mutex_.
Referenced by ThreadSafeSSLSessionCache().
|
overridevirtualnoexcept |
Implements wangle::SSLSessionCallbacks.
Definition at line 22 of file ThreadSafeSSLSessionCache.cpp.
References folly::detail::lock(), folly::gen::move, and mutex_.
Referenced by ThreadSafeSSLSessionCache().
|
overridevirtual |
Reimplemented from wangle::SSLSessionCallbacks.
Definition at line 46 of file ThreadSafeSSLSessionCache.cpp.
References delegate_, folly::detail::lock(), and mutex_.
Referenced by ThreadSafeSSLSessionCache().
|
overridevirtualnoexcept |
Reimplemented from wangle::SSLSessionCallbacks.
Definition at line 41 of file ThreadSafeSSLSessionCache.cpp.
References delegate_, folly::detail::lock(), and mutex_.
Referenced by ThreadSafeSSLSessionCache().
|
private |
Definition at line 46 of file ThreadSafeSSLSessionCache.h.
Referenced by size(), and supportsPersistence().
|
mutableprivate |
Definition at line 47 of file ThreadSafeSSLSessionCache.h.
Referenced by size(), and supportsPersistence().