From: Adam Langley Date: Sat, 8 Oct 2011 14:11:38 +0000 (-0400) Subject: crypto/tls: forgot this file in the last change. X-Git-Tag: weekly.2011-10-18~140 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bffadd6bd78465e4a9b2e736963fea0630bd9308;p=gostls13.git crypto/tls: forgot this file in the last change. R=bradfitz CC=golang-dev https://golang.org/cl/5244042 --- diff --git a/src/pkg/crypto/tls/conn.go b/src/pkg/crypto/tls/conn.go index 07199515d1..148594044a 100644 --- a/src/pkg/crypto/tls/conn.go +++ b/src/pkg/crypto/tls/conn.go @@ -36,6 +36,8 @@ type Conn struct { // verifiedChains contains the certificate chains that we built, as // opposed to the ones presented by the server. verifiedChains [][]*x509.Certificate + // serverName contains the server name indicated by the client, if any. + serverName string clientProtocol string clientProtocolFallback bool @@ -798,6 +800,7 @@ func (c *Conn) ConnectionState() ConnectionState { state.CipherSuite = c.cipherSuite state.PeerCertificates = c.peerCertificates state.VerifiedChains = c.verifiedChains + state.ServerName = c.serverName } return state