adjust macro guards around get max fragment

This commit is contained in:
JacobBarthelmeh
2024-05-31 16:52:31 -06:00
parent 2445fe844a
commit 533aa48b14
2 changed files with 3 additions and 1 deletions

View File

@@ -747,6 +747,7 @@ long wolfSSL_CTX_set_session_cache_mode(WOLFSSL_CTX* ctx, long mode)
} }
#ifdef OPENSSL_EXTRA #ifdef OPENSSL_EXTRA
#ifdef HAVE_MAX_FRAGMENT
/* return the max fragment size set when handshake was negotiated */ /* return the max fragment size set when handshake was negotiated */
uint8_t wolfSSL_SESSION_get_max_fragment_length(WOLFSSL_SESSION* session) uint8_t wolfSSL_SESSION_get_max_fragment_length(WOLFSSL_SESSION* session)
{ {
@@ -756,6 +757,7 @@ uint8_t wolfSSL_SESSION_get_max_fragment_length(WOLFSSL_SESSION* session)
return session->mfl; return session->mfl;
} }
#endif
/* Get the session cache mode for CTX /* Get the session cache mode for CTX

View File

@@ -4433,7 +4433,7 @@ struct WOLFSSL_SESSION {
#ifdef HAVE_EX_DATA #ifdef HAVE_EX_DATA
WOLFSSL_CRYPTO_EX_DATA ex_data; WOLFSSL_CRYPTO_EX_DATA ex_data;
#endif #endif
#ifdef OPENSSL_EXTRA #ifdef HAVE_MAX_FRAGMENT
byte mfl; /* max fragment length negotiated i.e. byte mfl; /* max fragment length negotiated i.e.
* WOLFSSL_MFL_2_8 (6) */ * WOLFSSL_MFL_2_8 (6) */
#endif #endif