File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,10 @@ type ConnectionState struct {
338
338
// accepted by the server.
339
339
ECHAccepted bool
340
340
341
+ // ECHOffered is set if the ECH extension is present in the ClientHello.
342
+ // This means the client has offered ECH or sent GREASE ECH.
343
+ ECHOffered bool
344
+
341
345
// CFControl is used to pass additional TLS configuration information to
342
346
// HTTP requests.
343
347
//
Original file line number Diff line number Diff line change @@ -1475,6 +1475,7 @@ func (c *Conn) connectionStateLocked() ConnectionState {
1475
1475
state .SignedCertificateTimestamps = c .scts
1476
1476
state .OCSPResponse = c .ocspResponse
1477
1477
state .ECHAccepted = c .ech .accepted
1478
+ state .ECHOffered = c .ech .offered || c .ech .greased
1478
1479
state .CFControl = c .config .CFControl
1479
1480
if ! c .didResume && c .vers != VersionTLS13 {
1480
1481
if c .clientFinishedIsFirst {
You can’t perform that action at this time.
0 commit comments