Fix build error with RECORD_SIZE defined

pull/7383/head
Eric Blankenhorn 2024-04-02 07:45:54 -05:00
parent d930825a92
commit e072677379
1 changed files with 2 additions and 1 deletions

View File

@ -1560,7 +1560,6 @@ enum Misc {
#endif #endif
SIZEOF_SENDER = 4, /* clnt or srvr */ SIZEOF_SENDER = 4, /* clnt or srvr */
FINISHED_SZ = 36, /* WC_MD5_DIGEST_SIZE + WC_SHA_DIGEST_SIZE */ FINISHED_SZ = 36, /* WC_MD5_DIGEST_SIZE + WC_SHA_DIGEST_SIZE */
MAX_RECORD_SIZE = 16384, /* 2^14, max size by standard */
MAX_PLAINTEXT_SZ = (1 << 14), /* Max plaintext sz */ MAX_PLAINTEXT_SZ = (1 << 14), /* Max plaintext sz */
MAX_TLS_CIPHER_SZ = (1 << 14) + 2048, /* Max TLS encrypted data sz */ MAX_TLS_CIPHER_SZ = (1 << 14) + 2048, /* Max TLS encrypted data sz */
#ifdef WOLFSSL_TLS13 #ifdef WOLFSSL_TLS13
@ -2273,6 +2272,8 @@ enum {
/* determine maximum record size */ /* determine maximum record size */
#define MAX_RECORD_SIZE 16384 /* 2^14, max size by standard */
#ifdef RECORD_SIZE #ifdef RECORD_SIZE
/* user supplied value */ /* user supplied value */
#if RECORD_SIZE < 128 || RECORD_SIZE > MAX_RECORD_SIZE #if RECORD_SIZE < 128 || RECORD_SIZE > MAX_RECORD_SIZE