]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.24] crypto/tls: fix ECH compatibility
author古大羊 <lj1788@gmail.com>
Mon, 10 Feb 2025 04:49:15 +0000 (12:49 +0800)
committerCarlos Amedee <carlos@golang.org>
Mon, 28 Apr 2025 17:22:47 +0000 (10:22 -0700)
commitb2c005e7b20e01acc2da14e739407b6b231d63ee
treedb616397282f99e26b31fd21240e9d699483de30
parenta9d9b5570964c2c2ef07992150174bd3d1b2d891
[release-branch.go1.24] crypto/tls: fix ECH compatibility

Previously, the code only checked supportedVersions[0] for TLS 1.3
However, Chromium-based
browsers may list TLS 1.3 at different positions, causing ECH failures.
This fix:
    Iterates through supportedVersions to accept connections as long as TLS 1.3 is present.
    Improves ECH compatibility, ensuring Chrome, Edge, and other browsers work properly.

Fixes #73118

Change-Id: I32f4219fb6654d5cc22c7f33497c6142c0acb4f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/648015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
(cherry picked from commit cd2f347c61bd9f41e977d74dc2dd3a1f36b65800)
Reviewed-on: https://go-review.googlesource.com/c/go/+/661936
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: 古大羊 <lj1788@gmail.com>
src/crypto/tls/ech.go