Skip to content

Commit

Permalink
Merge pull request #7683 from SparkiDev/def_ticket_cb_inlen
Browse files Browse the repository at this point in the history
SSL default ticket encryption callback: check in len on decrypt
  • Loading branch information
JacobBarthelmeh committed Jun 28, 2024
2 parents 4913289 + 6d0dc7f commit 80d4f71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -38846,6 +38846,10 @@ static int DefTicketEncCb(WOLFSSL* ssl, byte key_name[WOLFSSL_TICKET_NAME_SZ],

WOLFSSL_ENTER("DefTicketEncCb");

if ((!enc) && (inLen != sizeof(InternalTicket))) {
return BUFFER_E;
}

/* Check we have setup the RNG, name and primary key. */
if (keyCtx->expirary[0] == 0) {
#ifndef SINGLE_THREADED
Expand Down

0 comments on commit 80d4f71

Please sign in to comment.