]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: don't select ECC ciphersuites with no mutual curve.
authorAdam Langley <agl@golang.org>
Fri, 23 Mar 2012 14:48:51 +0000 (10:48 -0400)
committerAdam Langley <agl@golang.org>
Fri, 23 Mar 2012 14:48:51 +0000 (10:48 -0400)
commit1d8ec87135d109aebbac5631bda9c2af37f5d593
treec6b113468c900cfde67d7b7947a3153402ad2a61
parent76cf6bac07a8188d99788d76a12774d0f9f5e3ec
crypto/tls: don't select ECC ciphersuites with no mutual curve.

The existing code that tried to prevent ECC ciphersuites from being
selected when there were no mutual curves still left |suite| set.
This lead to a panic on a nil pointer when there were no acceptable
ciphersuites at all.

Thanks to George Kadianakis for pointing it out.

R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/5857043
src/pkg/crypto/tls/handshake_server.go
src/pkg/crypto/tls/key_agreement.go