From 0078a898749f505e3163802f3bf430daceea62cf Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Sat, 8 Oct 2011 10:11:38 -0400 Subject: [PATCH] crypto/tls: forgot this file in the last change. R=bradfitz CC=golang-dev https://golang.org/cl/5244042 --- conn.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conn.go b/conn.go index 0719951..1485940 100644 --- a/conn.go +++ b/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