set the default number of tickets to 1

This commit is contained in:
JacobBarthelmeh
2021-08-04 14:40:17 +07:00
parent 2479346f5c
commit b1212ff979

View File

@ -2087,6 +2087,10 @@ int InitSSL_Ctx(WOLFSSL_CTX* ctx, WOLFSSL_METHOD* method, void* heap)
ctx->ticketEncCtx = (void*)&ctx->ticketKeyCtx;
#endif
ctx->ticketHint = SESSION_TICKET_HINT_DEFAULT;
#if defined(WOLFSSL_TLS13)
ctx->maxTicketTls13 = 1; /* default to sending a session ticket if compiled
in */
#endif
#endif
#ifdef WOLFSSL_EARLY_DATA