Go version
go1.25
Output of go env in your module/workspace:
What did you do?
I create a crypto/tls fork.
During resolving my fork earlyData issue.
I found a bug in crypto/tls.
What did you see happen?
I found earlyTrafficSecret use ClientHelloOuter instead of ClientHelloInner.
https://github.com/golang/go/blob/master/src/crypto/tls/handshake_client.go#L317-L325
What did you expect to see?
If ECH is enabled, it should use ClientHelloInner.
Go version
go1.25
Output of
go envin your module/workspace:What did you do?
I create a crypto/tls fork.
During resolving my fork earlyData issue.
I found a bug in crypto/tls.
What did you see happen?
I found earlyTrafficSecret use ClientHelloOuter instead of ClientHelloInner.
https://github.com/golang/go/blob/master/src/crypto/tls/handshake_client.go#L317-L325
What did you expect to see?
If ECH is enabled, it should use ClientHelloInner.