MCPcopy Index your code
hub / github.com/XTLS/REALITY / shouldSendSessionTickets

Method shouldSendSessionTickets

handshake_server_tls13.go:1056–1068  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1054}
1055
1056func (hs *serverHandshakeStateTLS13) shouldSendSessionTickets() bool {
1057 if hs.c.config.SessionTicketsDisabled {
1058 return false
1059 }
1060
1061 // QUIC tickets are sent by QUICConn.SendSessionTicket, not automatically.
1062 if hs.c.quic != nil {
1063 return false
1064 }
1065
1066 // Don't send tickets the client wouldn't use. See RFC 8446, Section 4.2.9.
1067 return slices.Contains(hs.clientHello.pskModes, pskModeDHE)
1068}
1069
1070func (hs *serverHandshakeStateTLS13) sendSessionTickets() error {
1071 c := hs.c

Callers 1

sendSessionTicketsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected