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

Method sendSessionTickets

handshake_server_tls13.go:1070–1087  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1068}
1069
1070func (hs *serverHandshakeStateTLS13) sendSessionTickets() error {
1071 c := hs.c
1072
1073 hs.clientFinished = hs.suite.finishedHash(c.in.trafficSecret, hs.transcript)
1074 finishedMsg := &finishedMsg{
1075 verifyData: hs.clientFinished,
1076 }
1077 if err := transcriptMsg(finishedMsg, hs.transcript); err != nil {
1078 return err
1079 }
1080
1081 c.resumptionSecret = hs.masterSecret.ResumptionMasterSecret(hs.transcript)
1082
1083 if !hs.shouldSendSessionTickets() {
1084 return nil
1085 }
1086 return c.sendSessionTicket(false, nil)
1087}
1088
1089func (c *Conn) sendSessionTicket(earlyData bool, extra [][]byte) error {
1090 suite := cipherSuiteTLS13ByID(c.cipherSuite)

Callers 2

sendServerFinishedMethod · 0.95
readClientCertificateMethod · 0.95

Calls 5

transcriptMsgFunction · 0.85
finishedHashMethod · 0.80
sendSessionTicketMethod · 0.45

Tested by

no test coverage detected