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

Method writeChangeCipherRecord

conn.go:1137–1142  ·  view source on GitHub ↗

writeChangeCipherRecord writes a ChangeCipherSpec message to the connection and updates the record layer state.

()

Source from the content-addressed store, hash-verified

1135// writeChangeCipherRecord writes a ChangeCipherSpec message to the connection and
1136// updates the record layer state.
1137func (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.
1145func (c *Conn) readHandshakeBytes(n int) error {

Callers 4

sendFinishedMethod · 0.80
sendFinishedMethod · 0.80

Calls 1

writeRecordLockedMethod · 0.95

Tested by

no test coverage detected