]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: change advertised ciphersuite order.
authorAdam Langley <agl@golang.org>
Wed, 19 Jun 2013 20:46:53 +0000 (16:46 -0400)
committerAdam Langley <agl@golang.org>
Wed, 19 Jun 2013 20:46:53 +0000 (16:46 -0400)
commit966e889687095f33239314d2e7e03c7f3ac3b0c3
tree74fba3f3f92298c174def68458c408fcf4950fd0
parentcb2461ba46c3ef7e74e213b287ef09caaed64c3f
crypto/tls: change advertised ciphersuite order.

TLS clients send ciphersuites in preference order (most prefereable
first). This change alters the order so that ECDHE comes before plain
RSA, and RC4 comes before AES (because of the Lucky13 attack).

This is unlikely to have much effect: as a server, the code uses the
client's ciphersuite order by default and, as a client, the non-Go
server probably imposes its order.

R=golang-dev, r, raggi, jsing
CC=golang-dev
https://golang.org/cl/10372045
src/pkg/crypto/tls/cipher_suites.go