Skip to content

Commit 8342738

Browse files
committed
Fix: PR notes fixes
1 parent 46de2b3 commit 8342738

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10379,7 +10379,7 @@ yes) AM_CFLAGS="$AM_CFLAGS -DHAVE_EX_DATA"
1037910379
[[1-9]]|[[1-9]][[0-9]]|[[1-9]][[0-9]][[0-9]]|[[1-9]][[0-9]][[0-9]][[0-9]])
1038010380
AM_CFLAGS="$AM_CFLAGS -DHAVE_EX_DATA -DMAX_EX_DATA=$ENABLED_EX_DATA"
1038110381
;;
10382-
*) AC_MSG_ERROR([Invalid argument to --enable-context-extra-user-data -- must be yes, no, or a number from 1 to 9999])
10382+
*) AC_MSG_ERROR([Invalid argument to --enable-context-extra-user-data -- must be yes, no, or a number from 1 to 9999 (note: each index reserves one pointer per object, so large values increase memory use)])
1038310383
;;
1038410384
esac
1038510385

wolfssl/internal.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,9 +1444,13 @@ enum {
14441444

14451445
#ifndef WOLFSSL_COOKIE_LEN
14461446
/* Maximum size for a DTLS cookie */
1447-
#define WOLFSSL_COOKIE_LEN 32
1447+
#define WOLFSSL_COOKIE_LEN 32
14481448
#endif
14491449

1450+
#if WOLFSSL_COOKIE_LEN > 255
1451+
#error "WOLFSSL_COOKIE_LEN must be <= 255 per RFC 6347 (opaque<0..2^8-1>)"
1452+
#endif
1453+
14501454
#if defined(WOLFSSL_TLS13) || !defined(NO_PSK)
14511455

14521456
#define TLS13_TICKET_NONCE_MAX_SZ 255

0 commit comments

Comments
 (0)