Lines Matching defs:wbio
1208 BIO_free_all(s->wbio);
1209 s->wbio = NULL;
1293 void SSL_set0_wbio(SSL *s, BIO *wbio)
1299 s->wbio = BIO_pop(s->wbio);
1301 BIO_free_all(s->wbio);
1302 s->wbio = wbio;
1304 /* Re-attach |bbio| to the new |wbio|. */
1306 s->wbio = BIO_push(s->bbio, s->wbio);
1309 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio)
1317 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s))
1324 if (rbio != NULL && rbio == wbio)
1328 * If only the wbio is changed only adopt one reference.
1331 SSL_set0_wbio(s, wbio);
1336 * changed AND the rbio and wbio were originally different, then we only
1339 if (wbio == SSL_get_wbio(s) && SSL_get_rbio(s) != SSL_get_wbio(s)) {
1346 SSL_set0_wbio(s, wbio);
1363 return s->wbio;
1455 BIO *wbio = SSL_get_wbio(s);
1457 if (wbio == NULL || BIO_method_type(wbio) != BIO_TYPE_SOCKET
1458 || ((int)BIO_get_fd(wbio, NULL) != fd)) {
1468 BIO_up_ref(wbio);
1469 SSL_set0_rbio(s, wbio);
2099 if (!BIO_get_ktls_send(s->wbio)) {
2115 if (BIO_flush(s->wbio) <= 0) {
2116 if (!BIO_should_retry(s->wbio)) {
2137 BIO_set_retry_write(s->wbio);
2240 (void)BIO_flush(s->wbio);
2409 if (s->wbio != NULL && BIO_get_ktls_send(s->wbio))
3884 * to the rbio, and an application program where rbio and wbio
3888 * wbio *are* the same, this test works around that bug; so it
3904 /* Access wbio directly - in order to use the buffered bio if present */
3905 bio = s->wbio;
4289 s->wbio = BIO_push(bbio, s->wbio);
4300 s->wbio = BIO_pop(s->wbio);