crypto/tls: forgot this file in the last change.
R=bradfitz CC=golang-dev https://golang.org/cl/5244042
This commit is contained in:
parent
6f1dcf99be
commit
0078a89874
3
conn.go
3
conn.go
@ -36,6 +36,8 @@ type Conn struct {
|
|||||||
// verifiedChains contains the certificate chains that we built, as
|
// verifiedChains contains the certificate chains that we built, as
|
||||||
// opposed to the ones presented by the server.
|
// opposed to the ones presented by the server.
|
||||||
verifiedChains [][]*x509.Certificate
|
verifiedChains [][]*x509.Certificate
|
||||||
|
// serverName contains the server name indicated by the client, if any.
|
||||||
|
serverName string
|
||||||
|
|
||||||
clientProtocol string
|
clientProtocol string
|
||||||
clientProtocolFallback bool
|
clientProtocolFallback bool
|
||||||
@ -798,6 +800,7 @@ func (c *Conn) ConnectionState() ConnectionState {
|
|||||||
state.CipherSuite = c.cipherSuite
|
state.CipherSuite = c.cipherSuite
|
||||||
state.PeerCertificates = c.peerCertificates
|
state.PeerCertificates = c.peerCertificates
|
||||||
state.VerifiedChains = c.verifiedChains
|
state.VerifiedChains = c.verifiedChains
|
||||||
|
state.ServerName = c.serverName
|
||||||
}
|
}
|
||||||
|
|
||||||
return state
|
return state
|
||||||
|
Loading…
Reference in New Issue
Block a user