mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: extend NPN support to the client.
R=bradfitzgo, rsc1, bradfitzwork CC=golang-dev https://golang.org/cl/4277085
This commit is contained in:
parent
d844aae690
commit
974d2c98e0
3 changed files with 40 additions and 5 deletions
|
|
@ -93,9 +93,10 @@ const (
|
|||
|
||||
// ConnectionState records basic TLS details about the connection.
|
||||
type ConnectionState struct {
|
||||
HandshakeComplete bool
|
||||
CipherSuite uint16
|
||||
NegotiatedProtocol string
|
||||
HandshakeComplete bool
|
||||
CipherSuite uint16
|
||||
NegotiatedProtocol string
|
||||
NegotiatedProtocolIsMutual bool
|
||||
|
||||
// the certificate chain that was presented by the other side
|
||||
PeerCertificates []*x509.Certificate
|
||||
|
|
@ -124,7 +125,6 @@ type Config struct {
|
|||
RootCAs *CASet
|
||||
|
||||
// NextProtos is a list of supported, application level protocols.
|
||||
// Currently only server-side handling is supported.
|
||||
NextProtos []string
|
||||
|
||||
// ServerName is included in the client's handshake to support virtual
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue