Home
last modified time | relevance | path

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

12

/src/crypto/openssl/doc/man3/
H A 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
26 If using a custom BIO, B<rbio> must implement either
31 rbio and wbio are the same then SSL_set0_rbio() and SSL_set0_wbio() each take
43 that it connects both the B<rbio> and the B<wbio> at the same time, and
[all …]
H A DX509_load_http.pod15 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
16 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
33 If B<bio> is given and B<rbio> is NULL then this BIO is used instead of an
35 If both B<bio> and B<rbio> are given (which may be memory BIOs, for instance)
37 B<bio> is used for writing the request, and B<rbio> for reading the response.
H A DOSSL_HTTP_transfer.pod23 int use_ssl, BIO *bio, BIO *rbio,
36 BIO *bio, BIO *rbio,
45 BIO *bio, BIO *rbio,
59 In this case I<rbio> must be NULL as well and the I<server> must be non-NULL.
66 If I<bio> is given and I<rbio> is NULL then this I<bio> is used instead.
67 If both I<bio> and I<rbio> are given (which may be memory BIOs for instance)
69 I<bio> is used for writing requests and I<rbio> for reading responses.
71 a response or indicate a waiting condition via I<rbio>.
100 but cannot be used when both I<bio> and I<rbio> are given.
H A DOSSL_HTTP_REQ_CTX.pod28 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
67 the B<BIO> to read/receive the response from (I<rbio>, which may be equal to
76 The I<rbio> is not free'd, I<wbio> will be free'd if I<free_wbio> is set.
117 In this case the BIO given as I<rbio> argument to OSSL_HTTP_REQ_CTX_new() should
149 and to gather the response via HTTP, using the I<wbio> and I<rbio>
175 Otherwise the returned BIO is the I<rbio> given to OSSL_HTTP_REQ_CTX_new(),
H A DOSSL_CMP_MSG_http_perform.pod23 as described for the I<bio> and I<rbio> parameters of L<OSSL_HTTP_open(3)>.
/src/crypto/openssl/test/
H A Dbad_dtls_test.c274 static int send_hello_verify(BIO *rbio) in send_hello_verify() argument
330 BIO_write(rbio, hello_verify, sizeof(hello_verify)); in send_hello_verify()
335 static int send_server_hello(BIO *rbio) in send_server_hello() argument
462 BIO_write(rbio, server_hello, sizeof(server_hello)); in send_server_hello()
463 BIO_write(rbio, change_cipher_spec, sizeof(change_cipher_spec)); in send_server_hello()
469 static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr, in send_record() argument
537 BIO_write(rbio, &type, 1); in send_record()
538 BIO_write(rbio, ver, 2); in send_record()
539 BIO_write(rbio, epoch, 2); in send_record()
540 BIO_write(rbio, seq, 6); in send_record()
[all …]
H A Dservername_test.c99 BIO *rbio; in client_setup_sni_before_state() local
120 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_before_state()
122 if (!TEST_ptr(rbio) || !TEST_ptr(wbio)) { in client_setup_sni_before_state()
123 BIO_free(rbio); in client_setup_sni_before_state()
128 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state()
151 BIO *rbio; in client_setup_sni_after_state() local
169 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_after_state()
171 if (!TEST_ptr(rbio) || !TEST_ptr(wbio)) { in client_setup_sni_after_state()
172 BIO_free(rbio); in client_setup_sni_after_state()
177 SSL_set_bio(con, rbio, wbio); in client_setup_sni_after_state()
H A Dhttp_test.c158 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_method() local
184 if (wbio == NULL || rbio == NULL || req == NULL) in test_http_method()
187 mock_args.out = rbio; in test_http_method()
195 real_server ? NULL : rbio, in test_http_method()
203 wbio, rbio, NULL /* bio_fn */, NULL /* arg */, in test_http_method()
237 BIO_free(rbio); in test_http_method()
245 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local
252 if (wbio == NULL || rbio == NULL) in test_http_keep_alive()
254 mock_args.out = rbio; in test_http_keep_alive()
265 wbio, rbio, NULL /* bio_update_fn */, NULL, in test_http_keep_alive()
[all …]
H A Dmembio_test.c16 BIO *bio = BIO_new(BIO_s_dgram_mem()), *rbio = NULL; in test_dgram() local
27 rbio = BIO_new_mem_buf(msg1, sizeof(msg1)); in test_dgram()
28 if (!TEST_ptr(rbio)) in test_dgram()
32 if (!TEST_int_gt(BIO_set_mem_eof_return(rbio, 0), 0)) in test_dgram()
108 BIO_free(rbio); in test_dgram()
H A Dclienthellotest.c55 BIO *rbio; in test_client_hello() local
133 rbio = BIO_new(BIO_s_mem()); in test_client_hello()
135 if (!TEST_ptr(rbio) || !TEST_ptr(wbio)) { in test_client_hello()
136 BIO_free(rbio); in test_client_hello()
141 SSL_set_bio(con, rbio, wbio); in test_client_hello()
H A Ddtlstest.c397 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local
430 rbio = BIO_new(BIO_s_mem()); in test_just_finished()
433 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished()
436 sbio = rbio; in test_just_finished()
437 SSL_set0_rbio(serverssl, rbio); in test_just_finished()
439 rbio = wbio = NULL; in test_just_finished()
458 BIO_free(rbio); in test_just_finished()
H A Dsslapitest.c1232 if (!TEST_false(BIO_get_ktls_recv(clientsc->rbio))) in execute_test_ktls()
1235 if (BIO_get_ktls_send(clientsc->rbio)) in execute_test_ktls()
1240 if (!TEST_false(BIO_get_ktls_recv(serversc->rbio))) in execute_test_ktls()
1243 if (BIO_get_ktls_send(serversc->rbio)) in execute_test_ktls()
3564 BIO *rbio; in test_early_data_read_write() local
3645 rbio = SSL_get_rbio(serverssl); in test_early_data_read_write()
3646 if (!TEST_true(BIO_read_ex(rbio, data, sizeof(data), &rawread)) in test_early_data_read_write()
3653 if (!TEST_true(BIO_write_ex(rbio, data, eoedlen, &rawwritten)) in test_early_data_read_write()
3674 if (!TEST_true(BIO_write_ex(rbio, data + eoedlen, rawread - eoedlen, in test_early_data_read_write()
7426 BIO *rbio, *wbio; in test_max_fragment_len_ext() local
[all …]
/src/crypto/openssl/apps/
H A Denc.c149 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = NULL, *wbio = NULL; in enc_main() local
480 rbio = in; in enc_main()
495 rbio = BIO_push(bzl, rbio); in enc_main()
509 rbio = BIO_push(bbrot, rbio); in enc_main()
522 rbio = BIO_push(bzstd, rbio); in enc_main()
538 rbio = BIO_push(b64, rbio); in enc_main()
582 if (BIO_read(rbio, mbuf, sizeof(mbuf)) != sizeof(mbuf)) { in enc_main()
587 if (BIO_read(rbio, salt, in enc_main()
775 while (BIO_pending(rbio) || !BIO_eof(rbio)) { in enc_main()
776 inl = BIO_read(rbio, (char *)buff, bsize); in enc_main()
[all …]
/src/crypto/openssl/crypto/http/
H A Dhttp_client.c51 BIO *rbio; /* BIO to read/receive response from */ member
98 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size) in OSSL_HTTP_REQ_CTX_new() argument
102 if (wbio == NULL || rbio == NULL) { in OSSL_HTTP_REQ_CTX_new()
113 rctx->rbio = rbio; in OSSL_HTTP_REQ_CTX_new()
395 static OSSL_HTTP_REQ_CTX *http_req_ctx_new(int free_wbio, BIO *wbio, BIO *rbio, in http_req_ctx_new() argument
402 OSSL_HTTP_REQ_CTX *rctx = OSSL_HTTP_REQ_CTX_new(wbio, rbio, buf_size); in http_req_ctx_new()
565 if (rctx->mem == NULL || rctx->wbio == NULL || rctx->rbio == NULL) { in OSSL_HTTP_REQ_CTX_nbio()
575 n = BIO_read(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio()
578 n = BIO_gets(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio()
581 n = BIO_get_line(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio()
[all …]
/src/crypto/openssl/include/openssl/
H A Dhttp.h48 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
76 int use_ssl, BIO *bio, BIO *rbio,
89 BIO *bio, BIO *rbio,
98 BIO *bio, BIO *rbio,
/src/crypto/openssl/ssl/
H A Dd1_lib.c361 dtls1_bio_set_next_timeout(s->rbio, s->d1); in dtls1_stop_timer()
426 BIO *rbio, *wbio; in DTLSv1_listen() local
445 rbio = SSL_get_rbio(ssl); in DTLSv1_listen()
448 if (!rbio || !wbio) { in DTLSv1_listen()
478 n = BIO_read(rbio, buf, SSL3_RT_MAX_PLAIN_LENGTH + DTLS1_RT_HEADER_LENGTH); in DTLSv1_listen()
480 if (BIO_should_retry(rbio)) { in DTLSv1_listen()
760 if (BIO_dgram_get_peer(rbio, tmpclient) > 0) { in DTLSv1_listen()
815 if (BIO_dgram_get_peer(rbio, client) <= 0) in DTLSv1_listen()
H A Dssl_lib.c1537 BIO_free_all(s->rbio); in ossl_ssl_connection_free()
1538 s->rbio = NULL; in ossl_ssl_connection_free()
1542 void SSL_set0_rbio(SSL *s, BIO *rbio) in SSL_set0_rbio() argument
1548 ossl_quic_conn_set0_net_rbio(s, rbio); in SSL_set0_rbio()
1556 BIO_free_all(sc->rbio); in SSL_set0_rbio()
1557 sc->rbio = rbio; in SSL_set0_rbio()
1558 sc->rlayer.rrlmethod->set1_bio(sc->rlayer.rrl, sc->rbio); in SSL_set0_rbio()
1591 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
1599 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s)) in SSL_set_bio()
1606 if (rbio != NULL && rbio == wbio) { in SSL_set_bio()
[all …]
H A Dbio_ssl.c261 else if (sc->rbio != NULL) in ssl_ctrl()
262 ret = BIO_ctrl(sc->rbio, cmd, num, ptr); in ssl_ctrl()
/src/crypto/openssl/ssl/record/
H A Drec_layer_d1.c121 …if (BIO_dgram_is_sctp(s->rbio) && (ossl_statem_get_state(s) == TLS_ST_SR_FINISHED || ossl_statem_g… in dtls_buffer_record()
122 BIO_ctrl(s->rbio, BIO_CTRL_DGRAM_SCTP_GET_RCVINFO, in dtls_buffer_record()
157 if (BIO_dgram_is_sctp(s->rbio)) { in dtls_unbuffer_record()
158 BIO_ctrl(s->rbio, BIO_CTRL_DGRAM_SCTP_SET_RCVINFO, in dtls_unbuffer_record()
H A Drec_layer_s3.c948 BIO *rbio; in ssl3_read_bytes() local
965 rbio = SSL_get_rbio(ssl); in ssl3_read_bytes()
966 BIO_clear_retry_flags(rbio); in ssl3_read_bytes()
967 BIO_set_retry_read(rbio); in ssl3_read_bytes()
1273 thisbio = s->rbio; in ssl_set_new_record_layer()
/src/crypto/openssl/crypto/cms/
H A Dcms_smime.c22 BIO *rbio; in cms_get_text_bio() local
25 rbio = BIO_new(BIO_s_null()); in cms_get_text_bio()
27 rbio = BIO_new(BIO_s_mem()); in cms_get_text_bio()
28 BIO_set_mem_eof_return(rbio, 0); in cms_get_text_bio()
30 rbio = out; in cms_get_text_bio()
31 return rbio; in cms_get_text_bio()
/src/crypto/openssl/crypto/x509/
H A Dx_all.c115 static ASN1_VALUE *simple_get_asn1(const char *url, BIO *bio, BIO *rbio, in simple_get_asn1() argument
121 bio, rbio, NULL /* cb */, NULL /* arg */, in simple_get_asn1()
134 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_load_http() argument
136 return (X509 *)simple_get_asn1(url, bio, rbio, timeout, in X509_load_http()
188 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_CRL_load_http() argument
190 return (X509_CRL *)simple_get_asn1(url, bio, rbio, timeout, in X509_CRL_load_http()
/src/contrib/ntp/sntp/libevent/
H A Dbufferevent_openssl.c553 BIO *rbio, *wbio; in init_bio_counts() local
557 rbio = SSL_get_rbio(bev_ssl->ssl); in init_bio_counts()
558 bev_ssl->counts.n_read = rbio ? BIO_number_read(rbio) : 0; in init_bio_counts()
/src/contrib/libevent/
H A Dbufferevent_openssl.c553 BIO *rbio, *wbio; in init_bio_counts() local
557 rbio = SSL_get_rbio(bev_ssl->ssl); in init_bio_counts()
558 bev_ssl->counts.n_read = rbio ? BIO_number_read(rbio) : 0; in init_bio_counts()
/src/crypto/openssl/ssl/statem/
H A Dstatem_srvr.c327 BIO *rbio; in ossl_statem_server_read_transition() local
335 rbio = SSL_get_rbio(SSL_CONNECTION_GET_SSL(s)); in ossl_statem_server_read_transition()
336 BIO_clear_retry_flags(rbio); in ossl_statem_server_read_transition()
337 BIO_set_retry_read(rbio); in ossl_statem_server_read_transition()

12