allow the first key update immediately after handshake confirmation

This commit is contained in:
Marten Seemann
2020-09-30 14:12:07 +07:00
parent b9090d71ae
commit 1c38acd8c9
3 changed files with 87 additions and 56 deletions

View File

@@ -653,6 +653,7 @@ func (h *cryptoSetup) dropInitialKeys() {
}
func (h *cryptoSetup) SetHandshakeConfirmed() {
h.aead.SetHandshakeConfirmed()
// drop Handshake keys
var dropped bool
h.mutex.Lock()