Skip to content

Commit 96fc1e6

Browse files
use native WOLFSSL_BIO_NOCLOSE instead of BIO_NOCLOSE in client example
1 parent 81c3d26 commit 96fc1e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/client/client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ static void showPeerPEM(WOLFSSL* ssl)
17481748
LOG_ERROR("failed to get bio on stdout\n");
17491749
}
17501750
else {
1751-
if (wolfSSL_BIO_set_fp(bioOut, stdout, BIO_NOCLOSE)
1751+
if (wolfSSL_BIO_set_fp(bioOut, stdout, WOLFSSL_BIO_NOCLOSE)
17521752
!= WOLFSSL_SUCCESS) {
17531753
LOG_ERROR("failed to set stdout to bio output\n");
17541754
wolfSSL_BIO_free(bioOut);
@@ -4378,7 +4378,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
43784378
#ifndef NO_BIO
43794379
/* print out session to stdout */
43804380
{
4381-
WOLFSSL_BIO* bio = wolfSSL_BIO_new_fp(stdout, BIO_NOCLOSE);
4381+
WOLFSSL_BIO* bio = wolfSSL_BIO_new_fp(stdout, WOLFSSL_BIO_NOCLOSE);
43824382
if (bio != NULL) {
43834383
if (wolfSSL_SESSION_print(bio, wolfSSL_get_session(ssl)) !=
43844384
WOLFSSL_SUCCESS) {

0 commit comments

Comments
 (0)