sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility with middleboxes that didn't implement TLS correctly. See RFC 8446, Appendix D.4.
()
| 219 | // sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility |
| 220 | // with middleboxes that didn't implement TLS correctly. See RFC 8446, Appendix D.4. |
| 221 | func (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. |
no test coverage detected