We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c8d593 commit f285a52Copy full SHA for f285a52
1 file changed
src/ssl.c
@@ -3502,6 +3502,11 @@ int wolfSSL_CTX_set_TicketHint(WOLFSSL_CTX* ctx, int hint)
3502
if (ctx == NULL)
3503
return BAD_FUNC_ARG;
3504
3505
+ /* RFC8446 Section 4.6.1: Servers MUST NOT use any value greater than
3506
+ * 604800 seconds (7 days). */
3507
+ if (hint < 0 || hint > 604800)
3508
+ return BAD_FUNC_ARG;
3509
+
3510
ctx->ticketHint = hint;
3511
3512
return WOLFSSL_SUCCESS;
0 commit comments