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.cc765 void SSL_set0_wbio(SSL *ssl, BIO *wbio) { in SSL_set0_wbio() argument
766 ssl->wbio.reset(wbio); in SSL_set0_wbio()
769 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio) { in SSL_set_bio() argument
774 if (rbio == SSL_get_rbio(ssl) && wbio == SSL_get_wbio(ssl)) { in SSL_set_bio()
780 if (rbio != NULL && rbio == wbio) { in SSL_set_bio()
786 SSL_set0_wbio(ssl, wbio); in SSL_set_bio()
793 if (wbio == SSL_get_wbio(ssl) && SSL_get_rbio(ssl) != SSL_get_wbio(ssl)) { in SSL_set_bio()
800 SSL_set0_wbio(ssl, wbio); in SSL_set_bio()
805 BIO *SSL_get_wbio(const SSL *ssl) { return ssl->wbio.get(); } in SSL_get_wbio()
1590 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.cc326 ssl->wbio.get(), in ssl3_flush_flight()
337 if (BIO_flush(ssl->wbio.get()) <= 0) { in ssl3_flush_flight()
Ds3_pkt.cc430 BIO_flush(ssl->wbio.get()); in ssl3_dispatch_alert()
Dssl_test.cc3824 UniquePtr<BIO> rbio(BIO_new(BIO_s_mem())), wbio(BIO_new(BIO_s_mem())); in TEST() local
3826 ASSERT_TRUE(wbio); in TEST()
3828 SSL_set0_wbio(ssl.get(), wbio.release()); in TEST()
4010 BIO *wbio = SSL_get_wbio(src); in MoveBIOs() local
4011 BIO_up_ref(wbio); in MoveBIOs()
4012 SSL_set0_wbio(dest, wbio); in MoveBIOs()
Dinternal.h3203 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.cc134 BIO *wbio = SSL_get_wbio(src); in MoveBIOs() local
135 BIO_up_ref(wbio); in MoveBIOs()
136 SSL_set0_wbio(dest, wbio); in MoveBIOs()
/external/libevent/
Dbufferevent_openssl.c549 BIO *rbio, *wbio; in init_bio_counts() local
551 wbio = SSL_get_wbio(bev_ssl->ssl); in init_bio_counts()
552 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.cc7887 BIO* wbio = SSL_get_wbio(ssl); in sslRead() local
7907 size_t bytesMoved = BIO_number_read(rbio) + BIO_number_written(wbio); in sslRead()
7936 if (BIO_number_read(rbio) + BIO_number_written(wbio) != bytesMoved && in sslRead()
8156 BIO* wbio = SSL_get_wbio(ssl); in sslWrite() local
8178 size_t bytesMoved = BIO_number_read(rbio) + BIO_number_written(wbio); in sslWrite()
8208 if (BIO_number_read(rbio) + BIO_number_written(wbio) != bytesMoved && in sslWrite()