proxygen
|
#include <SSLContextConfig.h>
Classes | |
struct | CertificateInfo |
struct | KeyOffloadParams |
Public Types | |
typedef std::function< bool(char const *server_name)> | SNINoMatchFn |
Public Member Functions | |
SSLContextConfig ()=default | |
~SSLContextConfig ()=default | |
void | setCertificate (const std::string &certPath, const std::string &keyPath, const std::string &passwordPath) |
void | addCertificate (const std::string &certPath, const std::string &keyPath, const std::string &passwordPath) |
void | setNextProtocols (const std::list< std::string > &inNextProtocols) |
Static Public Member Functions | |
static const std::string & | getDefaultCiphers () |
Public Attributes | |
std::vector< CertificateInfo > | certificates |
folly::SSLContext::SSLVersion | sslVersion |
bool | sessionCacheEnabled {true} |
bool | sessionTicketEnabled {true} |
bool | clientHelloParsingEnabled {true} |
std::string | sslCiphers {getDefaultCiphers()} |
std::string | eccCurveName {"prime256v1"} |
std::list< folly::SSLContext::NextProtocolsItem > | nextProtocols |
bool | isLocalPrivateKey {true} |
bool | isDefault {false} |
SNINoMatchFn | sniNoMatchFn |
std::string | clientCAFile |
folly::SSLContext::SSLVerifyPeerEnum | clientVerification |
KeyOffloadParams | keyOffloadParams |
folly::Optional< std::string > | sessionContext |
Definition at line 38 of file SSLContextConfig.h.
typedef std::function<bool(char const* server_name)> wangle::SSLContextConfig::SNINoMatchFn |
Definition at line 96 of file SSLContextConfig.h.
|
default |
|
default |
|
inline |
Definition at line 81 of file SSLContextConfig.h.
References certificates.
Referenced by main(), setCertificate(), and wangle::TEST().
|
inlinestatic |
Definition at line 52 of file SSLContextConfig.h.
References folly::join(), folly::ssl::SSLServerOptions::kCipherList, and string.
|
inline |
Helpers to set/add a certificate
Definition at line 74 of file SSLContextConfig.h.
References addCertificate(), and certificates.
Referenced by setupServer(), TEST(), and TEST_F().
|
inline |
Set the optional list of protocols to advertise via TLS Next Protocol Negotiation. An empty list means NPN is not enabled.
Definition at line 91 of file SSLContextConfig.h.
References nextProtocols.
std::vector<CertificateInfo> wangle::SSLContextConfig::certificates |
Definition at line 98 of file SSLContextConfig.h.
Referenced by addCertificate(), wangle::SSLContextManager::addSSLContextConfig(), and setCertificate().
std::string wangle::SSLContextConfig::clientCAFile |
Definition at line 117 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig(), main(), and TEST_F().
bool wangle::SSLContextConfig::clientHelloParsingEnabled {true} |
Definition at line 103 of file SSLContextConfig.h.
folly::SSLContext::SSLVerifyPeerEnum wangle::SSLContextConfig::clientVerification |
Definition at line 119 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig(), and TEST_F().
std::string wangle::SSLContextConfig::eccCurveName {"prime256v1"} |
Definition at line 105 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig().
bool wangle::SSLContextConfig::isDefault {false} |
Definition at line 112 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig(), wangle::SSLContextManager::ctxSetupByOpensslFeature(), main(), setupServer(), TEST(), and TEST_F().
bool wangle::SSLContextConfig::isLocalPrivateKey {true} |
Definition at line 110 of file SSLContextConfig.h.
KeyOffloadParams wangle::SSLContextConfig::keyOffloadParams |
Definition at line 122 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig().
std::list<folly::SSLContext::NextProtocolsItem> wangle::SSLContextConfig::nextProtocols |
Definition at line 109 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::ctxSetupByOpensslFeature(), and setNextProtocols().
bool wangle::SSLContextConfig::sessionCacheEnabled {true} |
Definition at line 101 of file SSLContextConfig.h.
Referenced by wangle::ServerSSLContext::setupSessionCache(), and wangle::TEST().
folly::Optional<std::string> wangle::SSLContextConfig::sessionContext |
Definition at line 127 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig(), and wangle::TEST().
bool wangle::SSLContextConfig::sessionTicketEnabled {true} |
Definition at line 102 of file SSLContextConfig.h.
Referenced by wangle::ServerSSLContext::setupTicketManager().
SNINoMatchFn wangle::SSLContextConfig::sniNoMatchFn |
Definition at line 115 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::ctxSetupByOpensslFeature().
std::string wangle::SSLContextConfig::sslCiphers {getDefaultCiphers()} |
Definition at line 104 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig().
folly::SSLContext::SSLVersion wangle::SSLContextConfig::sslVersion |
Definition at line 99 of file SSLContextConfig.h.
Referenced by wangle::SSLContextManager::addSSLContextConfig().