log when 0-RTT keys become available

This commit is contained in:
Marten Seemann
2020-01-02 15:10:43 +08:00
parent 07d76c547f
commit 81831049c9

View File

@@ -541,6 +541,7 @@ func (h *cryptoSetup) SetReadKey(encLevel qtls.EncryptionLevel, suite *qtls.Ciph
newHeaderProtector(suite, trafficSecret, true),
)
h.mutex.Unlock()
h.logger.Debugf("Installed 0-RTT Read keys (using %s)", cipherSuiteName(suite.ID))
return
case qtls.EncryptionHandshake:
h.readEncLevel = protocol.EncryptionHandshake
@@ -575,6 +576,7 @@ func (h *cryptoSetup) SetWriteKey(encLevel qtls.EncryptionLevel, suite *qtls.Cip
newHeaderProtector(suite, trafficSecret, true),
)
h.mutex.Unlock()
h.logger.Debugf("Installed 0-RTT Write keys (using %s)", cipherSuiteName(suite.ID))
return
case qtls.EncryptionHandshake:
h.writeEncLevel = protocol.EncryptionHandshake