sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility with middleboxes that didn't implement TLS correctly. See RFC 8446, Appendix D.4.
()
| 627 | // sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility |
| 628 | // with middleboxes that didn't implement TLS correctly. See RFC 8446, Appendix D.4. |
| 629 | func (hs *serverHandshakeStateTLS13) sendDummyChangeCipherSpec() error { |
| 630 | if hs.c.quic != nil { |
| 631 | return nil |
| 632 | } |
| 633 | if hs.sentDummyCCS { |
| 634 | return nil |
| 635 | } |
| 636 | hs.sentDummyCCS = true |
| 637 | |
| 638 | return hs.c.writeChangeCipherRecord() |
| 639 | } |
| 640 | |
| 641 | func (hs *serverHandshakeStateTLS13) doHelloRetryRequest(selectedGroup CurveID) (*keyShare, error) { |
| 642 | c := hs.c |
no test coverage detected