/openssl/doc/man3/ |
H A D | SSL_set_bio.pod | 11 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio); 12 void SSL_set0_rbio(SSL *s, BIO *rbio); 18 object. The SSL engine inherits the behaviour of B<rbio>. If the BIO is 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 54 If the B<rbio> and B<wbio> parameters are the same and the B<rbio> is not 59 If the B<rbio> and B<wbio> parameters are the same and the B<rbio> is the 64 If the B<rbio> and B<wbio> parameters are different and the B<rbio> is the 67 references are consumed for the B<rbio>. 78 If the B<rbio> and B<wbio> parameters are different and the B<wbio> [all …]
|
H A D | X509_load_http.pod | 15 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 D | OSSL_HTTP_transfer.pod | 23 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. 65 If I<bio> is given and I<rbio> is NULL then this I<bio> is used instead. 66 If both I<bio> and I<rbio> are given (which may be memory BIOs for instance) 68 I<bio> is used for writing requests and I<rbio> for reading responses. 70 a response or indicate a waiting condition via I<rbio>. 98 but cannot be used when both I<bio> and I<rbio> are given.
|
H A D | OSSL_HTTP_REQ_CTX.pod | 28 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size); 68 the B<BIO> to read/receive the response from (I<rbio>, which may be equal to 77 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 147 and to gather the response via HTTP, using the I<wbio> and I<rbio> 163 Otherwise the returned BIO is the I<rbio> given to OSSL_HTTP_REQ_CTX_new(),
|
/openssl/test/ |
H A D | bad_dtls_test.c | 342 BIO_write(rbio, &type, 1); in send_record() 343 BIO_write(rbio, ver, 2); in send_record() 344 BIO_write(rbio, epoch, 2); in send_record() 345 BIO_write(rbio, seq, 6); in send_record() 348 BIO_write(rbio, lenbytes, 2); in send_record() 351 BIO_write(rbio, enc, len); in send_record() 472 BIO *rbio = NULL; in test_bad_dtls() local 512 rbio = BIO_new(BIO_s_mem()); in test_bad_dtls() 515 if (!TEST_ptr(rbio) in test_bad_dtls() 526 rbio = wbio = NULL; in test_bad_dtls() [all …]
|
H A D | http_test.c | 126 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_method() local 152 mock_args.out = rbio; in test_http_method() 162 real_server ? NULL : rbio, in test_http_method() 200 BIO_free(rbio); in test_http_method() 208 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local 215 if (wbio == NULL || rbio == NULL) in test_http_keep_alive() 217 mock_args.out = rbio; in test_http_keep_alive() 248 BIO_free(rbio); in test_http_keep_alive() 422 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_resp_hdr_limit() local 434 mock_args.out = rbio; in test_http_resp_hdr_limit() [all …]
|
H A D | servername_test.c | 101 BIO *rbio; in client_setup_sni_before_state() local 122 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_before_state() 124 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_before_state() 125 BIO_free(rbio); in client_setup_sni_before_state() 130 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state() 153 BIO *rbio; in client_setup_sni_after_state() local 171 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_after_state() 173 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_after_state() 174 BIO_free(rbio); in client_setup_sni_after_state() 179 SSL_set_bio(con, rbio, wbio); in client_setup_sni_after_state()
|
H A D | membio_test.c | 16 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 D | clienthellotest.c | 63 BIO *rbio; in test_client_hello() local 172 rbio = BIO_new(BIO_s_mem()); in test_client_hello() 174 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_client_hello() 175 BIO_free(rbio); in test_client_hello() 180 SSL_set_bio(con, rbio, wbio); in test_client_hello()
|
H A D | dtlstest.c | 401 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local 435 rbio = BIO_new(BIO_s_mem()); in test_just_finished() 438 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished() 441 sbio = rbio; in test_just_finished() 442 SSL_set0_rbio(serverssl, rbio); in test_just_finished() 444 rbio = wbio = NULL; in test_just_finished() 463 BIO_free(rbio); in test_just_finished()
|
H A D | sslapitest.c | 3546 BIO *rbio; in test_early_data_read_write() local 3627 rbio = SSL_get_rbio(serverssl); in test_early_data_read_write() 7330 BIO *rbio, *wbio; in test_max_fragment_len_ext() local 7345 rbio = BIO_new(BIO_s_mem()); in test_max_fragment_len_ext() 7348 BIO_free(rbio); in test_max_fragment_len_ext() 7353 SSL_set_bio(con, rbio, wbio); in test_max_fragment_len_ext() 10157 BIO *rbio = NULL, *wbio = NULL; in test_ssl_dup() local 10175 rbio = SSL_get_rbio(clientssl); in test_ssl_dup() 10176 if (!TEST_ptr(rbio) in test_ssl_dup() 10180 rbio = NULL; in test_ssl_dup() [all …]
|
/openssl/apps/ |
H A D | enc.c | 120 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main() local 436 rbio = in; in enc_main() 451 rbio = BIO_push(bzl, rbio); in enc_main() 465 rbio = BIO_push(bbrot, rbio); in enc_main() 478 rbio = BIO_push(bzstd, rbio); in enc_main() 494 rbio = BIO_push(b64, rbio); in enc_main() 536 if (BIO_read(rbio, mbuf, sizeof(mbuf)) != sizeof(mbuf)) { in enc_main() 541 if (BIO_read(rbio, salt, in enc_main() 689 while (BIO_pending(rbio) || !BIO_eof(rbio)) { in enc_main() 690 inl = BIO_read(rbio, (char *)buff, bsize); in enc_main() [all …]
|
/openssl/crypto/http/ |
H A D | http_client.c | 49 BIO *rbio; /* BIO to read/receive response from */ member 98 if (wbio == NULL || rbio == NULL) { in OSSL_HTTP_REQ_CTX_new() 109 rctx->rbio = rbio; in OSSL_HTTP_REQ_CTX_new() 568 n = BIO_read(rctx->rbio, rctx->buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio() 571 n = BIO_gets(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio() 580 if (BIO_should_retry(rctx->rbio)) in OSSL_HTTP_REQ_CTX_nbio() 1006 return rctx->state == OHS_STREAM ? rctx->rbio : rctx->mem; in OSSL_HTTP_REQ_CTX_exchange() 1030 if (rbio != NULL && (bio == NULL || bio_update_fn != NULL)) { in OSSL_HTTP_open() 1089 rctx = http_req_ctx_new(bio == NULL, cbio, rbio != NULL ? rbio : cbio, in OSSL_HTTP_open() 1212 BIO *bio, BIO *rbio, in OSSL_HTTP_get() argument [all …]
|
/openssl/include/openssl/ |
H A D | http.h | 45 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size); 71 int use_ssl, BIO *bio, BIO *rbio, 84 BIO *bio, BIO *rbio, 93 BIO *bio, BIO *rbio,
|
H A D | x509.h.in | 374 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout); 375 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
|
/openssl/ssl/ |
H A D | d1_lib.c | 361 dtls1_bio_set_next_timeout(s->rbio, s->d1); in dtls1_stop_timer() 427 BIO *rbio, *wbio; in DTLSv1_listen() local 446 rbio = SSL_get_rbio(ssl); in DTLSv1_listen() 449 if (!rbio || !wbio) { in DTLSv1_listen() 479 n = BIO_read(rbio, buf, SSL3_RT_MAX_PLAIN_LENGTH in DTLSv1_listen() 482 if (BIO_should_retry(rbio)) { in DTLSv1_listen() 764 if (BIO_dgram_get_peer(rbio, tmpclient) > 0) { in DTLSv1_listen() 819 if (BIO_dgram_get_peer(rbio, client) <= 0) in DTLSv1_listen()
|
H A D | ssl_lib.c | 1495 BIO_free_all(s->rbio); in ossl_ssl_connection_free() 1496 s->rbio = NULL; in ossl_ssl_connection_free() 1514 BIO_free_all(sc->rbio); in SSL_set0_rbio() 1515 sc->rbio = rbio; in SSL_set0_rbio() 1564 if (rbio != NULL && rbio == wbio) in SSL_set_bio() 1565 BIO_up_ref(rbio); in SSL_set_bio() 1580 SSL_set0_rbio(s, rbio); in SSL_set_bio() 1585 SSL_set0_rbio(s, rbio); in SSL_set_bio() 1601 return sc->rbio; in SSL_get_rbio() 1708 if (rbio == NULL || BIO_method_type(rbio) != desired_type in SSL_set_wfd() [all …]
|
H A D | bio_ssl.c | 259 else if (sc->rbio != NULL) in ssl_ctrl() 260 ret = BIO_ctrl(sc->rbio, cmd, num, ptr); in ssl_ctrl()
|
H A D | ssl_local.h | 1226 BIO *rbio; member
|
/openssl/ssl/record/ |
H A D | rec_layer_d1.c | 120 if (BIO_dgram_is_sctp(s->rbio) && in dtls_buffer_record() 123 BIO_ctrl(s->rbio, BIO_CTRL_DGRAM_SCTP_GET_RCVINFO, in dtls_buffer_record() 158 if (BIO_dgram_is_sctp(s->rbio)) { in dtls_unbuffer_record() 159 BIO_ctrl(s->rbio, BIO_CTRL_DGRAM_SCTP_SET_RCVINFO, in dtls_unbuffer_record()
|
H A D | rec_layer_s3.c | 940 BIO *rbio; in ssl3_read_bytes() local 957 rbio = SSL_get_rbio(ssl); in ssl3_read_bytes() 958 BIO_clear_retry_flags(rbio); in ssl3_read_bytes() 959 BIO_set_retry_read(rbio); in ssl3_read_bytes() 1265 thisbio = s->rbio; in ssl_set_new_record_layer()
|
/openssl/crypto/cms/ |
H A D | cms_smime.c | 22 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()
|
/openssl/crypto/x509/ |
H A D | x_all.c | 115 static ASN1_VALUE *simple_get_asn1(const char *url, BIO *bio, BIO *rbio, in simple_get_asn1() argument 122 bio, rbio, NULL /* cb */, NULL /* arg */, in simple_get_asn1() 135 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_load_http() argument 137 return (X509 *)simple_get_asn1(url, bio, rbio, timeout, in X509_load_http() 189 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_CRL_load_http() argument 191 return (X509_CRL *)simple_get_asn1(url, bio, rbio, timeout, in X509_CRL_load_http()
|
/openssl/ssl/statem/ |
H A D | statem_clnt.c | 411 BIO *rbio; in ossl_statem_client_read_transition() local 419 rbio = SSL_get_rbio(SSL_CONNECTION_GET_SSL(s)); in ossl_statem_client_read_transition() 420 BIO_clear_retry_flags(rbio); in ossl_statem_client_read_transition() 421 BIO_set_retry_read(rbio); in ossl_statem_client_read_transition()
|
H A D | statem_srvr.c | 325 BIO *rbio; in ossl_statem_server_read_transition() local 333 rbio = SSL_get_rbio(SSL_CONNECTION_GET_SSL(s)); in ossl_statem_server_read_transition() 334 BIO_clear_retry_flags(rbio); in ossl_statem_server_read_transition() 335 BIO_set_retry_read(rbio); in ossl_statem_server_read_transition()
|