Lines Matching refs:wbio
1197 BIO_free_all(s->wbio);
1198 s->wbio = NULL;
1278 void SSL_set0_wbio(SSL *s, BIO *wbio)
1284 s->wbio = BIO_pop(s->wbio);
1286 BIO_free_all(s->wbio);
1287 s->wbio = wbio;
1289 /* Re-attach |bbio| to the new |wbio|. */
1291 s->wbio = BIO_push(s->bbio, s->wbio);
1294 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio)
1302 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s))
1309 if (rbio != NULL && rbio == wbio)
1313 * If only the wbio is changed only adopt one reference.
1316 SSL_set0_wbio(s, wbio);
1321 * changed AND the rbio and wbio were originally different, then we only
1324 if (wbio == SSL_get_wbio(s) && SSL_get_rbio(s) != SSL_get_wbio(s)) {
1331 SSL_set0_wbio(s, wbio);
1348 return s->wbio;
1440 BIO *wbio = SSL_get_wbio(s);
1442 if (wbio == NULL || BIO_method_type(wbio) != BIO_TYPE_SOCKET
1443 || ((int)BIO_get_fd(wbio, NULL) != fd)) {
1453 BIO_up_ref(wbio);
1454 SSL_set0_rbio(s, wbio);
2084 if (!BIO_get_ktls_send(s->wbio)) {
2100 if (BIO_flush(s->wbio) <= 0) {
2101 if (!BIO_should_retry(s->wbio)) {
2122 BIO_set_retry_write(s->wbio);
2225 (void)BIO_flush(s->wbio);
2394 if (s->wbio != NULL && BIO_get_ktls_send(s->wbio))
3869 * to the rbio, and an application program where rbio and wbio
3873 * wbio *are* the same, this test works around that bug; so it
3889 /* Access wbio directly - in order to use the buffered bio if present */
3890 bio = s->wbio;
4274 s->wbio = BIO_push(bbio, s->wbio);
4285 s->wbio = BIO_pop(s->wbio);