mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix ret val for wolfSSL_BIO_set_ssl
This commit is contained in:
@ -16015,15 +16015,18 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
|
|||||||
|
|
||||||
long wolfSSL_BIO_set_ssl(WOLFSSL_BIO* b, WOLFSSL* ssl, int closeF)
|
long wolfSSL_BIO_set_ssl(WOLFSSL_BIO* b, WOLFSSL* ssl, int closeF)
|
||||||
{
|
{
|
||||||
|
long ret = WOLFSSL_FAILURE;
|
||||||
|
|
||||||
WOLFSSL_ENTER("wolfSSL_BIO_set_ssl");
|
WOLFSSL_ENTER("wolfSSL_BIO_set_ssl");
|
||||||
|
|
||||||
if (b != NULL) {
|
if (b != NULL) {
|
||||||
b->ptr = ssl;
|
b->ptr = ssl;
|
||||||
b->shutdown = (byte)closeF;
|
b->shutdown = (byte)closeF;
|
||||||
/* add to ssl for bio free if SSL_free called before/instead of free_all? */
|
/* add to ssl for bio free if SSL_free called before/instead of free_all? */
|
||||||
|
ret = WOLFSSL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_FILESYSTEM
|
#ifndef NO_FILESYSTEM
|
||||||
|
Reference in New Issue
Block a user