proxygen
|
Classes | |
class | EventHandler |
class | EventHandlerBase |
struct | Or |
struct | Or< Condition, Conditions... > |
class | StateMachine |
struct | StateSame |
struct | StateSame< SM, s, s > |
|
static |
Definition at line 311 of file ServerProtocol.cpp.
References fizz::ClientHello::cipher_suites, fizz::server::HandshakeLogging::clientCiphers, fizz::server::HandshakeLogging::clientExtensions, fizz::server::HandshakeLogging::clientKeyExchangeModes, fizz::server::HandshakeLogging::clientKeyShares, fizz::server::HandshakeLogging::clientLegacyVersion, fizz::server::HandshakeLogging::clientRandom, fizz::server::HandshakeLogging::clientRecordVersion, fizz::server::HandshakeLogging::clientSessionIdSent, fizz::server::HandshakeLogging::clientSignatureAlgorithms, fizz::server::HandshakeLogging::clientSni, fizz::server::HandshakeLogging::clientSupportedGroups, fizz::server::HandshakeLogging::clientSupportedVersions, fizz::ClientHello::extensions, fizz::server::State::handshakeLogging(), fizz::ClientHello::legacy_session_id, fizz::ClientHello::legacy_version, folly::gen::move, fizz::ClientHello::random, fizz::server::State::readRecordLayer(), and sni.
Referenced by getCertificateRequest().
|
static |
Definition at line 891 of file ServerProtocol.cpp.
References fizz::ClientHello::extensions, fizz::server::FizzServerContext::getCert(), fizz::handshake_failure, fizz::missing_extension, and sni.
Referenced by getCertificateRequest().
|
static |
Definition at line 659 of file ServerProtocol.cpp.
References fizz::KeyScheduler::deriveHandshakeSecret(), and fizz::Factory::makeKeyExchange().
Referenced by getCertificateRequest().
|
static |
Returns the encoded client hello after updating the binder.
Will derive the early secret on the key scheduler and append the client hello to the handshake context.
Definition at line 452 of file ClientProtocol.cpp.
References folly::IOBufQueue::append(), fizz::HandshakeContext::appendToTranscript(), fizz::PskBinder::binder, folly::IOBufQueue::cacheChainLength(), folly::IOBufQueue::chainLength(), fizz::KeyScheduler::deriveEarlySecret(), fizz::encodeExtension(), fizz::encodeHandshake(), fizz::ClientHello::extensions, fizz::External, fizz::ExternalPskBinder, fizz::getBinderLength(), fizz::HandshakeContext::getBlankContext(), fizz::HandshakeContext::getFinishedData(), getPskExtension(), fizz::KeyScheduler::getSecret(), folly::IOBufQueue::move(), folly::gen::move, folly::range(), fizz::ResumptionPskBinder, fizz::client::CachedPsk::secret, folly::IOBufQueue::split(), and fizz::client::CachedPsk::type.
Referenced by getEarlyDataParams(), and getHrrKeyExchangers().
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::Uninitialized | , | ||
Event::Connect | , | ||
StateEnum::ExpectingServerHello | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingServerHello | , | ||
Event::HelloRetryRequest | , | ||
StateEnum::ExpectingServerHello | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::Uninitialized | , | ||
Event::Accept | , | ||
StateEnum::ExpectingClientHello | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingServerHello | , | ||
Event::ServerHello | , | ||
StateEnum::ExpectingEncryptedExtensions | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::ExpectingClientHello | , | ||
Event::ClientHello | , | ||
StateEnum::ExpectingClientHello | , | ||
StateEnum::ExpectingCertificate | , | ||
StateEnum::ExpectingFinished | , | ||
StateEnum::AcceptingEarlyData | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingServerHello | , | ||
Event::EarlyAppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingEncryptedExtensions | , | ||
Event::EncryptedExtensions | , | ||
StateEnum::ExpectingCertificate | , | ||
StateEnum::ExpectingFinished | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::AcceptingEarlyData | , | ||
Event::AppData | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::AcceptingEarlyData | , | ||
Event::AppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingEncryptedExtensions | , | ||
Event::EarlyAppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::AcceptingEarlyData | , | ||
Event::EndOfEarlyData | , | ||
StateEnum::ExpectingFinished | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingCertificate | , | ||
Event::CertificateRequest | , | ||
StateEnum::ExpectingCertificate | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingCertificate | , | ||
Event::Certificate | , | ||
StateEnum::ExpectingCertificateVerify | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::ExpectingCertificate | , | ||
Event::Certificate | , | ||
StateEnum::ExpectingCertificateVerify | , | ||
StateEnum::ExpectingFinished | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingCertificate | , | ||
Event::CompressedCertificate | , | ||
StateEnum::ExpectingCertificateVerify | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingCertificate | , | ||
Event::EarlyAppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::ExpectingFinished | , | ||
Event::AppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingCertificateVerify | , | ||
Event::CertificateVerify | , | ||
StateEnum::ExpectingFinished | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::ExpectingFinished | , | ||
Event::Finished | , | ||
StateEnum::AcceptingData | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingCertificateVerify | , | ||
Event::EarlyAppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::AcceptingData | , | ||
Event::WriteNewSessionTicket | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingFinished | , | ||
Event::Finished | , | ||
StateEnum::Established | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::AcceptingData | , | ||
Event::AppData | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::ExpectingFinished | , | ||
Event::EarlyAppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::AcceptingData | , | ||
Event::AppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::Established | , | ||
Event::EarlyAppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ServerTypes | , |
StateEnum::AcceptingData | , | ||
Event::KeyUpdate | , | ||
StateEnum::AcceptingData | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::Established | , | ||
Event::NewSessionTicket | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::Established | , | ||
Event::AppData | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::Established | , | ||
Event::AppWrite | , | ||
StateEnum::Error | |||
) |
fizz::sm::FIZZ_DECLARE_EVENT_HANDLER | ( | ClientTypes | , |
StateEnum::Established | , | ||
Event::KeyUpdate | , | ||
StateEnum::Error | |||
) |
|
static |
Definition at line 1641 of file ServerProtocol.cpp.
References fizz::server::AcceptingData, fizz::server::detail::actions(), fizz::server::ResumptionState::alpn, fizz::server::State::alpn(), fizz::server::ResumptionState::appToken, fizz::AppTraffic, fizz::test::appWrite(), fizz::bad_certificate, fizz::AppWrite::callback, fizz::certificate_required, fizz::CertificateVerify, fizz::server::ResumptionState::cipher, fizz::server::State::cipher(), fizz::KeyScheduler::clearMasterSecret(), fizz::Client, fizz::ClientAppTraffic, fizz::server::ResumptionState::clientCert, fizz::server::State::clientCert(), fizz::server::State::clientHandshakeSecret(), fizz::KeyScheduler::clientKeyUpdate(), fizz::WriteToSocket::contents, fizz::server::State::context(), folly::IOBuf::copyBuffer(), folly::IOBuf::create(), fizz::AppWrite::data, fizz::CryptoUtils::equal(), fizz::server::State::executor(), fizz::server::ExpectingCertificateVerify, fizz::finished, fizz::AppWrite::flags, fizz::server::FizzServerContext::getClientAuthMode(), fizz::server::FizzServerContext::getClientCertVerifier(), fizz::server::FizzServerContext::getFactory(), fizz::Protocol::getKeyUpdated(), fizz::getRealDraftVersion(), fizz::KeyScheduler::getResumptionSecret(), fizz::KeyScheduler::getSecret(), fizz::server::FizzServerContext::getSendNewSessionTicket(), fizz::server::FizzServerContext::getSupportedSigSchemes(), fizz::server::FizzServerContext::getTicketCipher(), fizz::handshake_failure, fizz::server::State::handshakeContext(), fizz::ReadRecordLayer::hasUnparsedHandshakeData(), fizz::illegal_parameter, fizz::server::State::keyScheduler(), fizz::Factory::makeEncryptedReadRecordLayer(), fizz::Factory::makeEncryptedWriteRecordLayer(), fizz::Factory::makePeerCert(), fizz::Factory::makeTicketAgeAdd(), folly::gen::move, folly::none, fizz::NotSupported, now(), fizz::server::Optional, fizz::server::State::pskType(), folly::range(), fizz::server::State::readRecordLayer(), fizz::ResumptionMaster, fizz::server::State::resumptionMasterSecret(), fizz::server::ResumptionState::resumptionSecret, fizz::ServerAppTraffic, fizz::server::ResumptionState::serverCert, fizz::server::State::serverCert(), fizz::KeyScheduler::serverKeyUpdate(), fizz::Protocol::setAead(), ticket, fizz::server::ResumptionState::ticketAgeAdd, fizz::server::ResumptionState::ticketIssueTime, fizz::tls_1_3_20, fizz::toString(), fizz::server::State::unverifiedCertChain(), fizz::update_not_requested, fizz::server::ResumptionState::version, fizz::server::State::version(), fizz::detail::write(), fizz::WriteRecordLayer::writeAppData(), fizz::WriteRecordLayer::writeHandshake(), fizz::WriteNewSessionTicket, writeNewSessionTicket(), and fizz::server::State::writeRecordLayer().
|
static |
Definition at line 689 of file ClientProtocol.cpp.
References fizz::handshake_failure, fizz::illegal_parameter, fizz::protocol_version, fizz::tls_1_2, and fizz::toString().
Referenced by negotiateParameters().
|
static |
Definition at line 917 of file ServerProtocol.cpp.
References fizz::HandshakeContext::appendToTranscript(), encodedCertificate, fizz::encodeHandshake(), fizz::ClientHello::extensions, fizz::server::FizzServerContext::getSupportedCompressionAlgorithms(), std::tr1::make_tuple(), folly::gen::move, and fizz::server::negotiate().
Referenced by getCertificateRequest().
|
static |
Definition at line 953 of file ServerProtocol.cpp.
References fizz::Accepted, fizz::server::AcceptingEarlyData, fizz::server::detail::actions(), addHandshakeLogging(), alpn, folly::IOBufQueue::append(), fizz::HandshakeContext::appendToTranscript(), fizz::server::State::appTokenValidator(), fizz::AppTraffic, fizz::test::appWrite(), fizz::AppWrite::callback, fizz::change_cipher_spec, chlo, chooseCert(), fizz::server::State::cipher(), cipher, clientCert, fizz::ClientEarlyTraffic, fizz::ClientHandshakeTraffic, fizz::server::AttemptVersionFallback::clientHello, folly::fibers::collectAll(), fizz::WriteToSocket::contents, fizz::TLSContent::contentType, fizz::server::State::context(), folly::IOBuf::copyBuffer(), fizz::TLSContent::data, fizz::AppWrite::data, doKex(), fizz::EarlyData, fizz::server::State::earlyDataType(), fizz::EarlyExporter, fizz::server::State::earlyExporterMasterSecret(), folly::IOBufQueue::empty(), encodedCertificate, encodedCertRequest, fizz::encodeExtension(), fizz::encodeHandshake(), fizz::TLSContent::encryptionLevel, fizz::EndOfEarlyData, fizz::server::State::executor(), fizz::ExporterMaster, fizz::server::State::extensions(), fizz::CertificateRequest::extensions, fizz::FakeChangeCipherSpec, fizz::AppWrite::flags, fizz::server::FizzServerContext::getAcceptEarlyData(), getCertificate(), fizz::CertificateVerifier::getCertificateRequestExtensions(), getCertificateVerify(), fizz::server::FizzServerContext::getClientAuthMode(), fizz::server::FizzServerContext::getClientCertVerifier(), getClockSkew(), fizz::server::FizzServerContext::getClockSkewTolerance(), fizz::server::FizzServerContext::getCookieCipher(), fizz::server::getCookieState(), getEncryptedExt(), fizz::ServerExtensions::getExtensions(), fizz::server::FizzServerContext::getFactory(), fizz::Protocol::getFinished(), getHelloRetryRequest(), fizz::getRealDraftVersion(), fizz::server::FizzServerContext::getReplayCache(), getReplayCacheResult(), getResumptionState(), getServerHello(), fizz::server::FizzServerContext::getSupportedCiphers(), fizz::server::FizzServerContext::getSupportedGroups(), fizz::server::FizzServerContext::getSupportedPskModes(), fizz::server::FizzServerContext::getSupportedSigSchemes(), fizz::server::FizzServerContext::getSupportedVersions(), fizz::server::FizzServerContext::getTicketCipher(), fizz::server::FizzServerContext::getVersionFallbackEnabled(), fizz::server::State::group(), group, fizz::Handshake, fizz::server::State::handshakeContext(), fizz::server::State::handshakeReadRecordLayer(), fizz::message_hash::hash, fizz::ReadRecordLayer::hasUnparsedHandshakeData(), folly::Optional< Value >::hasValue(), fizz::HelloRetryRequest, fizz::illegal_parameter, fizz::server::State::keyExchangeType(), fizz::Factory::makeEncryptedReadRecordLayer(), fizz::Factory::makeEncryptedWriteRecordLayer(), fizz::Factory::makeHandshakeContext(), fizz::Factory::makePlaintextReadRecordLayer(), fizz::Factory::makeRandom(), folly::IOBufQueue::move(), folly::gen::move, negotiateAlpn(), negotiateCipher(), negotiateEarlyDataType(), negotiateGroup(), negotiateVersion(), fizz::None, fizz::server::None, folly::none, obfuscatedAge, fizz::OneRtt, fizz::Plaintext, fizz::protocol_version, fizz::psk_ke, pskMode, folly::range(), fizz::server::State::readRecordLayer(), fizz::Rejected, fizz::server::State::replayCacheResult(), scheduler, fizz::Server, fizz::ServerAppTraffic, serverCert, fizz::ServerHandshakeTraffic, fizz::Protocol::setAead(), fizz::WriteRecordLayer::setProtocolVersion(), setupSchedulerAndContext(), folly::sig, folly::IOBufQueue::splitAtMost(), fizz::SignatureAlgorithms::supported_signature_algorithms, fizz::tls_1_3_20, fizz::tls_1_3_21, fizz::toString(), fizz::unexpected_message, validateClientHello(), validateResumptionState(), fizz::server::State::version(), version, folly::Future< T >::via(), folly::IOBuf::wrapBuffer(), fizz::detail::write(), fizz::WriteRecordLayer::writeAppData(), fizz::WriteRecordLayer::writeHandshake(), fizz::PlaintextWriteRecordLayer::writeInitialClientHello(), and fizz::server::State::writeRecordLayer().
|
static |
Definition at line 941 of file ServerProtocol.cpp.
References fizz::CertificateVerify::algorithm, fizz::HandshakeContext::appendToTranscript(), fizz::encodeHandshake(), folly::gen::move, fizz::CertificateVerify::signature, and verify().
Referenced by getCertificateRequest().
|
static |
Definition at line 1278 of file ClientProtocol.cpp.
References fizz::client::detail::actions(), fizz::CertificateRequest, fizz::client::State::clientAuthRequested(), clientCert, fizz::client::State::context(), fizz::client::ExpectingCertificate, fizz::client::FizzClientContext::getClientCertificate(), fizz::client::FizzClientContext::getSupportedSigSchemes(), fizz::client::State::handshakeContext(), fizz::illegal_parameter, std::tr1::make_tuple(), folly::gen::move, fizz::client::RequestedNoMatch, fizz::client::Sent, and fizz::unexpected_message.
|
static |
Definition at line 333 of file ClientProtocol.cpp.
References fizz::CertificateCompressionAlgorithms::algorithms, alpn, chlo, fizz::ClientHello::cipher_suites, fizz::ClientKeyShare::client_shares, cookie, fizz::Cookie::cookie, folly::IOBuf::copyBuffer(), fizz::encodeExtension(), fizz::ClientHello::extensions, fizz::ClientExtensions::getClientHelloExtensions(), fizz::KeyShareEntry::group, fizz::ServerName::hostname, fizz::KeyShareEntry::key_exchange, fizz::ClientHello::legacy_compression_methods, fizz::ClientHello::legacy_session_id, fizz::ClientHello::legacy_version, fizz::PskKeyExchangeModes::modes, folly::gen::move, fizz::ProtocolName::name, fizz::SupportedGroups::named_group_list, fizz::ProtocolNameList::protocol_name_list, random(), fizz::ClientHello::random, fizz::ServerNameList::server_name_list, folly::pushmi::operators::share, sni, fizz::SignatureAlgorithms::supported_signature_algorithms, fizz::tls_1_2, and fizz::SupportedVersions::versions.
Referenced by getEarlyDataParams(), getHrrKeyExchangers(), and fizz::server::test::TEST_F().
|
static |
Definition at line 778 of file ServerProtocol.cpp.
References folly::none, now(), fizz::server::ResumptionState::ticketAgeAdd, and fizz::server::ResumptionState::ticketIssueTime.
Referenced by getCertificateRequest().
|
static |
Definition at line 394 of file ServerProtocol.cpp.
References fizz::server::CookieCipher::decrypt(), fizz::decrypt_error, fizz::ClientHello::extensions, futureResState, fizz::handshake_failure, folly::gen::move, folly::none, obfuscatedAge, fizz::protocol_version, pskMode, and fizz::unsupported_extension.
|
static |
Definition at line 498 of file ClientProtocol.cpp.
References fizz::client::detail::actions(), fizz::client::CachedPsk::alpn, fizz::client::EarlyDataParams::alpn, fizz::Attempted, chlo, fizz::client::CachedPsk::cipher, fizz::client::EarlyDataParams::cipher, fizz::client::CachedPsk::clientCert, fizz::client::EarlyDataParams::clientCert, fizz::ClientEarlyTraffic, folly::netops::connect(), fizz::WriteToSocket::contents, context, folly::IOBuf::copyBuffer(), folly::IOBuf::create(), fizz::EarlyData, fizz::client::State::earlyDataParams(), fizz::EarlyExporter, fizz::client::State::earlyWriteRecordLayer(), encodeAndAddBinders(), fizz::encodeHandshake(), getClientHello(), getKeyExchangers(), fizz::client::FizzClientContext::getSendEarlyData(), fizz::client::FizzClientContext::getSupportedAlpns(), fizz::client::CachedPsk::group, fizz::client::CachedPsk::maxEarlyDataSize, fizz::client::ReportEarlyHandshakeSuccess::maxEarlyDataSize, folly::gen::move, folly::none, fizz::NotAttempted, params, fizz::pre_shared_key, random(), folly::range(), fizz::client::CachedPsk::serverCert, fizz::client::EarlyDataParams::serverCert, fizz::Protocol::setAead(), sni, validatePsk(), fizz::client::CachedPsk::version, fizz::client::EarlyDataParams::version, and fizz::detail::write().
Referenced by fizz::client::test::ClientProtocolTest::setupExpectingEncryptedExtensionsEarlySent(), and fizz::client::test::TEST_F().
|
static |
Definition at line 864 of file ServerProtocol.cpp.
References fizz::Accepted, alpn, fizz::HandshakeContext::appendToTranscript(), folly::IOBuf::copyBuffer(), fizz::encodeExtension(), fizz::EncryptedExtensions::extensions, folly::gen::move, fizz::ProtocolName::name, and fizz::ProtocolNameList::protocol_name_list.
Referenced by getCertificateRequest().
|
static |
Definition at line 671 of file ServerProtocol.cpp.
References fizz::HandshakeContext::appendToTranscript(), cipher, fizz::HelloRetryRequest::cipher_suite, fizz::encodeExtension(), fizz::encodeHandshake(), fizz::HelloRetryRequest::extensions, fizz::getRealDraftVersion(), group, fizz::HelloRetryRequest::legacy_session_id_echo, fizz::HelloRetryRequest::legacy_version, folly::gen::move, fizz::HelloRetryRequestKeyShare::preDraft23, fizz::HelloRetryRequestKeyShare::selected_group, fizz::ServerSupportedVersions::selected_version, fizz::tls_1_2, fizz::tls_1_3_20, fizz::tls_1_3_21, fizz::tls_1_3_22, and version.
Referenced by getCertificateRequest().
|
static |
Definition at line 1036 of file ClientProtocol.cpp.
References fizz::client::detail::actions(), fizz::Attempted, fizz::client::State::attemptedPsk(), fizz::change_cipher_spec, fizz::Protocol::checkAllowedExtensions(), chlo, fizz::client::State::cipher(), cipher, fizz::client::State::clientRandom(), fizz::WriteToSocket::contents, fizz::TLSContent::contentType, fizz::client::State::context(), cookie, fizz::TLSContent::data, fizz::client::State::earlyDataType(), fizz::client::State::earlyWriteRecordLayer(), encodeAndAddBinders(), fizz::client::State::encodedClientHello(), fizz::encodeHandshake(), fizz::TLSContent::encryptionLevel, fizz::client::ExpectingServerHello, fizz::client::State::extensions(), fizz::FakeChangeCipherSpec, getClientHello(), fizz::client::FizzClientContext::getCompatibilityMode(), fizz::client::FizzClientContext::getFactory(), fizz::getHashFunction(), getKeyExchangers(), fizz::client::FizzClientContext::getSupportedAlpns(), fizz::client::FizzClientContext::getSupportedCertDecompressionAlgorithms(), fizz::client::FizzClientContext::getSupportedCiphers(), fizz::client::FizzClientContext::getSupportedGroups(), fizz::client::FizzClientContext::getSupportedPskModes(), fizz::client::FizzClientContext::getSupportedSigSchemes(), fizz::client::FizzClientContext::getSupportedVersions(), group, fizz::client::State::handshakeContext(), fizz::message_hash::hash, folly::Optional< Value >::hasValue(), fizz::HelloRetryRequest, fizz::illegal_parameter, fizz::client::State::keyExchangers(), fizz::client::State::keyExchangeType(), fizz::client::State::legacySessionId(), fizz::Factory::makeHandshakeContext(), fizz::Factory::makeKeyScheduler(), folly::gen::move, negotiateParameters(), folly::none, fizz::Plaintext, fizz::pre_shared_key, fizz::Rejected, fizz::client::State::requestedExtensions(), fizz::client::State::sentCCS(), fizz::client::State::sni(), fizz::unexpected_message, fizz::client::State::version(), version, folly::IOBuf::wrapBuffer(), fizz::WriteRecordLayer::writeHandshake(), and fizz::client::State::writeRecordLayer().
|
static |
Definition at line 321 of file ClientProtocol.cpp.
References group, fizz::Factory::makeKeyExchange(), and folly::gen::move.
Referenced by getEarlyDataParams(), and getHrrKeyExchangers().
|
static |
Definition at line 1661 of file ClientProtocol.cpp.
References fizz::client::detail::actions(), fizz::client::CachedPsk::alpn, fizz::client::State::alpn(), fizz::AppTraffic, fizz::test::appWrite(), fizz::AppWrite::callback, fizz::client::CachedPsk::cipher, fizz::client::State::cipher(), fizz::ClientAppTraffic, fizz::client::CachedPsk::clientCert, fizz::client::State::clientCert(), fizz::KeyScheduler::clientKeyUpdate(), fizz::WriteToSocket::contents, fizz::client::State::context(), fizz::AppWrite::data, fizz::NewSessionTicket::extensions, fizz::AppWrite::flags, fizz::client::FizzClientContext::getFactory(), fizz::Protocol::getKeyUpdated(), fizz::KeyScheduler::getResumptionSecret(), fizz::KeyScheduler::getSecret(), fizz::client::CachedPsk::group, fizz::client::State::group(), fizz::ReadRecordLayer::hasUnparsedHandshakeData(), fizz::client::State::keyScheduler(), fizz::Factory::makeEncryptedReadRecordLayer(), fizz::Factory::makeEncryptedWriteRecordLayer(), fizz::client::CachedPsk::maxEarlyDataSize, folly::gen::move, now(), nst, fizz::client::CachedPsk::psk, fizz::client::NewCachedPsk::psk, folly::range(), fizz::client::State::readRecordLayer(), fizz::Resumption, fizz::client::State::resumptionSecret(), fizz::client::CachedPsk::secret, fizz::ServerAppTraffic, fizz::client::CachedPsk::serverCert, fizz::client::State::serverCert(), fizz::KeyScheduler::serverKeyUpdate(), fizz::Protocol::setAead(), string, fizz::client::CachedPsk::ticketAgeAdd, fizz::client::CachedPsk::ticketExpirationTime, fizz::client::CachedPsk::ticketIssueTime, fizz::client::CachedPsk::type, fizz::unexpected_message, fizz::update_not_requested, fizz::client::CachedPsk::version, fizz::client::State::version(), fizz::detail::write(), fizz::WriteRecordLayer::writeAppData(), fizz::WriteRecordLayer::writeHandshake(), and fizz::client::State::writeRecordLayer().
|
static |
Definition at line 427 of file ClientProtocol.cpp.
References fizz::PskBinder::binder, fizz::ClientPresharedKey::binders, fizz::client::CachedPsk::cipher, folly::IOBuf::copyBuffer(), count, folly::IOBuf::create(), fizz::getHashFunction(), fizz::getHashSize(), fizz::ClientPresharedKey::identities, folly::gen::move, now(), fizz::PskIdentity::obfuscated_ticket_age, fizz::client::CachedPsk::psk, fizz::PskIdentity::psk_identity, fizz::client::CachedPsk::ticketAgeAdd, and fizz::client::CachedPsk::ticketIssueTime.
Referenced by encodeAndAddBinders().
Future<ReplayCacheResult> fizz::sm::getReplayCacheResult | ( | const ClientHello & | chlo, |
bool | zeroRttEnabled, | ||
ReplayCache * | replayCache | ||
) |
Definition at line 484 of file ServerProtocol.cpp.
References fizz::server::ReplayCache::check(), fizz::ClientHello::extensions, fizz::server::NotChecked, fizz::ClientHello::random, and folly::range().
Referenced by getCertificateRequest().
|
static |
Definition at line 447 of file ServerProtocol.cpp.
References fizz::server::TicketCipher::decrypt(), fizz::ClientHello::extensions, kPskIndex, fizz::missing_extension, fizz::server::negotiate(), folly::none, fizz::NotAttempted, fizz::NotSupported, pskMode, and fizz::Rejected.
Referenced by getCertificateRequest().
|
static |
Definition at line 707 of file ServerProtocol.cpp.
References fizz::HandshakeContext::appendToTranscript(), cipher, fizz::ServerHello::cipher_suite, fizz::encodeExtension(), fizz::encodeHandshake(), fizz::ServerHello::extensions, fizz::getRealDraftVersion(), fizz::KeyShareEntry::group, group, fizz::KeyShareEntry::key_exchange, kPskIndex, fizz::ServerHello::legacy_session_id_echo, fizz::ServerHello::legacy_version, folly::gen::move, fizz::ServerKeyShare::preDraft23, fizz::ServerHello::random, fizz::ServerPresharedKey::selected_identity, fizz::ServerSupportedVersions::selected_version, fizz::ServerKeyShare::server_share, fizz::tls_1_2, fizz::tls_1_3_20, fizz::tls_1_3_21, fizz::tls_1_3_22, and version.
Referenced by getCertificateRequest().
|
static |
Definition at line 1353 of file ClientProtocol.cpp.
References fizz::Accepted, fizz::client::detail::actions(), fizz::CertificateVerify::algorithm, fizz::AppTraffic, fizz::bad_certificate, fizz::bad_record_mac, fizz::CertificateMsg::certificate_list, fizz::CertificateMsg::certificate_request_context, fizz::CertificateVerify, fizz::change_cipher_spec, fizz::client::State::cipher(), fizz::KeyScheduler::clearMasterSecret(), fizz::Client, fizz::ClientAppTraffic, fizz::client::State::clientAuthRequested(), fizz::client::State::clientAuthSigScheme(), fizz::client::State::clientCert(), clientCert, fizz::client::State::clientHandshakeSecret(), fizz::CompressedCertificate, fizz::TLSContent::contentType, fizz::client::State::context(), folly::IOBuf::copyBuffer(), fizz::TLSContent::data, fizz::KeyScheduler::deriveAppTrafficSecrets(), fizz::KeyScheduler::deriveMasterSecret(), fizz::client::ReportHandshakeSuccess::earlyDataAccepted, fizz::client::State::earlyDataType(), fizz::client::State::earlyWriteRecordLayer(), encodedCertVerify, fizz::encodeHandshake(), fizz::TLSContent::encryptionLevel, fizz::CryptoUtils::equal(), fizz::client::ExpectingCertificate, fizz::client::ExpectingCertificateVerify, fizz::ExporterMaster, fizz::client::State::exporterMasterSecret(), fizz::FakeChangeCipherSpec, fizz::finished, fizz::client::FizzClientContext::getCertDecompressorForAlgorithm(), fizz::client::FizzClientContext::getCompatibilityMode(), fizz::client::FizzClientContext::getFactory(), fizz::Protocol::getFinished(), fizz::KeyScheduler::getSecret(), fizz::client::FizzClientContext::getSupportedCertDecompressionAlgorithms(), fizz::client::FizzClientContext::getSupportedSigSchemes(), fizz::client::State::handshakeContext(), fizz::ReadRecordLayer::hasUnparsedHandshakeData(), fizz::illegal_parameter, fizz::client::State::keyScheduler(), fizz::Factory::makeEncryptedReadRecordLayer(), fizz::Factory::makeEncryptedWriteRecordLayer(), fizz::Factory::makePeerCert(), folly::gen::move, folly::none, fizz::client::NotRequested, fizz::Plaintext, folly::range(), fizz::client::State::readRecordLayer(), fizz::client::RequestedNoMatch, fizz::ResumptionMaster, fizz::client::State::resumptionSecret(), fizz::client::State::selectedClientCert(), fizz::client::Sent, fizz::client::State::sentCCS(), fizz::Server, fizz::ServerAppTraffic, serverCert, fizz::client::State::serverHandshakeSecret(), fizz::Protocol::setAead(), fizz::CertificateVerify::signature, fizz::client::Stored, fizz::toString(), fizz::unexpected_message, fizz::client::State::unverifiedCertChain(), folly::Optional< Value >::value_or(), fizz::client::State::verifier(), fizz::CertificateVerifier::verify(), verify(), fizz::client::State::version(), folly::IOBuf::wrapBuffer(), fizz::WriteRecordLayer::writeHandshake(), and fizz::client::State::writeRecordLayer().
|
static |
Definition at line 1801 of file ClientProtocol.cpp.
References fizz::Accepted, fizz::client::detail::actions(), fizz::test::appWrite(), fizz::Attempted, fizz::WriteToSocket::callback, fizz::EarlyAppWrite::callback, fizz::AppWrite::callback, fizz::change_cipher_spec, fizz::WriteToSocket::contents, fizz::TLSContent::contentType, fizz::client::State::context(), fizz::TLSContent::data, fizz::EarlyAppWrite::data, fizz::AppWrite::data, fizz::EarlyAppWrite, fizz::client::State::earlyDataType(), fizz::client::State::earlyWriteRecordLayer(), fizz::TLSContent::encryptionLevel, fizz::client::ExpectingCertificate, fizz::client::ExpectingCertificateVerify, fizz::client::ExpectingEncryptedExtensions, fizz::client::ExpectingServerHello, fizz::FakeChangeCipherSpec, fizz::WriteToSocket::flags, fizz::EarlyAppWrite::flags, fizz::AppWrite::flags, fizz::client::FizzClientContext::getCompatibilityMode(), ignoreEarlyAppWrite(), folly::gen::move, folly::none, fizz::NotAttempted, fizz::Plaintext, fizz::Rejected, fizz::client::State::sentCCS(), folly::IOBuf::wrapBuffer(), fizz::detail::write(), fizz::WriteRecordLayer::writeAppData(), and fizz::client::State::writeRecordLayer().
|
static |
Definition at line 1791 of file ClientProtocol.cpp.
References fizz::client::detail::actions(), fizz::client::State::earlyDataType(), folly::gen::move, folly::none, fizz::Rejected, and fizz::client::ReportEarlyWriteFailed::write.
Referenced by handleEarlyAppWrite().
|
static |
Definition at line 756 of file ServerProtocol.cpp.
References fizz::ClientHello::extensions, and fizz::server::FizzServerContext::negotiateAlpn().
Referenced by getCertificateRequest().
|
static |
Definition at line 514 of file ServerProtocol.cpp.
References cipher, fizz::ClientHello::cipher_suites, fizz::handshake_failure, and fizz::server::negotiate().
Referenced by getCertificateRequest().
|
static |
Definition at line 794 of file ServerProtocol.cpp.
References fizz::Accepted, fizz::server::ClockSkewTolerance::after, fizz::server::ResumptionState::alpn, fizz::server::ClockSkewTolerance::before, fizz::server::ResumptionState::cipher, fizz::ClientHello::extensions, fizz::HelloRetryRequest, fizz::NotAttempted, fizz::server::NotReplay, fizz::Rejected, and fizz::server::AppTokenValidator::validate().
Referenced by getCertificateRequest().
|
static |
Definition at line 617 of file ServerProtocol.cpp.
References fizz::ClientHello::extensions, fizz::getRealDraftVersion(), group, fizz::handshake_failure, fizz::illegal_parameter, std::tr1::make_tuple(), fizz::missing_extension, fizz::server::negotiate(), folly::none, folly::pushmi::operators::share, fizz::tls_1_3_20, fizz::tls_1_3_21, fizz::tls_1_3_22, and validateGroups().
Referenced by getCertificateRequest().
|
static |
Definition at line 733 of file ClientProtocol.cpp.
References cipher, folly::exchange(), fizz::ServerHello::extensions, getAndValidateVersionAndCipher(), fizz::handshake_failure, std::tr1::make_tuple(), folly::gen::move, and version.
|
static |
Definition at line 1011 of file ClientProtocol.cpp.
References fizz::HelloRetryRequest::extensions, getAndValidateVersionAndCipher(), and fizz::handshake_failure.
Referenced by getHrrKeyExchangers(), and negotiatePsk().
|
static |
Definition at line 794 of file ClientProtocol.cpp.
References fizz::client::detail::actions(), fizz::client::State::attemptedPsk(), fizz::Protocol::checkAllowedExtensions(), fizz::client::CachedPsk::cipher, cipher, fizz::client::CachedPsk::clientCert, clientCert, fizz::ClientHandshakeTraffic, fizz::client::State::context(), folly::IOBuf::copyBuffer(), fizz::client::State::encodedClientHello(), folly::exchange(), fizz::ServerHello::extensions, fizz::KeyExchange::generateSharedSecret(), fizz::client::FizzClientContext::getFactory(), fizz::getHashFunction(), fizz::client::FizzClientContext::getSupportedCiphers(), fizz::client::FizzClientContext::getSupportedPskModes(), fizz::client::FizzClientContext::getSupportedVersions(), group, fizz::Handshake, fizz::handshake_failure, fizz::client::State::handshakeContext(), fizz::ReadRecordLayer::hasUnparsedHandshakeData(), folly::Optional< Value >::hasValue(), fizz::illegal_parameter, fizz::client::State::keyExchangers(), fizz::client::State::keyExchangeType(), fizz::client::State::legacySessionId(), fizz::Factory::makeEncryptedReadRecordLayer(), fizz::Factory::makeEncryptedWriteRecordLayer(), fizz::Factory::makeHandshakeContext(), fizz::Factory::makeKeyScheduler(), mode, folly::gen::move, negotiateParameters(), fizz::None, fizz::NotAttempted, fizz::client::NotRequested, fizz::NotSupported, fizz::OneRtt, fizz::psk_dhe_ke, fizz::psk_ke, pskMode, folly::range(), fizz::client::State::readRecordLayer(), fizz::Rejected, fizz::client::State::requestedExtensions(), scheduler, fizz::client::CachedPsk::serverCert, serverCert, fizz::ServerHandshakeTraffic, fizz::Protocol::setAead(), fizz::client::Stored, fizz::client::CachedPsk::type, fizz::unexpected_message, validateNegotiationConsistency(), fizz::client::CachedPsk::version, and version.
|
static |
Definition at line 380 of file ServerProtocol.cpp.
References fizz::ClientHello::extensions, fizz::server::negotiate(), folly::none, and version.
Referenced by getCertificateRequest().
|
static |
Definition at line 536 of file ServerProtocol.cpp.
References folly::IOBufQueue::append(), fizz::bad_record_mac, folly::IOBufQueue::cacheChainLength(), folly::IOBufQueue::chainLength(), fizz::server::CookieState::chloHash, fizz::server::CookieState::cipher, cookie, fizz::encodeHandshake(), fizz::CryptoUtils::equal(), fizz::ClientHello::extensions, fizz::External, fizz::ExternalPskBinder, fizz::getBinderLength(), fizz::server::getStatelessHelloRetryRequest(), fizz::server::CookieState::group, fizz::message_hash::hash, fizz::illegal_parameter, kPskIndex, fizz::Factory::makeHandshakeContext(), fizz::Factory::makeKeyScheduler(), folly::IOBufQueue::move(), folly::gen::move, fizz::HandshakeStruct< e, t >::originalEncoding, folly::range(), fizz::ResumptionPskBinder, fizz::server::ResumptionState::resumptionSecret, scheduler, folly::IOBufQueue::split(), and fizz::server::CookieState::version.
Referenced by getCertificateRequest().
|
static |
Definition at line 1179 of file ClientProtocol.cpp.
References fizz::Accepted, fizz::client::detail::actions(), alpn, fizz::Attempted, fizz::client::State::attemptedPsk(), fizz::Protocol::checkAllowedExtensions(), fizz::client::State::cipher(), fizz::client::State::context(), fizz::client::State::earlyDataParams(), fizz::client::State::earlyDataType(), fizz::client::State::earlyWriteRecordLayer(), fizz::EncryptedExtensions, fizz::client::ExpectingEncryptedExtensions, fizz::client::State::extensions(), fizz::client::FizzClientContext::getSupportedAlpns(), fizz::client::State::handshakeContext(), fizz::illegal_parameter, folly::gen::move, folly::none, fizz::ClientExtensions::onEncryptedExtensions(), params, fizz::client::State::pskType(), fizz::Rejected, fizz::client::State::requestedExtensions(), and fizz::client::State::serverCert().
|
static |
Definition at line 370 of file ServerProtocol.cpp.
References fizz::Protocol::checkDuplicateExtensions(), fizz::ClientHello::extensions, fizz::illegal_parameter, and fizz::ClientHello::legacy_compression_methods.
Referenced by getCertificateRequest().
|
static |
Definition at line 604 of file ServerProtocol.cpp.
References fizz::illegal_parameter, and folly::pushmi::operators::share.
Referenced by negotiateGroup().
|
static |
Definition at line 761 of file ClientProtocol.cpp.
References fizz::client::State::cipher(), cipher, fizz::handshake_failure, fizz::client::State::version(), and version.
Referenced by negotiatePsk().
|
static |
Definition at line 290 of file ClientProtocol.cpp.
References fizz::client::CachedPsk::cipher, fizz::client::FizzClientContext::getSupportedCiphers(), fizz::client::FizzClientContext::getSupportedVersions(), folly::none, now(), fizz::client::CachedPsk::ticketExpirationTime, fizz::toString(), and fizz::client::CachedPsk::version.
Referenced by getEarlyDataParams().
|
static |
Definition at line 496 of file ServerProtocol.cpp.
References fizz::server::ResumptionState::cipher, fizz::getHashFunction(), and fizz::server::ResumptionState::version.
Referenced by getCertificateRequest().
|
static |
Definition at line 1614 of file ServerProtocol.cpp.
References fizz::WriteToSocket::contents, fizz::encodeExtension(), fizz::encodeHandshake(), fizz::NewSessionTicket::extensions, fizz::server::FizzServerContext::getAcceptEarlyData(), fizz::server::FizzServerContext::getMaxEarlyDataSize(), fizz::TicketEarlyData::max_early_data_size, folly::gen::move, nst, fizz::NewSessionTicket::ticket, fizz::NewSessionTicket::ticket_age_add, fizz::NewSessionTicket::ticket_lifetime, fizz::NewSessionTicket::ticket_nonce, and fizz::WriteRecordLayer::writeHandshake().
Referenced by generateTicket().