| 1054 | } |
| 1055 | |
| 1056 | func (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 | |
| 1070 | func (hs *serverHandshakeStateTLS13) sendSessionTickets() error { |
| 1071 | c := hs.c |