| /freebsd/crypto/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); 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 D | OSSL_HTTP_REQ_CTX.pod | 28 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 D | servername_test.c | 100 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 D | http_test.c | 157 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 D | bad_dtls_test.c | 198 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 D | clienthellotest.c | 56 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 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 | 397 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 D | sslapitest.c | 1094 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 D | enc.c | 149 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 D | s_server.c | 3066 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 D | d1_lib.c | 426 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 D | ssl_lib.c | 1535 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 D | d1_msg.c | 63 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
|
| H A D | s3_msg.c | 142 (void)BIO_flush(sc->wbio); in ssl3_dispatch_alert()
|
| H A D | ssl_local.h | 1264 BIO *wbio; member
|
| /freebsd/crypto/openssl/crypto/http/ |
| H A D | http_client.c | 50 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 D | statem_dtls.c | 182 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 D | statem.c | 972 if (BIO_flush(s->wbio) <= 0) { in statem_flush()
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | http.h | 48 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
|
| H A D | ssl.h | 1670 void SSL_set0_wbio(SSL *s, BIO *wbio); 1671 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
|
| H A D | ssl.h.in | 1623 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 D | bufferevent_openssl.c | 553 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 D | bufferevent_openssl.c | 553 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 D | rec_layer_s3.c | 1277 thisbio = s->wbio; in ssl_set_new_record_layer()
|