Skip to content

Commit

Permalink
Fix cast warning with HAVE_EX_DATA in Windows VS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Nov 15, 2024
1 parent 69ab433 commit 52d168c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/ssl_sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52d168c

Please sign in to comment.