Merge pull request #1938 from lucas-clemente/remove-unused-connection-state

remove unused handshake.ConnectionState struct definition
This commit is contained in:
Marten Seemann
2019-05-31 18:08:03 +08:00
committed by GitHub

View File

@@ -2,7 +2,6 @@ package handshake
import (
"crypto/tls"
"crypto/x509"
"io"
"github.com/lucas-clemente/quic-go/internal/protocol"
@@ -43,11 +42,3 @@ type CryptoSetup interface {
GetSealerWithEncryptionLevel(protocol.EncryptionLevel) (Sealer, error)
GetOpener(protocol.EncryptionLevel) (Opener, error)
}
// ConnectionState records basic details about the QUIC connection.
// Warning: This API should not be considered stable and might change soon.
type ConnectionState struct {
HandshakeComplete bool // handshake is complete
ServerName string // server name requested by client, if any (server side only)
PeerCertificates []*x509.Certificate // certificate chain presented by remote peer
}