MCPcopy
hub / github.com/XTLS/REALITY / sendDummyChangeCipherSpec

Method sendDummyChangeCipherSpec

handshake_client_tls13.go:221–231  ·  view source on GitHub ↗

sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility with middleboxes that didn't implement TLS correctly. See RFC 8446, Appendix D.4.

()

Source from the content-addressed store, hash-verified

219// sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility
220// with middleboxes that didn't implement TLS correctly. See RFC 8446, Appendix D.4.
221func (hs *clientHandshakeStateTLS13) sendDummyChangeCipherSpec() error {
222 if hs.c.quic != nil {
223 return nil
224 }
225 if hs.sentDummyCCS {
226 return nil
227 }
228 hs.sentDummyCCS = true
229
230 return hs.c.writeChangeCipherRecord()
231}
232
233// processHelloRetryRequest handles the HRR in hs.serverHello, modifies and
234// resends hs.hello, and reads the new ServerHello into hs.serverHello.

Callers 1

handshakeMethod · 0.95

Calls 1

Tested by

no test coverage detected