]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: advertise support for RSA+SHA1 in TLS 1.2 handshake.
authorAdam Langley <agl@golang.org>
Mon, 21 Oct 2013 20:35:09 +0000 (16:35 -0400)
committerAdam Langley <agl@golang.org>
Mon, 21 Oct 2013 20:35:09 +0000 (16:35 -0400)
commitefed6f99d262d15e0863950843cd6089d9034e03
tree94c6e81176cd39e5f5c3f7c6f2704c8b0fcde569
parentfae4553a9dd324a540c3a5a2cca4eb63c7a9b57c
crypto/tls: advertise support for RSA+SHA1 in TLS 1.2 handshake.

Despite SHA256 support being required for TLS 1.2 handshakes, some
servers are aborting handshakes that don't offer SHA1 support.

This change adds support for signing TLS 1.2 ServerKeyExchange messages
with SHA1. It does not add support for signing TLS 1.2 client
certificates with SHA1 as that would require the handshake to be
buffered.

Fixes #6618.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/15650043
src/pkg/crypto/tls/common.go
src/pkg/crypto/tls/handshake_client.go
src/pkg/crypto/tls/handshake_client_test.go
src/pkg/crypto/tls/handshake_messages_test.go
src/pkg/crypto/tls/handshake_server.go
src/pkg/crypto/tls/key_agreement.go