]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
crypto/tls: expose HelloRetryRequest state
authorDaniel McCarney <daniel@binaryparadox.net>
Mon, 3 Nov 2025 19:47:42 +0000 (14:47 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 25 Nov 2025 15:40:46 +0000 (07:40 -0800)
commit4fb7e083a868946db08db9ef3bc807e21c8fc961
tree79724aa255d17eb50ffb34fd45fef4740164a84d
parent31d373534e6b2582817585851f45b8af6386d023
crypto/tls: expose HelloRetryRequest state

This commit adds fields to the ClientHelloInfo and ConnectionState
structures to represent hello retry request state information.

ClientHelloInfo gains a new HelloRetryRequest bool field that indicates
if the client hello was sent in response to a TLS 1.3 hello retry
request message previously emitted by the server.

ConnectionState gains a new HelloRetryRequest bool field that indicates
(depending on the connection role) whether the client received a TLS 1.3
hello retry request message from the server, or whether the server sent
such a message to a client.

Fixes #74425

Change-Id: Ic1a5290b8a4ba1568da1d2c2cf9f148150955fa5
Reviewed-on: https://go-review.googlesource.com/c/go/+/717440
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Daniel McCarney <daniel@binaryparadox.net>
api/next/74425.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/crypto/tls/74425.md [new file with mode: 0644]
src/crypto/tls/bogo_shim_test.go
src/crypto/tls/common.go
src/crypto/tls/conn.go
src/crypto/tls/handshake_client_test.go
src/crypto/tls/handshake_server.go
src/crypto/tls/handshake_server_test.go
src/crypto/tls/tls_test.go