diff --git a/src/ssl.c b/src/ssl.c index 4da12f4b1..a74809f8f 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -16601,7 +16601,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl) } - int wolfSSL_BIO_free_all(WOLFSSL_BIO* bio) + void wolfSSL_BIO_free_all(WOLFSSL_BIO* bio) { WOLFSSL_ENTER("BIO_free_all"); while (bio) { @@ -16609,7 +16609,6 @@ int wolfSSL_set_compression(WOLFSSL* ssl) wolfSSL_BIO_free(bio); bio = next; } - return 0; } diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index d4f15652f..a131c6842 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -1371,7 +1371,7 @@ WOLFSSL_API WOLFSSL_BIO* wolfSSL_BIO_new(WOLFSSL_BIO_METHOD*); #endif WOLFSSL_API int wolfSSL_BIO_free(WOLFSSL_BIO*); WOLFSSL_API void wolfSSL_BIO_vfree(WOLFSSL_BIO*); -WOLFSSL_API int wolfSSL_BIO_free_all(WOLFSSL_BIO*); +WOLFSSL_API void wolfSSL_BIO_free_all(WOLFSSL_BIO*); WOLFSSL_API int wolfSSL_BIO_gets(WOLFSSL_BIO* bio, char* buf, int sz); WOLFSSL_API int wolfSSL_BIO_puts(WOLFSSL_BIO* bio, const char* buf); WOLFSSL_API WOLFSSL_BIO* wolfSSL_BIO_next(WOLFSSL_BIO* bio);