]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: forgot this file in the last change.
authorAdam Langley <agl@golang.org>
Sat, 8 Oct 2011 14:11:38 +0000 (10:11 -0400)
committerAdam Langley <agl@golang.org>
Sat, 8 Oct 2011 14:11:38 +0000 (10:11 -0400)
R=bradfitz
CC=golang-dev
https://golang.org/cl/5244042

src/pkg/crypto/tls/conn.go

index 07199515d16a3633f8a4ff1c68a9bb5d0a0bdd53..148594044ac1051b8f00154a3322d2b3df2490ce 100644 (file)
@@ -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