Merge pull request #4130 from embhorn/zd12463

Fix BIO_free_all return type
pull/4132/head
David Garske 2021-06-16 10:06:49 -07:00 committed by GitHub
commit 852892c85b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);