From 96fc1e6078e276b854fb2694575c4cbcfc4d1926 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 31 Mar 2026 13:28:05 -0600 Subject: [PATCH] use native WOLFSSL_BIO_NOCLOSE instead of BIO_NOCLOSE in client example --- examples/client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client/client.c b/examples/client/client.c index 65f8c8617d..5c9fceb97b 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -1748,7 +1748,7 @@ static void showPeerPEM(WOLFSSL* ssl) LOG_ERROR("failed to get bio on stdout\n"); } else { - if (wolfSSL_BIO_set_fp(bioOut, stdout, BIO_NOCLOSE) + if (wolfSSL_BIO_set_fp(bioOut, stdout, WOLFSSL_BIO_NOCLOSE) != WOLFSSL_SUCCESS) { LOG_ERROR("failed to set stdout to bio output\n"); wolfSSL_BIO_free(bioOut); @@ -4378,7 +4378,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) #ifndef NO_BIO /* print out session to stdout */ { - WOLFSSL_BIO* bio = wolfSSL_BIO_new_fp(stdout, BIO_NOCLOSE); + WOLFSSL_BIO* bio = wolfSSL_BIO_new_fp(stdout, WOLFSSL_BIO_NOCLOSE); if (bio != NULL) { if (wolfSSL_SESSION_print(bio, wolfSSL_get_session(ssl)) != WOLFSSL_SUCCESS) {