From 52d168c161f1c3b34b02edd0f849fd0501135f21 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 14 Nov 2024 18:32:07 -0800 Subject: [PATCH] Fix cast warning with `HAVE_EX_DATA` in Windows VS. --- examples/client/client.c | 3 ++- src/ssl_sess.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/client/client.c b/examples/client/client.c index 5c4b77610e..13f26e20fb 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -3765,7 +3765,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) #ifndef NO_PSK if (usePsk) { - #if defined(OPENSSL_EXTRA) && defined(WOLFSSL_TLS13) && defined(TEST_PSK_USE_SESSION) + #if defined(OPENSSL_EXTRA) && defined(WOLFSSL_TLS13) && \ + defined(TEST_PSK_USE_SESSION) SSL_set_psk_use_session_callback(ssl, my_psk_use_session_cb); #endif } diff --git a/src/ssl_sess.c b/src/ssl_sess.c index 91f2c8473f..19b5aab231 100644 --- a/src/ssl_sess.c +++ b/src/ssl_sess.c @@ -191,7 +191,7 @@ void EvictSessionFromCache(WOLFSSL_SESSION* session) { #ifdef HAVE_EX_DATA - int save_ownExData = session->ownExData; + byte save_ownExData = session->ownExData; session->ownExData = 1; /* Make sure ex_data access doesn't lead back * into the cache. */ #endif