Skip to content

Commit e64305f

Browse files
committed
Refactor - when crafting a DTLS packet max external cookie length (for hijacking) can be more than 32 in size based on RFC6347
1 parent 9365248 commit e64305f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ enum Misc {
15691569
SEED_LEN = RAN_LEN * 2, /* tls prf seed length */
15701570
ID_LEN = 32, /* session id length */
15711571
COOKIE_SECRET_SZ = 14, /* dtls cookie secret size */
1572-
MAX_COOKIE_LEN = 32, /* max dtls cookie size */
1572+
MAX_COOKIE_LEN = 255, /* max dtls cookie size per RFC 6347 (opaque<0..2^8-1>) */
15731573
COOKIE_SZ = 20, /* use a 20 byte cookie */
15741574
SUITE_LEN = 2, /* cipher suite sz length */
15751575
ENUM_LEN = 1, /* always a byte */

0 commit comments

Comments
 (0)