use a callback to pass handshake errors to the session

This commit is contained in:
Marten Seemann
2019-05-31 14:13:34 +08:00
parent ed69ae2ce0
commit 743868159f
6 changed files with 66 additions and 57 deletions

View File

@@ -30,7 +30,7 @@ type tlsExtensionHandler interface {
// CryptoSetup handles the handshake and protecting / unprotecting packets
type CryptoSetup interface {
RunHandshake() error
RunHandshake()
io.Closer
ChangeConnectionID(protocol.ConnectionID) error