mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Fix for BIO ssl case, which is not supported (for the Boost.Asio project this isn't required either).
This commit is contained in:
@ -696,7 +696,8 @@ size_t wolfSSL_BIO_wpending(const WOLFSSL_BIO *bio)
|
||||
return 0;
|
||||
|
||||
if (bio->ssl != NULL) {
|
||||
return (long)wolfSSL_pending(bio->ssl);
|
||||
/* not supported case */
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (bio->type == WOLFSSL_BIO_MEMORY) {
|
||||
@ -710,7 +711,6 @@ size_t wolfSSL_BIO_wpending(const WOLFSSL_BIO *bio)
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
/* Return the number of pending bytes in read and write buffers */
|
||||
|
Reference in New Issue
Block a user