proxygen
HandshakeTypesTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <fizz/record/Extensions.h>
#include <folly/String.h>

Go to the source code of this file.

Classes

class  fizz::test::HandshakeTypesTest
 

Namespaces

 fizz
 
 fizz::test
 

Functions

 fizz::test::TEST_F (HandshakeTypesTest, ChloEncodeDecode)
 
 fizz::test::TEST_F (HandshakeTypesTest, SSL3ChloDecode)
 
 fizz::test::TEST_F (HandshakeTypesTest, ChloDecidePsk)
 
 fizz::test::TEST_F (HandshakeTypesTest, ChloEncodeCopy)
 
 fizz::test::TEST_F (HandshakeTypesTest, NstEncodeDecode)
 
bool fizz::test::extensionsMatch (const Extension &expected, const Extension &actual)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodeAndDecodeSigAlgs)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodeAndDecodeClientKeyShare)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodeAndDecodeServerHello)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodeAndDecodeEndOfEarlyData)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodeAndDecodeEncryptedExtensions)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodeAndDecodedCertificate)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodedAndDecodeCertificateVerify)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodedAndDecodeKeyUpdated)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodedAndDecodeCertificateRequest)
 
 fizz::test::TEST_F (HandshakeTypesTest, EncodeAndDecodeCompressedCertificate)
 

Variables

static const std::string chlo
 
static const std::string ssl3chlo
 
static const std::string chloPsk
 
static const std::string encodedShlo
 
static const std::string encodedEoed = ""
 
static const std::string encodedEncryptedExtensions
 
static const std::string encodedCertificate
 
static const std::string encodedCertVerify
 
static const std::string nst
 
static const std::string encodedKeyUpdate = "00"
 
static const std::string encodedCertRequest = "00000a000d0006000406030807"
 
static const std::string encodedCompressedCertificate = "000100face000009666f6f62617262617a"
 

Variable Documentation

const std::string chloPsk
static
Initial value:
=
"03034e2d3805200a9433ebdb4f1bf85d0a773c65a7430aa904c13966e49ab96efe2500003e130113031302c02bc02fcca9cca8c00ac009c013c023c027c014009eccaa00330032006700390038006b00160013009c002f003c0035003d000a00050004010001950015003b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0009000006736572766572ff01000100000a00140012001d00170018001901000101010201030104000b00020100002800260024001d0020621bb90eca697f96d7ddc2966218ae0e7961268d8def400f8d7805172501932f002a0000002b000706030403030302000d0020001e040305030603020308040805080604010501060102010402050206020202002d00020101002900bd009800924e535321db0251332a66d4efd3b0285509fd8a26b801211c72f5f9012b8a6f35005069950156fc02abe56744e7c7d2798675e8372cbba2a93e2436bcd3dbac7662e64e187379bec081051957c0da819d44fafb13d833752c7340a32df5e133e3717566ac66b4cc417a4d0afaa64493997dba0cd6e601bc11a4ce5506236c2c4094d1ea2329d1756ac32783ef158e91a92c44d0a8dc290021202deccf4db1a231fa7359797967c09aa4ea69c29ecd781b41cbae9b1d7e4c0ff9"

Definition at line 60 of file HandshakeTypesTest.cpp.

Referenced by fizz::test::TEST_F().

const std::string encodedCertificate
static
Initial value:
=
"000001b50001b0308201ac30820115a003020102020102300d06092a864886f70d01010b0500300e310c300a06035504031303727361301e170d3136303733303031323335395a170d3236303733303031323335395a300e310c300a0603550403130372736130819f300d06092a864886f70d010101050003818d0030818902818100b4bb498f8279303d980836399b36c6988c0c68de55e1bdb826d3901a2461eafd2de49a91d015abbc9a95137ace6c1af19eaa6af98c7ced43120998e187a80ee0ccb0524b1b018c3e0b63264d449a6d38e22a5fda430846748030530ef0461c8ca9d9efbfae8ea6d1d03e2bd193eff0ab9a8002c47428a6d35a8d88d79f7f1e3f0203010001a31a301830090603551d1304023000300b0603551d0f0404030205a0300d06092a864886f70d01010b05000381810085aad2a0e5b9276b908c65f73a7267170618a54c5f8a7b337d2df7a594365417f2eae8f8a58c8f8172f9319cf36b7fd6c55b80f21a03015156726096fd335e5e67f2dbf102702e608ccae6bec1fc63a42a99be5c3eb7107c3c54e9b9eb2bd5203b1c3b84e0a8b2f759409ba3eac9d91d402dcc0cc8f8961229ac9187b42b4de10000"

Definition at line 71 of file HandshakeTypesTest.cpp.

Referenced by fizz::sm::getCertificate(), fizz::sm::getCertificateRequest(), and fizz::test::TEST_F().

const std::string encodedCertRequest = "00000a000d0006000406030807"
static

Definition at line 82 of file HandshakeTypesTest.cpp.

Referenced by fizz::sm::getCertificateRequest(), and fizz::test::TEST_F().

const std::string encodedCertVerify
static
Initial value:
=
"080400805db9706f9bd41ab01be55f75b136cb89dda63dc6e4510e40c7203cb87f4eba2b122644018640641bde97e03d4caa1d670371b8bf81374d5126f88df68b87ef6c706cf9c0ee04063d8e65cb403433fb006c800e307b79b3a51fbae6089c2f3988ddfe04a760902e0a2141046054bdf807cf48cd3ce83f58a149ba35b7ff6c2f2a"

Definition at line 74 of file HandshakeTypesTest.cpp.

Referenced by fizz::sm::handleCertMsg(), fizz::test::TEST_F(), and fizz::ExportedAuthenticator::validate().

const std::string encodedCompressedCertificate = "000100face000009666f6f62617262617a"
static

Definition at line 84 of file HandshakeTypesTest.cpp.

Referenced by fizz::test::TEST_F().

const std::string encodedEncryptedExtensions
static
Initial value:
=
"001c000a00140012001d0017001800190100010101020103010400000000"

Definition at line 68 of file HandshakeTypesTest.cpp.

Referenced by fizz::test::TEST_F().

const std::string encodedEoed = ""
static

Definition at line 66 of file HandshakeTypesTest.cpp.

Referenced by fizz::test::TEST_F().

const std::string encodedKeyUpdate = "00"
static

Definition at line 80 of file HandshakeTypesTest.cpp.

Referenced by fizz::test::TEST_F().

const std::string encodedShlo
static
Initial value:
=
"03039f2bfbe752cb49bc82303dd32a80cf60483a38e44bfb695ebd0280bcc1c70c5b00130100002e00330024001d00208db235a330ee184b953a981ecfb23b05380768ed12050ec2f0ec62b74ef8f835002b00020304"

Definition at line 63 of file HandshakeTypesTest.cpp.

Referenced by fizz::test::TEST_F().

const std::string nst
static
Initial value:
=
"0002a300d0a8dc290000924e535321db0251332a66d4efd3b0285509fd8a26b801211c72f5f9012b8a6f35005069950156fc02abe56744e7c7d2798675e8372cbba2a93e2436bcd3dbac7662e64e187379bec081051957c0da819d44fafb13d833752c7340a32df5e133e3717566ac66b4cc417a4d0afaa64493997dba0cd6e601bc11a4ce5506236c2c4094d1ea2329d1756ac32783ef158e91a92c440008002e000400020000"

Definition at line 77 of file HandshakeTypesTest.cpp.

Referenced by fizz::decode< NewSessionTicket >(), fizz::encode< NewSessionTicket >(), fizz::sm::getMaxEarlyDataSize(), fizz::test::TestMessages::newSessionTicket(), fizz::test::TEST_F(), fizz::client::test::TEST_F(), fizz::server::test::TEST_F(), and fizz::sm::writeNewSessionTicket().

const std::string ssl3chlo
static
Initial value:
=
"03005880ff04e8d5e0af70a2fe55fd90a5380a184f78c213aa8a4142010cac742e3600004cc014c00a0039003800880087c00fc00500350084c013c00900330032009a009900450044c00ec004002f00960041c012c00800160013c00dc003000a0007c011c007c00cc0020005000400ff0100"

Definition at line 56 of file HandshakeTypesTest.cpp.

Referenced by fizz::test::TEST_F().