writeChangeCipherRecord writes a ChangeCipherSpec message to the connection and updates the record layer state.
()
| 1135 | // writeChangeCipherRecord writes a ChangeCipherSpec message to the connection and |
| 1136 | // updates the record layer state. |
| 1137 | func (c *Conn) writeChangeCipherRecord() error { |
| 1138 | c.out.Lock() |
| 1139 | defer c.out.Unlock() |
| 1140 | _, err := c.writeRecordLocked(recordTypeChangeCipherSpec, []byte{1}) |
| 1141 | return err |
| 1142 | } |
| 1143 | |
| 1144 | // readHandshakeBytes reads handshake data until c.hand contains at least n bytes. |
| 1145 | func (c *Conn) readHandshakeBytes(n int) error { |
no test coverage detected