mirror of https://github.com/wolfSSL/wolfssl.git
Fix ret val for wolfSSL_BIO_set_ssl
parent
ad58478d29
commit
ebb2c7ae71
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue