use a callback to signal completion of the handshake

This commit is contained in:
Marten Seemann
2019-05-31 16:31:50 +08:00
parent 4fd6a7cc99
commit e361d3c5cd
6 changed files with 65 additions and 58 deletions

View File

@@ -30,6 +30,7 @@ type tlsExtensionHandler interface {
type handshakeRunner interface {
OnReceivedParams([]byte)
OnHandshakeComplete()
OnError(error)
DropKeys(protocol.EncryptionLevel)
}