proxygen
|
#include <TestMessages.h>
Static Public Member Functions | |
template<typename T > | |
static void | removeExtension (T &msg, ExtensionType ext) |
static ClientHello | clientHello () |
static void | addPsk (ClientHello &chlo, uint32_t ticketAge=100000) |
static ClientHello | clientHelloPsk () |
static ClientHello | clientHelloPskEarly () |
static HelloRetryRequest | helloRetryRequest () |
static ServerHello | serverHello () |
static ServerHello | serverHelloPsk () |
static EndOfEarlyData | endOfEarlyData () |
static EncryptedExtensions | encryptedExt () |
static EncryptedExtensions | encryptedExtEarly () |
static CertificateMsg | certificate () |
static CompressedCertificate | compressedCertificate () |
static CertificateVerify | certificateVerify () |
static CertificateRequest | certificateRequest () |
static Finished | finished () |
static NewSessionTicket | newSessionTicket () |
static AppData | appData () |
static AppWrite | appWrite () |
static EarlyAppWrite | earlyAppWrite () |
static KeyUpdate | keyUpdate (bool reqUpdate) |
Definition at line 19 of file TestMessages.h.
|
inlinestatic |
Definition at line 70 of file TestMessages.h.
References fizz::PskBinder::binder, fizz::ClientPresharedKey::binders, folly::IOBuf::copyBuffer(), fizz::encodeExtension(), fizz::ClientHello::extensions, fizz::ClientPresharedKey::identities, folly::gen::move, fizz::PskIdentity::obfuscated_ticket_age, and fizz::PskIdentity::psk_identity.
Referenced by clientHelloPsk(), clientHelloPskEarly(), and fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 212 of file TestMessages.h.
References folly::IOBuf::copyBuffer().
Referenced by fizz::client::test::TEST_F(), and fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 217 of file TestMessages.h.
References folly::IOBuf::copyBuffer(), and fizz::AppWrite::data.
Referenced by earlyAppWrite(), fizz::client::test::TEST_F(), and fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 158 of file TestMessages.h.
References fizz::CertificateMsg::certificate_request_context, folly::IOBuf::copyBuffer(), and fizz::HandshakeStruct< e, t >::originalEncoding.
Referenced by fizz::client::test::ClientProtocolTest::doFinishedFlow(), fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 183 of file TestMessages.h.
References fizz::CertificateRequest::certificate_request_context, folly::IOBuf::copyBuffer(), fizz::ecdsa_secp256r1_sha256, fizz::encodeExtension(), fizz::CertificateRequest::extensions, folly::gen::move, fizz::HandshakeStruct< e, t >::originalEncoding, fizz::rsa_pss_sha256, and fizz::SignatureAlgorithms::supported_signature_algorithms.
Referenced by fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 175 of file TestMessages.h.
References fizz::CertificateVerify::algorithm, folly::IOBuf::copyBuffer(), fizz::ecdsa_secp256r1_sha256, fizz::HandshakeStruct< e, t >::originalEncoding, fizz::CertificateVerify::signature, and verify().
Referenced by fizz::client::test::ClientProtocolTest::doFinishedFlow(), fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 26 of file TestMessages.h.
References alpn, chlo, fizz::ClientHello::cipher_suites, fizz::ClientKeyShare::client_shares, folly::IOBuf::copyBuffer(), folly::IOBuf::create(), fizz::ecdsa_secp256r1_sha256, fizz::encodeExtension(), fizz::ClientHello::extensions, fizz::KeyShareEntry::group, fizz::ServerName::hostname, fizz::KeyShareEntry::key_exchange, fizz::ClientHello::legacy_compression_methods, fizz::ClientHello::legacy_session_id, fizz::PskKeyExchangeModes::modes, folly::gen::move, fizz::ProtocolName::name, fizz::SupportedGroups::named_group_list, fizz::HandshakeStruct< e, t >::originalEncoding, fizz::ProtocolNameList::protocol_name_list, fizz::psk_dhe_ke, fizz::psk_ke, fizz::ClientHello::random, fizz::rsa_pss_sha256, fizz::secp256r1, fizz::ServerNameList::server_name_list, sni, fizz::SignatureAlgorithms::supported_signature_algorithms, fizz::test::TestProtocolVersion, fizz::TLS_AES_128_GCM_SHA256, fizz::TLS_AES_256_GCM_SHA384, fizz::SupportedVersions::versions, and fizz::x25519.
Referenced by clientHelloPsk(), clientHelloPskEarly(), fizz::server::test::AeadCookieCipherTest::getClientHello(), fizz::client::test::ClientProtocolTest::getDefaultClientHello(), and fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 82 of file TestMessages.h.
References addPsk(), chlo, and clientHello().
Referenced by fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 88 of file TestMessages.h.
References addPsk(), chlo, clientHello(), and fizz::encodeExtension().
Referenced by fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 165 of file TestMessages.h.
References fizz::CompressedCertificate::algorithm, cc, fizz::CompressedCertificate::compressed_certificate_message, folly::IOBuf::copyBuffer(), fizz::HandshakeStruct< e, t >::originalEncoding, fizz::CompressedCertificate::uncompressed_length, and fizz::zlib.
Referenced by fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 223 of file TestMessages.h.
References appWrite(), folly::IOBuf::copyBuffer(), and fizz::EarlyAppWrite::data.
Referenced by fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 141 of file TestMessages.h.
References alpn, folly::IOBuf::copyBuffer(), fizz::encodeExtension(), fizz::EncryptedExtensions::extensions, folly::gen::move, fizz::ProtocolName::name, fizz::HandshakeStruct< e, t >::originalEncoding, and fizz::ProtocolNameList::protocol_name_list.
Referenced by encryptedExtEarly(), fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 152 of file TestMessages.h.
References fizz::encodeExtension(), and encryptedExt().
Referenced by fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 135 of file TestMessages.h.
References folly::IOBuf::copyBuffer(), and fizz::HandshakeStruct< e, t >::originalEncoding.
Referenced by fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 196 of file TestMessages.h.
References folly::IOBuf::copyBuffer(), fizz::HandshakeStruct< e, t >::originalEncoding, and fizz::Finished::verify_data.
Referenced by fizz::client::test::ClientProtocolTest::doFinishedFlow(), fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 95 of file TestMessages.h.
References fizz::HelloRetryRequest::cipher_suite, folly::IOBuf::copyBuffer(), fizz::encodeExtension(), fizz::HelloRetryRequest::extensions, fizz::HelloRetryRequest::legacy_version, folly::gen::move, fizz::HandshakeStruct< e, t >::originalEncoding, fizz::secp256r1, fizz::HelloRetryRequestKeyShare::selected_group, fizz::ServerSupportedVersions::selected_version, fizz::test::TestProtocolVersion, fizz::tls_1_2, and fizz::TLS_AES_128_GCM_SHA256.
Referenced by fizz::client::test::TEST_F(), and fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 229 of file TestMessages.h.
References fizz::KeyUpdate::request_update, fizz::update_not_requested, and fizz::update_requested.
Referenced by fizz::client::test::TEST_F(), and fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 203 of file TestMessages.h.
References folly::IOBuf::copyBuffer(), folly::IOBuf::create(), nst, fizz::NewSessionTicket::ticket, fizz::NewSessionTicket::ticket_age_add, fizz::NewSessionTicket::ticket_lifetime, and fizz::NewSessionTicket::ticket_nonce.
Referenced by fizz::client::test::TEST_F(), and fizz::server::test::TEST_F().
|
inlinestatic |
Definition at line 21 of file TestMessages.h.
References fizz::findExtension().
Referenced by fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 109 of file TestMessages.h.
References fizz::ServerHello::cipher_suite, folly::IOBuf::copyBuffer(), folly::IOBuf::create(), fizz::encodeExtension(), fizz::ServerHello::extensions, fizz::KeyShareEntry::group, fizz::KeyShareEntry::key_exchange, fizz::ServerHello::legacy_session_id_echo, fizz::ServerHello::legacy_version, folly::gen::move, fizz::HandshakeStruct< e, t >::originalEncoding, fizz::ServerHello::random, fizz::ServerSupportedVersions::selected_version, fizz::ServerKeyShare::server_share, fizz::test::TestProtocolVersion, fizz::tls_1_2, fizz::TLS_AES_128_GCM_SHA256, and fizz::x25519.
Referenced by serverHelloPsk(), fizz::server::test::TEST_F(), and fizz::client::test::TEST_F().
|
inlinestatic |
Definition at line 127 of file TestMessages.h.
References fizz::encodeExtension(), folly::gen::move, fizz::ServerPresharedKey::selected_identity, and serverHello().
Referenced by fizz::client::test::TEST_F().