Merge pull request #2811 from lucas-clemente/fix-first-key-update

allow the first key update immediately after handshake confirmation
This commit is contained in:
Marten Seemann
2020-10-06 20:23:19 +07:00
committed by GitHub
7 changed files with 125 additions and 86 deletions

View File

@@ -653,7 +653,9 @@ func (h *cryptoSetup) dropInitialKeys() {
h.logger.Debugf("Dropping Initial keys.")
}
func (h *cryptoSetup) DropHandshakeKeys() {
func (h *cryptoSetup) SetHandshakeConfirmed() {
h.aead.SetHandshakeConfirmed()
// drop Handshake keys
var dropped bool
h.mutex.Lock()
if h.handshakeOpener != nil {