create handshake.CryptoSetup interface

This commit is contained in:
Marten Seemann 2016-11-07 13:04:54 +07:00
parent 7e4c695faf
commit 2b7c67d297
No known key found for this signature in database
GPG key ID: 3603F40B121FCDEA
7 changed files with 44 additions and 27 deletions

View file

@ -25,9 +25,11 @@ var _ = Describe("Packet packer", func() {
cpm := &mockConnectionParametersManager{}
streamFramer = newStreamFramer(newStreamsMap(nil, cpm), fcm)
cs, err := handshake.NewCryptoSetup(0, nil, protocol.VersionWhatever, nil, nil, nil, nil)
Expect(err).ToNot(HaveOccurred())
packer = &packetPacker{
cryptoSetup: &handshake.CryptoSetup{},
cryptoSetup: cs,
connectionParameters: cpm,
packetNumberGenerator: newPacketNumberGenerator(protocol.SkipPacketAveragePeriodLength),
streamFramer: streamFramer,