MCPcopy Create free account
hub / github.com/XTLS/Go / shouldSendSessionTickets

Method shouldSendSessionTickets

handshake_server_tls13.go:692–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

690}
691
692func (hs *serverHandshakeStateTLS13) shouldSendSessionTickets() bool {
693 if hs.c.config.SessionTicketsDisabled {
694 return false
695 }
696
697 // Don't send tickets the client wouldn't use. See RFC 8446, Section 4.2.9.
698 for _, pskMode := range hs.clientHello.pskModes {
699 if pskMode == pskModeDHE {
700 return true
701 }
702 }
703 return false
704}
705
706func (hs *serverHandshakeStateTLS13) sendSessionTickets() error {
707 c := hs.c

Callers 1

sendSessionTicketsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected