]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: add a SignatureScheme type.
authorAdam Langley <agl@golang.org>
Wed, 26 Oct 2016 19:30:30 +0000 (12:30 -0700)
committerAdam Langley <agl@golang.org>
Thu, 27 Oct 2016 17:11:04 +0000 (17:11 +0000)
commitec18e93ecd550b10bc36b88d625533a7b7473313
tree183ab4e962f413d17362ea29ec647aac888860a7
parent07a31bc3da1115775c6607fa400e2d147f6c17c3
crypto/tls: add a SignatureScheme type.

The SignatureAndHashAlgorithm from TLS 1.2[1] is being changed to
SignatureScheme in TLS 1.3[2]. (The actual values are compatible
however.)

Since we expect to support TLS 1.3 in the future, we're already using
the name and style of SignatureScheme in the recently augmented
ClientHelloInfo. As this is public API, it seems that SignatureScheme
should have its own type and exported values, which is implemented in
this change.

[1] https://tools.ietf.org/html/rfc5246#section-7.4.1.4.1
[2] https://tools.ietf.org/html/draft-ietf-tls-tls13-18#section-4.2.3

Change-Id: I0482755d02bb9a04eaf075c012696103eb806645
Reviewed-on: https://go-review.googlesource.com/32119
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/tls/common.go
src/crypto/tls/handshake_server.go