pack smaller packets as long as the encryption is not forward secure

This commit is contained in:
Marten Seemann
2017-02-25 14:57:59 +07:00
parent d4b2b66273
commit 9e147714ac
7 changed files with 44 additions and 1 deletions

View File

@@ -336,7 +336,11 @@ var _ = Describe("Crypto setup", func() {
Expect(err).NotTo(HaveOccurred())
Expect(stream.dataWritten.Bytes()).To(HavePrefix("SHLO"))
Expect(stream.dataWritten.Bytes()).ToNot(ContainSubstring("REJ"))
Expect(aeadChanged).To(Receive())
var encLevel protocol.EncryptionLevel
Expect(aeadChanged).To(Receive(&encLevel))
Expect(encLevel).To(Equal(protocol.EncryptionSecure))
Expect(aeadChanged).To(Receive(&encLevel))
Expect(encLevel).To(Equal(protocol.EncryptionForwardSecure))
})
It("recognizes inchoate CHLOs missing SCID", func() {