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

@@ -334,6 +334,8 @@ func (h *cryptoSetupServer) handleCHLO(sni string, data []byte, cryptoData map[T
return nil, err
}
h.aeadChanged <- protocol.EncryptionSecure
// Generate a new curve instance to derive the forward secure key
var fsNonce bytes.Buffer
fsNonce.Write(clientNonce)