Home
last modified time | relevance | path

Searched refs:wbio (Results 1 – 24 of 24) sorted by relevance

/openssl/doc/man3/
H A DSSL_set_bio.pod11 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 DOSSL_HTTP_REQ_CTX.pod28 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.
146 and to gather the response via HTTP, using the I<wbio> and I<rbio>
207 create the I<wbio>, any C<Host> header, and the host specified in the
/openssl/test/
H A Dservername_test.c102 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 Dhttp_test.c125 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 Dbad_dtls_test.c117 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 Dclienthellotest.c64 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 Dfatalerrtest.c24 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 Ddtlstest.c401 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 Dsslapitest.c1085 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()
7325 BIO *rbio, *wbio; in test_max_fragment_len_ext() local
7341 wbio = BIO_new(BIO_s_mem()); in test_max_fragment_len_ext()
7344 BIO_free(wbio); in test_max_fragment_len_ext()
7348 SSL_set_bio(con, rbio, wbio); in test_max_fragment_len_ext()
10106 BIO *rbio = NULL, *wbio = NULL; in test_ssl_dup() local
10131 wbio = SSL_get_wbio(clientssl); in test_ssl_dup()
10132 if (!TEST_ptr(wbio) || !TEST_true(BIO_up_ref(wbio))) in test_ssl_dup()
[all …]
/openssl/apps/
H A Denc.c121 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 Ds_server.c2961 BIO *wbio; in init_ssl_connection() local
2965 wbio = SSL_get_wbio(con); in init_ssl_connection()
2966 if (wbio) { in init_ssl_connection()
2967 BIO_get_fd(wbio, &fd); in init_ssl_connection()
2970 if (!wbio || BIO_connect(fd, client, 0) == 0) { in init_ssl_connection()
2976 (void)BIO_ctrl_set_connected(wbio, client); in init_ssl_connection()
/openssl/ssl/
H A Dd1_lib.c426 BIO *rbio, *wbio; in DTLSv1_listen() local
446 wbio = SSL_get_wbio(ssl); in DTLSv1_listen()
448 if (!rbio || !wbio) { in DTLSv1_listen()
764 (void)BIO_dgram_set_peer(wbio, tmpclient); in DTLSv1_listen()
770 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
781 if (BIO_flush(wbio) <= 0) { in DTLSv1_listen()
782 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
861 BIO *wbio; in dtls1_shutdown() local
867 wbio = SSL_get_wbio(s); in dtls1_shutdown()
868 if (wbio != NULL && BIO_dgram_is_sctp(wbio) && in dtls1_shutdown()
[all …]
H A Dssl_lib.c1487 BIO_free_all(s->wbio); in ossl_ssl_connection_free()
1488 s->wbio = NULL; in ossl_ssl_connection_free()
1531 sc->wbio = BIO_pop(sc->wbio); in SSL_set0_wbio()
1534 sc->wbio = wbio; in SSL_set0_wbio()
1538 sc->wbio = BIO_push(sc->bbio, sc->wbio); in SSL_set0_wbio()
1617 return sc->wbio; in SSL_get_wbio()
1738 if (wbio == NULL || BIO_method_type(wbio) != desired_type in SSL_set_rfd()
1749 BIO_up_ref(wbio); in SSL_set_rfd()
2972 if (sc->wbio != NULL && BIO_get_ktls_send(sc->wbio)) in ossl_ctrl_internal()
5117 s->wbio = BIO_push(bbio, s->wbio); in ssl_init_wbio_buffer()
[all …]
H A Dd1_msg.c62 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
H A Ds3_msg.c141 (void)BIO_flush(sc->wbio); in ssl3_dispatch_alert()
H A Dssl_local.h1224 BIO *wbio; member
/openssl/crypto/http/
H A Dhttp_client.c48 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()
1329 BIO *wbio; in OSSL_HTTP_close() local
1334 wbio = (*rctx->upd_fn)(rctx->wbio, rctx->upd_arg, in OSSL_HTTP_close()
1336 ret = wbio != NULL; in OSSL_HTTP_close()
[all …]
/openssl/include/openssl/
H A Dhttp.h44 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
H A Dssl.h.in1606 void SSL_set0_wbio(SSL *s, BIO *wbio);
1607 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
/openssl/ssl/statem/
H A Dstatem_dtls.c170 used_len = BIO_wpending(s->wbio) + overhead; in dtls1_do_write()
180 ret = BIO_flush(s->wbio); in dtls1_do_write()
260 || BIO_wpending(s->wbio) <= (int)s->d1->mtu); in dtls1_do_write()
1231 s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio); in dtls1_retransmit_message()
1242 (void)BIO_flush(s->wbio); in dtls1_retransmit_message()
H A Dstatem.c963 if (BIO_flush(s->wbio) <= 0) { in statem_flush()
H A Dstatem_srvr.c3476 BIO_ctrl(s->wbio, BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY, in tls_post_process_client_key_exchange()
/openssl/ssl/record/
H A Drec_layer_s3.c1267 thisbio = s->wbio; in ssl_set_new_record_layer()
/openssl/doc/designs/quic-design/
H A Dquic-api.md27 …- [`SSL_set0_rbio`, `SSL_set0_wbio`, `SSL_set_bio`](#-ssl-set0-rbio----ssl-set0-wbio----ssl-set-bi…

Completed in 186 milliseconds