Home
last modified time | relevance | path

Searched refs:rbio (Results 1 – 17 of 17) sorted by relevance

/third_party/openssl/doc/man3/
DSSL_set_bio.pod11 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
12 void SSL_set0_rbio(SSL *s, BIO *rbio);
17 SSL_set0_rbio() connects the BIO B<rbio> for the read operations of the B<ssl>
18 object. The SSL engine inherits the behaviour of B<rbio>. If the BIO is
20 function transfers ownership of B<rbio> to B<ssl>. It will be automatically
22 function, any existing B<rbio> that was previously set will also be freed via a
23 call to L<BIO_free_all(3)> (this includes the case where the B<rbio> is set to
28 rbio and wbio are the same then SSL_set0_rbio() and SSL_set0_wbio() each take
34 that it connects both the B<rbio> and the B<wbio> at the same time, and
35 transfers the ownership of B<rbio> and B<wbio> to B<ssl> according to
[all …]
/third_party/openssl/test/
Dbad_dtls_test.c192 static int send_hello_verify(BIO *rbio) in send_hello_verify() argument
215 BIO_write(rbio, hello_verify, sizeof(hello_verify)); in send_hello_verify()
220 static int send_server_hello(BIO *rbio) in send_server_hello() argument
264 BIO_write(rbio, server_hello, sizeof(server_hello)); in send_server_hello()
265 BIO_write(rbio, change_cipher_spec, sizeof(change_cipher_spec)); in send_server_hello()
271 static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr, in send_record() argument
330 BIO_write(rbio, &type, 1); in send_record()
331 BIO_write(rbio, ver, 2); in send_record()
332 BIO_write(rbio, epoch, 2); in send_record()
333 BIO_write(rbio, seq, 6); in send_record()
[all …]
Dservername_test.c88 BIO *rbio; in client_setup_sni_before_state() local
105 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_before_state()
107 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_before_state()
108 BIO_free(rbio); in client_setup_sni_before_state()
113 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state()
136 BIO *rbio; in client_setup_sni_after_state() local
150 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_after_state()
152 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_after_state()
153 BIO_free(rbio); in client_setup_sni_after_state()
158 SSL_set_bio(con, rbio, wbio); in client_setup_sni_after_state()
Dclienthellotest.c63 BIO *rbio; in test_client_hello() local
167 rbio = BIO_new(BIO_s_mem()); in test_client_hello()
169 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_client_hello()
170 BIO_free(rbio); in test_client_hello()
175 SSL_set_bio(con, rbio, wbio); in test_client_hello()
Dsslapitest.c2272 BIO *rbio; in test_early_data_read_write() local
2338 rbio = SSL_get_rbio(serverssl); in test_early_data_read_write()
2339 if (!TEST_true(BIO_read_ex(rbio, data, sizeof(data), &rawread)) in test_early_data_read_write()
2346 if (!TEST_true(BIO_write_ex(rbio, data, eoedlen, &rawwritten)) in test_early_data_read_write()
2367 if (!TEST_true(BIO_write_ex(rbio, data + eoedlen, rawread - eoedlen, in test_early_data_read_write()
4907 BIO *rbio, *wbio; in test_max_fragment_len_ext() local
4921 rbio = BIO_new(BIO_s_mem()); in test_max_fragment_len_ext()
4923 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_max_fragment_len_ext()
4924 BIO_free(rbio); in test_max_fragment_len_ext()
4929 SSL_set_bio(con, rbio, wbio); in test_max_fragment_len_ext()
[all …]
/third_party/openssl/apps/
Denc.c97 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main() local
380 rbio = in; in enc_main()
394 rbio = BIO_push(bzl, rbio); in enc_main()
410 rbio = BIO_push(b64, rbio); in enc_main()
450 } else if (BIO_read(rbio, mbuf, sizeof(mbuf)) != sizeof(mbuf) in enc_main()
451 || BIO_read(rbio, in enc_main()
590 while (BIO_pending(rbio) || !BIO_eof(rbio)) { in enc_main()
591 inl = BIO_read(rbio, (char *)buff, bsize); in enc_main()
/third_party/openssl/ssl/
Dbio_ssl.c252 else if (ssl->rbio != NULL) in ssl_ctrl()
253 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr); in ssl_ctrl()
319 ret = BIO_pending(ssl->rbio); in ssl_ctrl()
327 if ((next != NULL) && (next != ssl->rbio)) { in ssl_ctrl()
381 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr); in ssl_ctrl()
387 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr); in ssl_ctrl()
403 ret = BIO_callback_ctrl(ssl->rbio, cmd, fp); in ssl_callback_ctrl()
Dd1_lib.c455 BIO *rbio, *wbio; in DTLSv1_listen() local
470 rbio = SSL_get_rbio(s); in DTLSv1_listen()
473 if (!rbio || !wbio) { in DTLSv1_listen()
514 n = BIO_read(rbio, buf, SSL3_RT_MAX_PLAIN_LENGTH in DTLSv1_listen()
517 if (BIO_should_retry(rbio)) { in DTLSv1_listen()
794 if (BIO_dgram_get_peer(rbio, tmpclient) > 0) { in DTLSv1_listen()
848 if (BIO_dgram_get_peer(rbio, client) <= 0) in DTLSv1_listen()
Dssl_lib.c1166 BIO_free_all(s->rbio); in SSL_free()
1242 void SSL_set0_rbio(SSL *s, BIO *rbio) in SSL_set0_rbio() argument
1244 BIO_free_all(s->rbio); in SSL_set0_rbio()
1245 s->rbio = rbio; in SSL_set0_rbio()
1264 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
1272 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s)) in SSL_set_bio()
1279 if (rbio != NULL && rbio == wbio) in SSL_set_bio()
1280 BIO_up_ref(rbio); in SSL_set_bio()
1285 if (rbio == SSL_get_rbio(s)) { in SSL_set_bio()
1295 SSL_set0_rbio(s, rbio); in SSL_set_bio()
[all …]
Dssl_local.h1081 BIO *rbio; member
/third_party/openssl/crypto/cms/
Dcms_smime.c21 BIO *rbio; in cms_get_text_bio() local
23 rbio = BIO_new(BIO_s_null()); in cms_get_text_bio()
25 rbio = BIO_new(BIO_s_mem()); in cms_get_text_bio()
26 BIO_set_mem_eof_return(rbio, 0); in cms_get_text_bio()
28 rbio = out; in cms_get_text_bio()
29 return rbio; in cms_get_text_bio()
/third_party/openssl/ssl/record/
Drec_layer_s3.c293 if (s->rbio != NULL) { in ssl3_read_n()
296 ret = BIO_read(s->rbio, pkt + len + left, max - left); in ssl3_read_n()
1575 BIO *rbio; in ssl3_read_bytes() local
1592 rbio = SSL_get_rbio(s); in ssl3_read_bytes()
1593 BIO_clear_retry_flags(rbio); in ssl3_read_bytes()
1594 BIO_set_retry_read(rbio); in ssl3_read_bytes()
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/include/openssl/
Dssl.h1688 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
/third_party/openssl/ssl/statem/
Dstatem_clnt.c380 BIO *rbio; in ossl_statem_client_read_transition() local
388 rbio = SSL_get_rbio(s); in ossl_statem_client_read_transition()
389 BIO_clear_retry_flags(rbio); in ossl_statem_client_read_transition()
390 BIO_set_retry_read(rbio); in ossl_statem_client_read_transition()
Dstatem_srvr.c298 BIO *rbio; in ossl_statem_server_read_transition() local
306 rbio = SSL_get_rbio(s); in ossl_statem_server_read_transition()
307 BIO_clear_retry_flags(rbio); in ossl_statem_server_read_transition()
308 BIO_set_retry_read(rbio); in ossl_statem_server_read_transition()
/third_party/openssl/include/openssl/
Dssl.h1543 void SSL_set0_rbio(SSL *s, BIO *rbio);
1545 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
/third_party/openssl/doc/man7/
Dssl.pod635 =item void B<SSL_set_bio>(SSL *ssl, BIO *rbio, BIO *wbio);