mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
create handshake.CryptoSetup interface
This commit is contained in:
parent
7e4c695faf
commit
2b7c67d297
7 changed files with 44 additions and 27 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue