Skip to content

Commit 46de2b3

Browse files
committed
Fix: move define to be before the define check for TLS & PSK
1 parent a8ca71b commit 46de2b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wolfssl/internal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,15 +1442,15 @@ enum {
14421442
*/
14431443
#define AEAD_SM4_CCM_LIMIT w64From32(0, (1 << 10) - 1)
14441444

1445-
#if defined(WOLFSSL_TLS13) || !defined(NO_PSK)
1446-
1447-
#define TLS13_TICKET_NONCE_MAX_SZ 255
1448-
14491445
#ifndef WOLFSSL_COOKIE_LEN
14501446
/* Maximum size for a DTLS cookie */
14511447
#define WOLFSSL_COOKIE_LEN 32
14521448
#endif
14531449

1450+
#if defined(WOLFSSL_TLS13) || !defined(NO_PSK)
1451+
1452+
#define TLS13_TICKET_NONCE_MAX_SZ 255
1453+
14541454
#if (defined(HAVE_FIPS) && \
14551455
!(defined(FIPS_VERSION_GE) && FIPS_VERSION_GE(5,3))) && \
14561456
defined(TLS13_TICKET_NONCE_STATIC_SZ)

0 commit comments

Comments
 (0)