Fix: move define to be before the define check for TLS & PSK

This commit is contained in:
Roy Carter
2026-04-17 18:40:33 +03:00
parent a8ca71be95
commit 46de2b3cfd
+4 -4
View File
@@ -1442,15 +1442,15 @@ enum {
*/
#define AEAD_SM4_CCM_LIMIT w64From32(0, (1 << 10) - 1)
#if defined(WOLFSSL_TLS13) || !defined(NO_PSK)
#define TLS13_TICKET_NONCE_MAX_SZ 255
#ifndef WOLFSSL_COOKIE_LEN
/* Maximum size for a DTLS cookie */
#define WOLFSSL_COOKIE_LEN 32
#endif
#if defined(WOLFSSL_TLS13) || !defined(NO_PSK)
#define TLS13_TICKET_NONCE_MAX_SZ 255
#if (defined(HAVE_FIPS) && \
!(defined(FIPS_VERSION_GE) && FIPS_VERSION_GE(5,3))) && \
defined(TLS13_TICKET_NONCE_STATIC_SZ)