Skip to content

Commit

Permalink
adjust macro guards around get max fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed May 31, 2024
1 parent 2445fe8 commit 533aa48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ssl_sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ long wolfSSL_CTX_set_session_cache_mode(WOLFSSL_CTX* ctx, long mode)
}

#ifdef OPENSSL_EXTRA
#ifdef HAVE_MAX_FRAGMENT
/* return the max fragment size set when handshake was negotiated */
uint8_t wolfSSL_SESSION_get_max_fragment_length(WOLFSSL_SESSION* session)
{
Expand All @@ -756,6 +757,7 @@ uint8_t wolfSSL_SESSION_get_max_fragment_length(WOLFSSL_SESSION* session)

return session->mfl;
}
#endif


/* Get the session cache mode for CTX
Expand Down
2 changes: 1 addition & 1 deletion wolfssl/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -4433,7 +4433,7 @@ struct WOLFSSL_SESSION {
#ifdef HAVE_EX_DATA
WOLFSSL_CRYPTO_EX_DATA ex_data;
#endif
#ifdef OPENSSL_EXTRA
#ifdef HAVE_MAX_FRAGMENT
byte mfl; /* max fragment length negotiated i.e.
* WOLFSSL_MFL_2_8 (6) */
#endif
Expand Down

0 comments on commit 533aa48

Please sign in to comment.