summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/tls/handshake_client.go
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2009-12-23 11:13:09 -0800
committerAdam Langley <agl@golang.org>2009-12-23 11:13:09 -0800
commit24879544570644f9e6a01bceca4197fceee4fb06 (patch)
tree02b8b58e79758e2349746808ba2d9988778fbf8c /src/pkg/crypto/tls/handshake_client.go
parent6f2b4547118164701e92350e5473e01222173962 (diff)
downloadgolang-24879544570644f9e6a01bceca4197fceee4fb06.tar.gz
crypto/tls: extensions and Next Protocol Negotiation
Add support for TLS extensions in general and Next Protocol Negotiation in particular. R=rsc CC=golang-dev http://codereview.appspot.com/181045
Diffstat (limited to 'src/pkg/crypto/tls/handshake_client.go')
-rw-r--r--src/pkg/crypto/tls/handshake_client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/crypto/tls/handshake_client.go b/src/pkg/crypto/tls/handshake_client.go
index 4e31e7094..d07e2d89f 100644
--- a/src/pkg/crypto/tls/handshake_client.go
+++ b/src/pkg/crypto/tls/handshake_client.go
@@ -184,7 +184,7 @@ func (h *clientHandshake) loop(writeChan chan<- interface{}, controlChan chan<-
return
}
- controlChan <- ConnectionState{true, "TLS_RSA_WITH_RC4_128_SHA", 0}
+ controlChan <- ConnectionState{HandshakeComplete: true, CipherSuite: "TLS_RSA_WITH_RC4_128_SHA"}
// This should just block forever.
_ = h.readHandshakeMsg()
@@ -218,7 +218,7 @@ func (h *clientHandshake) error(e alertType) {
for _ = range h.msgChan {
}
}()
- h.controlChan <- ConnectionState{false, "", e}
+ h.controlChan <- ConnectionState{Error: e}
close(h.controlChan)
h.writeChan <- alert{alertLevelError, e}
}