Lines Matching refs:wbio
1261 BIO_free_all(s->wbio);
1262 s->wbio = NULL;
1360 void SSL_set0_wbio(SSL *s, BIO *wbio)
1366 s->wbio = BIO_pop(s->wbio);
1368 BIO_free_all(s->wbio);
1369 s->wbio = wbio;
1371 /* Re-attach |bbio| to the new |wbio|. */
1373 s->wbio = BIO_push(s->bbio, s->wbio);
1376 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio)
1384 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s))
1391 if (rbio != NULL && rbio == wbio)
1395 * If only the wbio is changed only adopt one reference.
1398 SSL_set0_wbio(s, wbio);
1403 * changed AND the rbio and wbio were originally different, then we only
1406 if (wbio == SSL_get_wbio(s) && SSL_get_rbio(s) != SSL_get_wbio(s)) {
1413 SSL_set0_wbio(s, wbio);
1430 return s->wbio;
1522 BIO *wbio = SSL_get_wbio(s);
1524 if (wbio == NULL || BIO_method_type(wbio) != BIO_TYPE_SOCKET
1525 || ((int)BIO_get_fd(wbio, NULL) != fd)) {
1535 BIO_up_ref(wbio);
1536 SSL_set0_rbio(s, wbio);
2184 if (!BIO_get_ktls_send(s->wbio)) {
2200 if (BIO_flush(s->wbio) <= 0) {
2201 if (!BIO_should_retry(s->wbio)) {
2222 BIO_set_retry_write(s->wbio);
2325 (void)BIO_flush(s->wbio);
2494 if (s->wbio != NULL && BIO_get_ktls_send(s->wbio))
3973 * to the rbio, and an application program where rbio and wbio
3977 * wbio *are* the same, this test works around that bug; so it
3993 /* Access wbio directly - in order to use the buffered bio if present */
3994 bio = s->wbio;
4393 s->wbio = BIO_push(bbio, s->wbio);
4404 s->wbio = BIO_pop(s->wbio);