]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: implement TLS 1.3 version-specific messages
authorFilippo Valsorda <filippo@golang.org>
Sun, 28 Oct 2018 22:04:54 +0000 (18:04 -0400)
committerFilippo Valsorda <filippo@golang.org>
Fri, 2 Nov 2018 22:04:51 +0000 (22:04 +0000)
commit0663fe9862951a52cc67e3af8213ee99b76297e0
tree937a1bbe6d2f5fbf550e4f6155e247192401790f
parent84d6a7abe8430233a0f89ba8fb44f9f174e4c544
crypto/tls: implement TLS 1.3 version-specific messages

Note that there is significant code duplication due to extensions with
the same format appearing in different messages in TLS 1.3. This will be
cleaned up in a future refactor once CL 145317 is merged.

Enforcing the presence/absence of each extension in each message is left
to the upper layer, based on both protocol version and extensions
advertised in CH and CR. Duplicated extensions and unknown extensions in
SH, EE, HRR, and CT will be tightened up in a future CL.

The TLS 1.2 CertificateStatus message was restricted to accepting only
type OCSP as any other type (none of which are specified so far) would
have to be negotiated.

Updates #9671

Change-Id: I7c42394c5cc0af01faa84b9b9f25fdc6e7cfbb9e
Reviewed-on: https://go-review.googlesource.com/c/145477
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/tls/common.go
src/crypto/tls/conn.go
src/crypto/tls/handshake_client.go
src/crypto/tls/handshake_messages.go
src/crypto/tls/handshake_messages_test.go
src/crypto/tls/handshake_server.go