#include <FizzConfigUtil.h>
Definition at line 26 of file FizzConfigUtil.h.
Definition at line 67 of file FizzConfigUtil.cpp.
References bm::list, folly::gen::move, wangle::ServerSocketConfig::sslContextConfigs, and verify().
Referenced by wangle::Acceptor::createFizzContext().
74 certMgr = createCertManager(config);
80 auto ctx = std::make_shared<fizz::server::FizzServerContext>();
81 ctx->setSupportedVersions({ProtocolVersion::tls_1_3,
82 ProtocolVersion::tls_1_3_28,
83 ProtocolVersion::tls_1_3_26});
84 ctx->setVersionFallbackEnabled(
true);
91 ctx->setSupportedAlpns(FizzUtil::getAlpnsFromNpnList(
list));
96 case folly::SSLContext::SSLVerifyPeerEnum::VERIFY_REQ_CLIENT_CERT:
97 ctx->setClientAuthMode(ClientAuthMode::Required);
99 case folly::SSLContext::SSLVerifyPeerEnum::VERIFY:
100 ctx->setClientAuthMode(ClientAuthMode::Optional);
103 ctx->setClientAuthMode(ClientAuthMode::None);
107 if (!caFile.empty()) {
108 auto verifier = DefaultCertificateVerifier::createFromCAFile(
109 VerificationContext::Server, caFile);
110 ctx->setClientCertVerifier(
std::move(verifier));
constexpr detail::Map< Move > move
Encoder::MutableCompressedList list
std::vector< SSLContextConfig > sslContextConfigs
template<class TicketCipher >
static std::unique_ptr<TicketCipher> wangle::FizzConfigUtil::createTicketCipher |
( |
const std::vector< std::string > & |
oldSecrets, |
|
|
const std::vector< std::string > & |
currentSecrets, |
|
|
const std::vector< std::string > & |
newSecrets, |
|
|
std::chrono::seconds |
validity, |
|
|
folly::Optional< std::string > |
pskContext |
|
) |
| |
|
inlinestatic |
Definition at line 34 of file FizzConfigUtil.h.
References folly::gen::move.
40 if (currentSecrets.empty()) {
41 return fizz::FizzUtil::createTicketCipher<TicketCipher>(
42 oldSecrets,
"", newSecrets, validity,
std::move(pskContext));
44 return fizz::FizzUtil::createTicketCipher<TicketCipher>(
constexpr detail::Map< Move > move
The documentation for this class was generated from the following files: