Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3502,6 +3502,11 @@ int wolfSSL_CTX_set_TicketHint(WOLFSSL_CTX* ctx, int hint)
if (ctx == NULL)
return BAD_FUNC_ARG;

/* RFC8446 Section 4.6.1: Servers MUST NOT use any value greater than
* 604800 seconds (7 days). */
if (hint < 0 || hint > 604800)
return BAD_FUNC_ARG;

ctx->ticketHint = hint;

return WOLFSSL_SUCCESS;
Expand Down