/openssl/doc/man3/ |
H A D | SSL_set_bio.pod | 11 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio); 13 void SSL_set0_wbio(SSL *s, BIO *wbio); 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 42 If neither the B<rbio> or B<wbio> have changed from their previous values 50 reference is consumed for the wbio. 71 If the B<rbio> and B<wbio> parameters are different and the B<wbio> is the 72 same as the previously set value and the old B<rbio> and B<wbio> values 74 and no references are consumed for the B<wbio>. 78 If the B<rbio> and B<wbio> parameters are different and the B<wbio> [all …]
|
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); 67 which gets populated with the B<BIO> to write/send the request to (I<wbio>), 69 I<wbio>), and the maximum expected response header line length I<buf_size>. 77 The I<rbio> is not free'd, I<wbio> will be free'd if I<free_wbio> is set. 147 and to gather the response via HTTP, using the I<wbio> and I<rbio> 208 create the I<wbio>, any C<Host> header, and the host specified in the
|
/openssl/test/ |
H A D | servername_test.c | 102 BIO *wbio; in client_setup_sni_before_state() local 123 wbio = 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() 126 BIO_free(wbio); in client_setup_sni_before_state() 130 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state() 135 if (!TEST_true(get_sni_from_client_hello(wbio, &hostname))) in client_setup_sni_before_state() 154 BIO *wbio; in client_setup_sni_after_state() local 172 wbio = 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() 175 BIO_free(wbio); in client_setup_sni_after_state() [all …]
|
H A D | http_test.c | 125 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_method() local 154 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_method() 161 real_server ? NULL : wbio, in test_http_method() 199 BIO_free(wbio); in test_http_method() 207 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local 215 if (wbio == NULL || rbio == NULL) in test_http_keep_alive() 221 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_keep_alive() 247 BIO_free(wbio); in test_http_keep_alive() 421 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_resp_hdr_limit() local 436 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_resp_hdr_limit() [all …]
|
H A D | bad_dtls_test.c | 117 static int validate_client_hello(BIO *wbio) in validate_client_hello() argument 190 (void)BIO_reset(wbio); in validate_client_hello() 397 static int validate_ccs(BIO *wbio) in validate_ccs() argument 473 BIO *wbio = NULL; in test_bad_dtls() local 513 wbio = BIO_new(BIO_s_mem()); in test_bad_dtls() 516 || !TEST_ptr(wbio)) in test_bad_dtls() 519 SSL_set_bio(con, rbio, wbio); in test_bad_dtls() 526 rbio = wbio = NULL; in test_bad_dtls() 530 if (!TEST_true(BIO_up_ref(wbio))) { in test_bad_dtls() 531 wbio = NULL; in test_bad_dtls() [all …]
|
H A D | clienthellotest.c | 64 BIO *wbio; in test_client_hello() local 173 wbio = BIO_new(BIO_s_mem()); in test_client_hello() 174 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_client_hello() 176 BIO_free(wbio); in test_client_hello() 180 SSL_set_bio(con, rbio, wbio); in test_client_hello() 194 if (!TEST_long_ge(len = BIO_get_mem_data(wbio, (char **)&data), 0) in test_client_hello()
|
H A D | fatalerrtest.c | 24 BIO *wbio = NULL; in test_fatalerr() local 50 wbio = SSL_get_wbio(cssl); in test_fatalerr() 51 if (!TEST_ptr(wbio)) { in test_fatalerr() 63 if (!TEST_int_gt(BIO_write(wbio, dummyrec, sizeof(dummyrec)), 0)) in test_fatalerr()
|
H A D | dtlstest.c | 401 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local 436 wbio = BIO_new(BIO_s_mem()); in test_just_finished() 438 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished() 443 SSL_set0_wbio(serverssl, wbio); in test_just_finished() 444 rbio = wbio = NULL; in test_just_finished() 464 BIO_free(wbio); in test_just_finished()
|
H A D | sslapitest.c | 1085 if (!BIO_get_ktls_send(clientsc->wbio)) { in ping_pong_query() 1095 if (!BIO_get_ktls_send(serversc->wbio)) { in ping_pong_query() 1105 if (!BIO_get_ktls_recv(clientsc->wbio)) { in ping_pong_query() 7330 BIO *rbio, *wbio; in test_max_fragment_len_ext() local 7346 wbio = BIO_new(BIO_s_mem()); in test_max_fragment_len_ext() 7349 BIO_free(wbio); 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 10182 wbio = SSL_get_wbio(clientssl); in test_ssl_dup() 10183 if (!TEST_ptr(wbio) || !TEST_true(BIO_up_ref(wbio))) in test_ssl_dup() [all …]
|
/openssl/apps/ |
H A D | enc.c | 121 NULL, *wbio = NULL; in enc_main() local 437 wbio = out; in enc_main() 449 wbio = BIO_push(bzl, wbio); in enc_main() 463 wbio = BIO_push(bbrot, wbio); in enc_main() 476 wbio = BIO_push(bzstd, wbio); in enc_main() 492 wbio = BIO_push(b64, wbio); in enc_main() 525 && (BIO_write(wbio, magic, in enc_main() 527 || BIO_write(wbio, in enc_main() 687 wbio = BIO_push(benc, wbio); in enc_main() 697 if (BIO_write(wbio, (char *)buff, inl) != inl) { in enc_main() [all …]
|
H A D | s_server.c | 2964 BIO *wbio; in init_ssl_connection() local 2968 wbio = SSL_get_wbio(con); in init_ssl_connection() 2969 if (wbio) { in init_ssl_connection() 2970 BIO_get_fd(wbio, &fd); in init_ssl_connection() 2973 if (!wbio || BIO_connect(fd, client, 0) == 0) { in init_ssl_connection() 2979 (void)BIO_ctrl_set_connected(wbio, client); in init_ssl_connection()
|
/openssl/ssl/ |
H A D | d1_lib.c | 427 BIO *rbio, *wbio; in DTLSv1_listen() local 447 wbio = SSL_get_wbio(ssl); in DTLSv1_listen() 449 if (!rbio || !wbio) { in DTLSv1_listen() 765 (void)BIO_dgram_set_peer(wbio, tmpclient); in DTLSv1_listen() 771 if (BIO_should_retry(wbio)) { in DTLSv1_listen() 782 if (BIO_flush(wbio) <= 0) { in DTLSv1_listen() 783 if (BIO_should_retry(wbio)) { in DTLSv1_listen() 862 BIO *wbio; in dtls1_shutdown() local 868 wbio = SSL_get_wbio(s); in dtls1_shutdown() 869 if (wbio != NULL && BIO_dgram_is_sctp(wbio) && in dtls1_shutdown() [all …]
|
H A D | ssl_lib.c | 1493 BIO_free_all(s->wbio); in ossl_ssl_connection_free() 1494 s->wbio = NULL; in ossl_ssl_connection_free() 1537 sc->wbio = BIO_pop(sc->wbio); in SSL_set0_wbio() 1540 sc->wbio = wbio; in SSL_set0_wbio() 1544 sc->wbio = BIO_push(sc->bbio, sc->wbio); in SSL_set0_wbio() 1623 return sc->wbio; in SSL_get_wbio() 1744 if (wbio == NULL || BIO_method_type(wbio) != desired_type in SSL_set_rfd() 1755 BIO_up_ref(wbio); in SSL_set_rfd() 2978 if (sc->wbio != NULL && BIO_get_ktls_send(sc->wbio)) in ossl_ctrl_internal() 5259 s->wbio = BIO_push(bbio, s->wbio); in ssl_init_wbio_buffer() [all …]
|
H A D | d1_msg.c | 62 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
|
H A D | s3_msg.c | 141 (void)BIO_flush(sc->wbio); in ssl3_dispatch_alert()
|
H A D | ssl_local.h | 1228 BIO *wbio; member
|
/openssl/crypto/http/ |
H A D | http_client.c | 48 BIO *wbio; /* BIO to write/send request to */ member 98 if (wbio == NULL || rbio == NULL) { in OSSL_HTTP_REQ_CTX_new() 108 rctx->wbio = wbio; in OSSL_HTTP_REQ_CTX_new() 130 BIO_free_all(rctx->wbio); in OSSL_HTTP_REQ_CTX_free() 616 if (BIO_should_retry(rctx->wbio)) in OSSL_HTTP_REQ_CTX_nbio() 654 i = BIO_flush(rctx->wbio); in OSSL_HTTP_REQ_CTX_nbio() 661 if (BIO_should_retry(rctx->wbio)) in OSSL_HTTP_REQ_CTX_nbio() 1340 BIO *wbio; in OSSL_HTTP_close() local 1345 wbio = (*rctx->upd_fn)(rctx->wbio, rctx->upd_arg, in OSSL_HTTP_close() 1347 ret = wbio != NULL; in OSSL_HTTP_close() [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);
|
H A D | ssl.h.in | 1606 void SSL_set0_wbio(SSL *s, BIO *wbio); 1607 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
|
/openssl/ssl/statem/ |
H A D | statem_dtls.c | 173 used_len = BIO_wpending(s->wbio) + overhead; in dtls1_do_write() 183 ret = BIO_flush(s->wbio); in dtls1_do_write() 263 || BIO_wpending(s->wbio) <= (int)s->d1->mtu); in dtls1_do_write() 1234 s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio); in dtls1_retransmit_message() 1245 (void)BIO_flush(s->wbio); in dtls1_retransmit_message()
|
H A D | statem.c | 966 if (BIO_flush(s->wbio) <= 0) { in statem_flush()
|
H A D | statem_srvr.c | 3482 BIO_ctrl(s->wbio, BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY, in tls_post_process_client_key_exchange()
|
/openssl/ssl/record/ |
H A D | rec_layer_s3.c | 1269 thisbio = s->wbio; in ssl_set_new_record_layer()
|
/openssl/doc/designs/quic-design/ |
H A D | quic-api.md | 27 …- [`SSL_set0_rbio`, `SSL_set0_wbio`, `SSL_set_bio`](#-ssl-set0-rbio----ssl-set0-wbio----ssl-set-bi…
|