Skip to content

Commit 431ee9e

Browse files
committed
Implement wolfSSL_BIO_set_init
1 parent 84da6d2 commit 431ee9e

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/bio.c

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,13 @@ void* wolfSSL_BIO_get_data(WOLFSSL_BIO* bio)
20282028
return NULL;
20292029
}
20302030

2031+
void wolfSSL_BIO_set_init(WOLFSSL_BIO* bio, int init)
2032+
{
2033+
WOLFSSL_ENTER("wolfSSL_BIO_set_init");
2034+
if (bio != NULL)
2035+
bio->init = (byte)(init != 0);
2036+
}
2037+
20312038
/* If flag is 0 then blocking is set, if 1 then non blocking.
20322039
* Always returns WOLFSSL_SUCCESS.
20332040
*/
@@ -3635,15 +3642,6 @@ int wolfSSL_BIO_new_bio_pair(WOLFSSL_BIO **bio1_p, size_t writebuf1,
36353642

36363643
#ifdef OPENSSL_ALL
36373644

3638-
#ifndef NO_WOLFSSL_STUB
3639-
void wolfSSL_BIO_set_init(WOLFSSL_BIO* bio, int init)
3640-
{
3641-
WOLFSSL_STUB("wolfSSL_BIO_set_init");
3642-
(void)bio;
3643-
(void)init;
3644-
}
3645-
#endif /* NO_WOLFSSL_STUB */
3646-
36473645
void wolfSSL_BIO_set_shutdown(WOLFSSL_BIO* bio, int shut)
36483646
{
36493647
WOLFSSL_ENTER("wolfSSL_BIO_set_shutdown");

0 commit comments

Comments
 (0)