]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: Server can specify an unadvertised cipher suite
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 7 Nov 2015 12:18:36 +0000 (12:18 +0000)
committerRuss Cox <rsc@golang.org>
Thu, 26 Nov 2015 17:22:57 +0000 (17:22 +0000)
commitdb4ef216cc8d9c17f6d10d8682a46d8077b203d0
tree65ea4927ac6ae3ecf5fabaab6b18a2fa105ceda2
parentb717090e018a6dc68c19bdca4c1cea0f5dbf3b16
crypto/tls: Server can specify an unadvertised cipher suite

During the TLS handshake, check the cipher suite the server selects is
one of those offered in the ClientHello.  The code was checking it was
in the larger list that was sometimes whittled down for the ClientHello.

Fixes #13174

Change-Id: Iad8eebbcfa5027f30403b9700c43cfa949e135bb
Reviewed-on: https://go-review.googlesource.com/16698
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/crypto/tls/handshake_client.go
src/crypto/tls/handshake_client_test.go