Home
last modified time | relevance | path

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

12

/freebsd/crypto/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);
30 the BIO B<wbio> for the write operations of the B<ssl> object. Note that if the
31 rbio and wbio are the same then SSL_set0_rbio() and SSL_set0_wbio() each take
36 If using a custom BIO, B<wbio> must implement
39 If flushing is unnecessary with B<wbio>, L<BIO_flush(3)> should return one and
43 that it connects both the B<rbio> and the B<wbio> at the same time, and
44 transfers the ownership of B<rbio> and B<wbio> to B<ssl> according to
51 If neither the B<rbio> or B<wbio> have changed from their previous values
56 If the B<rbio> and B<wbio> parameters are different and both are different
[all …]
H A DOSSL_HTTP_REQ_CTX.pod28 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
66 which gets populated with the B<BIO> to write/send the request to (I<wbio>),
68 I<wbio>), and the maximum expected response header line length I<buf_size>.
76 The I<rbio> is not free'd, I<wbio> will be free'd if I<free_wbio> is set.
149 and to gather the response via HTTP, using the I<wbio> and I<rbio>
218 create the I<wbio>, any C<Host> header, and the host specified in the
/freebsd/crypto/openssl/test/
H A Dservername_test.c100 BIO *wbio; in client_setup_sni_before_state() local
121 wbio = 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()
124 BIO_free(wbio); in client_setup_sni_before_state()
128 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state()
133 if (!TEST_true(get_sni_from_client_hello(wbio, &hostname))) in client_setup_sni_before_state()
152 BIO *wbio; in client_setup_sni_after_state() local
170 wbio = 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()
173 BIO_free(wbio); in client_setup_sni_after_state()
[all …]
H A Dhttp_test.c157 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_method() local
184 if (wbio == NULL || rbio == NULL || req == NULL) in test_http_method()
189 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_method()
190 BIO_set_callback_arg(wbio, (char *)&mock_args); in test_http_method()
194 real_server ? NULL : wbio, in test_http_method()
203 wbio, rbio, NULL /* bio_fn */, NULL /* arg */, in test_http_method()
236 BIO_free(wbio); in test_http_method()
244 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local
252 if (wbio == NULL || rbio == NULL) in test_http_keep_alive()
258 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_keep_alive()
[all …]
H A Dbad_dtls_test.c198 static int validate_client_hello(BIO *wbio) in validate_client_hello() argument
206 if ((len = BIO_get_mem_data(wbio, (char **)&data)) < 0) in validate_client_hello()
269 (void)BIO_reset(wbio); in validate_client_hello()
598 static int validate_ccs(BIO *wbio) in validate_ccs() argument
605 len = BIO_get_mem_data(wbio, (char **)&data); in validate_ccs()
674 BIO *wbio = NULL; in test_bad_dtls() local
714 wbio = BIO_new(BIO_s_mem()); in test_bad_dtls()
717 || !TEST_ptr(wbio)) in test_bad_dtls()
720 SSL_set_bio(con, rbio, wbio); in test_bad_dtls()
727 rbio = wbio = NULL; in test_bad_dtls()
[all …]
H A Dclienthellotest.c56 BIO *wbio; in test_client_hello() local
134 wbio = BIO_new(BIO_s_mem()); in test_client_hello()
135 if (!TEST_ptr(rbio) || !TEST_ptr(wbio)) { in test_client_hello()
137 BIO_free(wbio); in test_client_hello()
141 SSL_set_bio(con, rbio, wbio); in test_client_hello()
155 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.c397 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local
431 wbio = BIO_new(BIO_s_mem()); in test_just_finished()
433 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished()
438 SSL_set0_wbio(serverssl, wbio); in test_just_finished()
439 rbio = wbio = NULL; in test_just_finished()
459 BIO_free(wbio); in test_just_finished()
H A Dsslapitest.c1094 if (!BIO_get_ktls_send(clientsc->wbio)) { in ping_pong_query()
1104 if (!BIO_get_ktls_send(serversc->wbio)) { in ping_pong_query()
1114 if (!BIO_get_ktls_recv(clientsc->wbio)) { in ping_pong_query()
1124 if (!BIO_get_ktls_recv(serversc->wbio)) { in ping_pong_query()
1211 if (!TEST_false(BIO_get_ktls_send(clientsc->wbio))) in execute_test_ktls()
1214 if (BIO_get_ktls_send(clientsc->wbio)) in execute_test_ktls()
1219 if (!TEST_false(BIO_get_ktls_send(serversc->wbio))) in execute_test_ktls()
1222 if (BIO_get_ktls_send(serversc->wbio)) in execute_test_ktls()
1379 if (!BIO_get_ktls_send(serversc->wbio)) { in execute_test_ktls_sendfile()
4057 BIO *wbio = SSL_get_wbio(clientssl); in early_data_skip_helper() local
[all …]
/freebsd/crypto/openssl/apps/
H A Denc.c149 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = NULL, *wbio = NULL; in enc_main() local
481 wbio = out; in enc_main()
493 wbio = BIO_push(bzl, wbio); in enc_main()
507 wbio = BIO_push(bbrot, wbio); in enc_main()
520 wbio = BIO_push(bzstd, wbio); in enc_main()
536 wbio = BIO_push(b64, wbio); in enc_main()
569 && (BIO_write(wbio, magic, in enc_main()
572 || BIO_write(wbio, in enc_main()
773 wbio = BIO_push(benc, wbio); in enc_main()
783 if (BIO_write(wbio, (char *)buff, inl) != inl) { in enc_main()
[all …]
H A Ds_server.c3066 BIO *wbio; in init_ssl_connection() local
3070 wbio = SSL_get_wbio(con); in init_ssl_connection()
3071 if (wbio) { in init_ssl_connection()
3072 BIO_get_fd(wbio, &fd); in init_ssl_connection()
3075 if (!wbio || BIO_connect(fd, client, 0) == 0) { in init_ssl_connection()
3081 (void)BIO_ctrl_set_connected(wbio, client); in init_ssl_connection()
/freebsd/crypto/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()
761 (void)BIO_dgram_set_peer(wbio, tmpclient); in DTLSv1_listen()
766 if (BIO_write(wbio, wbuf, wreclen) < (int)wreclen) { in DTLSv1_listen()
767 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
778 if (BIO_flush(wbio) <= 0) { in DTLSv1_listen()
779 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
858 BIO *wbio; in dtls1_shutdown() local
864 wbio = SSL_get_wbio(s); in dtls1_shutdown()
[all …]
H A Dssl_lib.c1535 BIO_free_all(s->wbio); in ossl_ssl_connection_free()
1536 s->wbio = NULL; in ossl_ssl_connection_free()
1561 void SSL_set0_wbio(SSL *s, BIO *wbio) in SSL_set0_wbio() argument
1567 ossl_quic_conn_set0_net_wbio(s, wbio); in SSL_set0_wbio()
1579 sc->wbio = BIO_pop(sc->wbio); in SSL_set0_wbio()
1581 BIO_free_all(sc->wbio); in SSL_set0_wbio()
1582 sc->wbio = wbio; in SSL_set0_wbio()
1586 sc->wbio = BIO_push(sc->bbio, sc->wbio); in SSL_set0_wbio()
1588 sc->rlayer.wrlmethod->set1_bio(sc->rlayer.wrl, sc->wbio); in SSL_set0_wbio()
1591 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
[all …]
H A Dd1_msg.c63 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
H A Ds3_msg.c142 (void)BIO_flush(sc->wbio); in ssl3_dispatch_alert()
H A Dssl_local.h1264 BIO *wbio; member
/freebsd/crypto/openssl/crypto/http/
H A Dhttp_client.c50 BIO *wbio; /* BIO to write/send request to */ 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()
112 rctx->wbio = wbio; in OSSL_HTTP_REQ_CTX_new()
134 BIO_free_all(rctx->wbio); in OSSL_HTTP_REQ_CTX_free()
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()
566 if (rctx->mem == NULL || rctx->wbio == NULL || rctx->rbio == NULL) { in OSSL_HTTP_REQ_CTX_nbio()
634 if (!BIO_write_ex(rctx->wbio, rctx->pos, rctx->len_to_send, &sz)) { in OSSL_HTTP_REQ_CTX_nbio()
635 if (BIO_should_retry(rctx->wbio)) in OSSL_HTTP_REQ_CTX_nbio()
[all …]
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c182 used_len = BIO_wpending(s->wbio) + overhead; in dtls1_do_write()
192 ret = BIO_flush(s->wbio); in dtls1_do_write()
284 || BIO_wpending(s->wbio) <= (int)s->d1->mtu); in dtls1_do_write()
1241 s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio); in dtls1_retransmit_message()
1251 (void)BIO_flush(s->wbio); in dtls1_retransmit_message()
H A Dstatem.c972 if (BIO_flush(s->wbio) <= 0) { in statem_flush()
/freebsd/crypto/openssl/include/openssl/
H A Dhttp.h48 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
H A Dssl.h1670 void SSL_set0_wbio(SSL *s, BIO *wbio);
1671 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
H A Dssl.h.in1623 void SSL_set0_wbio(SSL *s, BIO *wbio);
1624 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
/freebsd/contrib/ntp/sntp/libevent/
H A Dbufferevent_openssl.c553 BIO *rbio, *wbio; in init_bio_counts() local
555 wbio = SSL_get_wbio(bev_ssl->ssl); in init_bio_counts()
556 bev_ssl->counts.n_written = wbio ? BIO_number_written(wbio) : 0; in init_bio_counts()
/freebsd/contrib/libevent/
H A Dbufferevent_openssl.c553 BIO *rbio, *wbio; in init_bio_counts() local
555 wbio = SSL_get_wbio(bev_ssl->ssl); in init_bio_counts()
556 bev_ssl->counts.n_written = wbio ? BIO_number_written(wbio) : 0; in init_bio_counts()
/freebsd/crypto/openssl/ssl/record/
H A Drec_layer_s3.c1277 thisbio = s->wbio; in ssl_set_new_record_layer()

12