rename cryptoSetup.DropHandshakeKeys() to SetHandshakeConfirmed()

This commit is contained in:
Marten Seemann
2020-09-30 12:14:16 +07:00
parent b4636469fa
commit b9090d71ae
5 changed files with 23 additions and 22 deletions

View File

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