use unsigned char instead of uint8_t

This commit is contained in:
JacobBarthelmeh
2024-06-06 16:30:40 -06:00
parent 119d2a5da1
commit 3d33c78e9d
2 changed files with 3 additions and 2 deletions

View File

@ -749,7 +749,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)
unsigned char wolfSSL_SESSION_get_max_fragment_length(WOLFSSL_SESSION* session)
{
session = ClientSessionToSession(session);
if (session == NULL) {

View File

@ -1682,7 +1682,8 @@ WOLFSSL_API void wolfSSL_set_connect_state(WOLFSSL* ssl);
WOLFSSL_API void wolfSSL_set_accept_state(WOLFSSL* ssl);
WOLFSSL_API int wolfSSL_session_reused(WOLFSSL* ssl);
#ifdef OPENSSL_EXTRA
WOLFSSL_API uint8_t wolfSSL_SESSION_get_max_fragment_length(
/* using unsigned char instead of uint8_t here to avoid stdint include */
WOLFSSL_API unsigned char wolfSSL_SESSION_get_max_fragment_length(
WOLFSSL_SESSION* session);
#endif
WOLFSSL_API int wolfSSL_SESSION_up_ref(WOLFSSL_SESSION* session);