proxygen
wangle::SSLContextManager::SslContexts Struct Reference

Public Member Functions

void clear ()
 
void swap (SslContexts &other) noexcept
 

Public Attributes

std::vector< std::shared_ptr< ServerSSLContext > > ctxs
 
std::shared_ptr< ServerSSLContextdefaultCtx
 
std::string defaultCtxDomainName
 
std::unordered_map< SSLContextKey, std::shared_ptr< folly::SSLContext >, SSLContextKeyHashdnMap
 

Detailed Description

Definition at line 49 of file SSLContextManager.h.

Member Function Documentation

void wangle::SSLContextManager::SslContexts::clear ( )

Definition at line 205 of file SSLContextManager.cpp.

Referenced by wangle::SSLContextManager::clear().

205  {
206  ctxs.clear();
207  defaultCtx = nullptr;
208  defaultCtxDomainName.clear();
209  dnMap.clear();
210 }
std::vector< std::shared_ptr< ServerSSLContext > > ctxs
std::shared_ptr< ServerSSLContext > defaultCtx
std::unordered_map< SSLContextKey, std::shared_ptr< folly::SSLContext >, SSLContextKeyHash > dnMap
void wangle::SSLContextManager::SslContexts::swap ( SslContexts other)
noexcept

Definition at line 198 of file SSLContextManager.cpp.

Referenced by wangle::SSLContextManager::resetSSLContextConfigs().

198  {
199  ctxs.swap(other.ctxs);
200  defaultCtx.swap(other.defaultCtx);
201  defaultCtxDomainName.swap(other.defaultCtxDomainName);
202  dnMap.swap(other.dnMap);
203 }
std::vector< std::shared_ptr< ServerSSLContext > > ctxs
std::shared_ptr< ServerSSLContext > defaultCtx
std::unordered_map< SSLContextKey, std::shared_ptr< folly::SSLContext >, SSLContextKeyHash > dnMap

Member Data Documentation

std::shared_ptr<ServerSSLContext> wangle::SSLContextManager::SslContexts::defaultCtx
std::string wangle::SSLContextManager::SslContexts::defaultCtxDomainName

Definition at line 55 of file SSLContextManager.h.

Referenced by wangle::SSLContextManager::addSSLContextConfig().

std::unordered_map< SSLContextKey, std::shared_ptr<folly::SSLContext>, SSLContextKeyHash> wangle::SSLContextManager::SslContexts::dnMap

Container to store the (DomainName -> SSL_CTX) mapping

Definition at line 63 of file SSLContextManager.h.

Referenced by wangle::SSLContextManager::getSSLCtxByExactDomain(), wangle::SSLContextManager::getSSLCtxBySuffix(), and wangle::SSLContextManager::insertIntoDnMap().


The documentation for this struct was generated from the following files: