]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: Client side support for TLS session resumption.
authorGautham Thambidorai <gautham.dorai@gmail.com>
Wed, 22 Jan 2014 23:24:03 +0000 (18:24 -0500)
committerAdam Langley <agl@golang.org>
Wed, 22 Jan 2014 23:24:03 +0000 (18:24 -0500)
commit988ffc0fe2dac1072b8c0f22458b8c04295174ff
tree7dbdd1c3fd0761b28349a046baa2392db95ca686
parent021c11683ca28c7e01a2eca5ccbb9b8bd34e3bc1
crypto/tls: Client side support for TLS session resumption.

Adam (agl@) had already done an initial review of this CL in a branch.

Added ClientSessionState to Config which now allows clients to keep state
required to resume a TLS session with a server. A client handshake will try
and use the SessionTicket/MasterSecret in this cached state if the server
acknowledged resumption.

We also added support to cache ClientSessionState object in Config that will
be looked up by server remote address during the handshake.

R=golang-codereviews, agl, rsc, agl, agl, bradfitz, mikioh.mikioh
CC=golang-codereviews
https://golang.org/cl/15680043
src/pkg/crypto/tls/common.go
src/pkg/crypto/tls/conn.go
src/pkg/crypto/tls/handshake_client.go
src/pkg/crypto/tls/handshake_client_test.go
src/pkg/crypto/tls/handshake_server_test.go
src/pkg/go/build/deps_test.go