Home
last modified time | relevance | path

Searched refs:wbio (Results 1 – 15 of 15) sorted by relevance

/external/conscrypt/common/src/jni/main/include/conscrypt/
Dscoped_ssl_bio.h30 ScopedSslBio(SSL* ssl, BIO* rbio, BIO* wbio) : ssl_(ssl) { in ScopedSslBio() argument
31 SSL_set_bio(ssl_, rbio, wbio); in ScopedSslBio()
33 BIO_up_ref(wbio); in ScopedSslBio()
/external/boringssl/src/ssl/
Dssl_buffer.cc244 int ret = BIO_write(ssl->wbio.get(), buf->data(), buf->size()); in tls_write_buffer_flush()
261 int ret = BIO_write(ssl->wbio.get(), buf->data(), buf->size()); in dtls_write_buffer_flush()
275 if (ssl->wbio == nullptr) { in ssl_write_buffer_flush()
Dssl_lib.cc766 void SSL_set0_wbio(SSL *ssl, BIO *wbio) { in SSL_set0_wbio() argument
767 ssl->wbio.reset(wbio); in SSL_set0_wbio()
770 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio) { in SSL_set_bio() argument
775 if (rbio == SSL_get_rbio(ssl) && wbio == SSL_get_wbio(ssl)) { in SSL_set_bio()
781 if (rbio != NULL && rbio == wbio) { in SSL_set_bio()
787 SSL_set0_wbio(ssl, wbio); in SSL_set_bio()
794 if (wbio == SSL_get_wbio(ssl) && SSL_get_rbio(ssl) != SSL_get_wbio(ssl)) { in SSL_set_bio()
801 SSL_set0_wbio(ssl, wbio); in SSL_set_bio()
806 BIO *SSL_get_wbio(const SSL *ssl) { return ssl->wbio.get(); } in SSL_get_wbio()
1621 BIO *wbio = SSL_get_wbio(ssl); in SSL_set_rfd() local
[all …]
Dd1_both.cc612 long mtu = BIO_ctrl(ssl->wbio.get(), BIO_CTRL_DGRAM_QUERY_MTU, 0, NULL); in dtls1_update_mtu()
617 BIO_ctrl(ssl->wbio.get(), BIO_CTRL_DGRAM_SET_MTU, ssl->d1->mtu, NULL); in dtls1_update_mtu()
797 int bio_ret = BIO_write(ssl->wbio.get(), packet, packet_len); in send_flight()
808 if (BIO_flush(ssl->wbio.get()) <= 0) { in send_flight()
Dd1_pkt.cc263 BIO_flush(ssl->wbio.get()); in dtls1_dispatch_alert()
Dd1_lib.cc175 BIO_ctrl(ssl->wbio.get(), BIO_CTRL_DGRAM_GET_FALLBACK_MTU, 0, nullptr); in dtls1_check_timeout_num()
Ds3_both.cc328 ssl->wbio.get(), in ssl3_flush_flight()
339 if (BIO_flush(ssl->wbio.get()) <= 0) { in ssl3_flush_flight()
Ds3_pkt.cc448 BIO_flush(ssl->wbio.get()); in ssl3_dispatch_alert()
Dssl_test.cc3971 UniquePtr<BIO> rbio(BIO_new(BIO_s_mem())), wbio(BIO_new(BIO_s_mem())); in TEST() local
3973 ASSERT_TRUE(wbio); in TEST()
3975 SSL_set0_wbio(ssl.get(), wbio.release()); in TEST()
4157 BIO *wbio = SSL_get_wbio(src); in MoveBIOs() local
4158 BIO_up_ref(wbio); in MoveBIOs()
4159 SSL_set0_wbio(dest, wbio); in MoveBIOs()
Dinternal.h3353 bssl::UniquePtr<BIO> wbio; // used by SSL_write
/external/boringssl/src/ssl/test/
Dfuzzer.h284 BIO *wbio = SSL_get_wbio(src); in MoveBIOs() local
285 BIO_up_ref(wbio); in MoveBIOs()
286 SSL_set0_wbio(dest, wbio); in MoveBIOs()
Dhandshake_util.cc142 BIO *wbio = SSL_get_wbio(src); in MoveBIOs() local
143 BIO_up_ref(wbio); in MoveBIOs()
144 SSL_set0_wbio(dest, wbio); in MoveBIOs()
/external/libevent/
Dbufferevent_openssl.c553 BIO *rbio, *wbio; in init_bio_counts() local
555 wbio = SSL_get_wbio(bev_ssl->ssl); in init_bio_counts()
556 bev_ssl->counts.n_written = wbio ? BIO_number_written(wbio) : 0; in init_bio_counts()
/external/boringssl/src/include/openssl/
Dssl.h268 OPENSSL_EXPORT void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
282 OPENSSL_EXPORT void SSL_set0_wbio(SSL *ssl, BIO *wbio);
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc8021 BIO* wbio = SSL_get_wbio(ssl); in sslRead() local
8041 size_t bytesMoved = BIO_number_read(rbio) + BIO_number_written(wbio); in sslRead()
8070 if (BIO_number_read(rbio) + BIO_number_written(wbio) != bytesMoved && in sslRead()
8291 BIO* wbio = SSL_get_wbio(ssl); in sslWrite() local
8313 size_t bytesMoved = BIO_number_read(rbio) + BIO_number_written(wbio); in sslWrite()
8343 if (BIO_number_read(rbio) + BIO_number_written(wbio) != bytesMoved && in sslWrite()