RecordHeaderError is returned when a TLS record header is invalid.
| 598 | |
| 599 | // RecordHeaderError is returned when a TLS record header is invalid. |
| 600 | type RecordHeaderError struct { |
| 601 | // Msg contains a human readable string that describes the error. |
| 602 | Msg string |
| 603 | // RecordHeader contains the five bytes of TLS record header that |
| 604 | // triggered the error. |
| 605 | RecordHeader [5]byte |
| 606 | // Conn provides the underlying net.Conn in the case that a client |
| 607 | // sent an initial handshake that didn't look like TLS. |
| 608 | // It is nil if there's already been a handshake or a TLS alert has |
| 609 | // been written to the connection. |
| 610 | Conn net.Conn |
| 611 | } |
| 612 | |
| 613 | func (e RecordHeaderError) Error() string { return "tls: " + e.Msg } |
| 614 |
nothing calls this directly
no outgoing calls
no test coverage detected