mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
adjust macro guards around get max fragment
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user