]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: add Config.VerifyConnection callback
authorKatie Hockman <katie@golang.org>
Mon, 20 Apr 2020 21:55:37 +0000 (17:55 -0400)
committerKatie Hockman <katie@golang.org>
Fri, 8 May 2020 02:17:26 +0000 (02:17 +0000)
commit62a3f2e27c7732656bb3ae8f14047b74a9956e77
tree7c269e5012edc8954e0bc2fc6371befa211b7cce
parent43f2f5024b2a1438a642fe5340b929d3069099e9
crypto/tls: add Config.VerifyConnection callback

Since the ConnectionState will now be available during
verification, some code was moved around in order to
initialize and make available as much of the fields on
Conn as possible before the ConnectionState is verified.

Fixes #36736

Change-Id: I0e3efa97565ead7de5c48bb8a87e3ea54fbde140
Reviewed-on: https://go-review.googlesource.com/c/go/+/229122
Run-TryBot: Katie Hockman <katie@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/tls/common.go
src/crypto/tls/conn.go
src/crypto/tls/handshake_client.go
src/crypto/tls/handshake_client_test.go
src/crypto/tls/handshake_client_tls13.go
src/crypto/tls/handshake_server.go
src/crypto/tls/handshake_server_tls13.go
src/crypto/tls/tls_test.go