correctly handle errors when creating a new gQUIC key exchange

This commit is contained in:
Marten Seemann
2018-03-28 05:33:26 +07:00
parent 1f9ab3b65f
commit 48731221c0
4 changed files with 22 additions and 16 deletions

View File

@@ -179,7 +179,7 @@ var _ = Describe("Server Crypto Setup", func() {
sourceAddrValid = true
cs.acceptSTKCallback = func(_ net.Addr, _ *Cookie) bool { return sourceAddrValid }
cs.keyDerivation = mockQuicCryptoKeyDerivation
cs.keyExchange = func() crypto.KeyExchange { return &mockKEX{ephermal: true} }
cs.keyExchange = func() (crypto.KeyExchange, error) { return &mockKEX{ephermal: true}, nil }
cs.nullAEAD = mockcrypto.NewMockAEAD(mockCtrl)
cs.cryptoStream = stream
})