Disable TLS1.3 ticket issuing outside of tests
@@ -687,7 +687,9 @@ int s2n_config_set_session_tickets_onoff(struct s2n_config *config, uint8_t enab
}
config->use_tickets = enabled;
- if (config->initial_tickets_to_send == 0) {
+ /* TODO: The S2N_IN_TEST check is temporary until TLS1.3 session resumption is officially released.
+ * https://github.com/aws/s2n-tls/issues/2808 */
+ if (S2N_IN_TEST && config->initial_tickets_to_send == 0) {
/* Normally initial_tickets_to_send is set via s2n_config_set_initial_ticket_count.
* However, s2n_config_set_initial_ticket_count calls this method.
* So we set initial_tickets_to_send directly to avoid infinite recursion. */
