Skip to content

Commit b334750

Browse files
Merge pull request #7383 from embhorn/zd17763
Fix build error with RECORD_SIZE defined
2 parents d930825 + e072677 commit b334750

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfssl/internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,6 @@ enum Misc {
15601560
#endif
15611561
SIZEOF_SENDER = 4, /* clnt or srvr */
15621562
FINISHED_SZ = 36, /* WC_MD5_DIGEST_SIZE + WC_SHA_DIGEST_SIZE */
1563-
MAX_RECORD_SIZE = 16384, /* 2^14, max size by standard */
15641563
MAX_PLAINTEXT_SZ = (1 << 14), /* Max plaintext sz */
15651564
MAX_TLS_CIPHER_SZ = (1 << 14) + 2048, /* Max TLS encrypted data sz */
15661565
#ifdef WOLFSSL_TLS13
@@ -2273,6 +2272,8 @@ enum {
22732272

22742273

22752274
/* determine maximum record size */
2275+
#define MAX_RECORD_SIZE 16384 /* 2^14, max size by standard */
2276+
22762277
#ifdef RECORD_SIZE
22772278
/* user supplied value */
22782279
#if RECORD_SIZE < 128 || RECORD_SIZE > MAX_RECORD_SIZE

0 commit comments

Comments
 (0)