proxygen
|
#include <SSLSessionCallbacks.h>
Public Member Functions | |
virtual void | setSSLSession (const std::string &identity, SSLSessionPtr session) noexcept=0 |
virtual SSLSessionPtr | getSSLSession (const std::string &identity) const noexcept=0 |
virtual bool | removeSSLSession (const std::string &identity) noexcept=0 |
virtual bool | supportsPersistence () const noexcept |
virtual size_t | size () const |
virtual | ~SSLSessionCallbacks () |
Static Public Member Functions | |
static void | attachCallbacksToContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks) |
static void | detachCallbacksFromContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks) |
static SSLSessionCallbacks * | getCacheFromContext (SSL_CTX *ctx) |
Static Private Member Functions | |
static std::string | getSessionKeyFromSSL (SSL *ssl) |
static int | newSessionCallback (SSL *ssl, SSL_SESSION *session) |
static void | removeSessionCallback (SSL_CTX *ctx, SSL_SESSION *session) |
static int32_t & | getCacheIndex () |
Callbacks related to SSL session cache
This class contains three methods, setSSLSession() to store existing SSL session data to cache, getSSLSession() to retreive cached session data in cache, and removeSSLSession() to remove session data from cache.
Definition at line 41 of file SSLSessionCallbacks.h.
|
inlinevirtual |
Definition at line 69 of file SSLSessionCallbacks.h.
References attachCallbacksToContext(), detachCallbacksFromContext(), getCacheFromContext(), getSessionKeyFromSSL(), newSessionCallback(), removeSessionCallback(), and string.
|
static |
Sets up SSL Session callbacks on a context. The application is responsible for detaching the callbacks from the context.
Definition at line 24 of file SSLSessionCallbacks.cpp.
Referenced by main(), TEST(), and ~SSLSessionCallbacks().
|
static |
Detach the passed in callbacks from the context. If the callbacks are not set on the context, it is unchanged.
Definition at line 39 of file SSLSessionCallbacks.cpp.
Referenced by TEST(), and ~SSLSessionCallbacks().
|
static |
Definition at line 54 of file SSLSessionCallbacks.cpp.
Referenced by TEST(), and ~SSLSessionCallbacks().
|
inlinestaticprivate |
|
staticprivate |
Definition at line 60 of file SSLSessionCallbacks.cpp.
References folly::AsyncSSLSocket::getFromSSL().
Referenced by ~SSLSessionCallbacks().
|
pure virtualnoexcept |
|
staticprivate |
Definition at line 66 of file SSLSessionCallbacks.cpp.
References folly::AsyncSSLSocket::getSSLServerNameFromSSL(), folly::gen::move, name, wangle::setSessionServiceIdentity(), and string.
Referenced by ~SSLSessionCallbacks().
|
staticprivate |
Definition at line 84 of file SSLSessionCallbacks.cpp.
References wangle::getSessionServiceIdentity(), folly::portability::ssl::SSL_SESSION_get0_hostname(), and string.
Referenced by ~SSLSessionCallbacks().
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
inlinevirtual |
Reimplemented in wangle::SSLSessionPersistentCacheBase< K >, wangle::SSLSessionPersistentCacheBase< std::string >, FakeSessionCallbacks, and wangle::ThreadSafeSSLSessionCache.
Definition at line 65 of file SSLSessionCallbacks.h.
|
inlinevirtualnoexcept |
Reimplemented in wangle::SSLSessionPersistentCacheBase< K >, wangle::SSLSessionPersistentCacheBase< std::string >, and wangle::ThreadSafeSSLSessionCache.
Definition at line 61 of file SSLSessionCallbacks.h.