Skip to content

Commit

Permalink
wolfssl/internal.h: raise HANDSHAKE_HEADER_SZ from 4 to 12 in WOLFSSL…
Browse files Browse the repository at this point in the history
…_DTLS13 configurations, to accommodate Dtls13HandshakeHeader.
  • Loading branch information
douzzer committed Sep 18, 2024
1 parent 263cb5b commit 0bfe7f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wolfssl/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,11 @@ enum Misc {
SERVER_ID_LEN = WC_SHA_DIGEST_SIZE,
#endif

#ifdef WOLFSSL_DTLS13
HANDSHAKE_HEADER_SZ = 12, /* big enough to hold Dtls13HandshakeHeader */
#else
HANDSHAKE_HEADER_SZ = 4, /* type + length(3) */
#endif
RECORD_HEADER_SZ = 5, /* type + version + len(2) */
CERT_HEADER_SZ = 3, /* always 3 bytes */
REQ_HEADER_SZ = 2, /* cert request header sz */
Expand Down

0 comments on commit 0bfe7f3

Please sign in to comment.