Home
last modified time | relevance | path

Searched refs:wbio (Results 1 – 25 of 29) 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.pod27 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
63 which gets populated with the B<BIO> to write/send the request to (I<wbio>),
65 I<wbio>), and the maximum expected response header line length I<buf_size>.
73 The I<rbio> is not free'd, I<wbio> will be free'd if I<free_wbio> is set.
135 and to gather the response via HTTP, using the I<wbio> and I<rbio>
190 create the I<wbio>, any C<Host> header, and the host specified in the
/freebsd/crypto/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.c116 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_x509() local
124 if (wbio == NULL || rbio == NULL || req == NULL) in test_http_x509()
127 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_x509()
128 BIO_set_callback_arg(wbio, (char *)&mock_args); in test_http_x509()
133 wbio, rbio, NULL /* bio_update_fn */, NULL /* arg */, in test_http_x509()
139 wbio, rbio, NULL /* bio_fn */, NULL /* arg */, in test_http_x509()
151 BIO_free(wbio); in test_http_x509()
159 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local
167 if (wbio == NULL || rbio == NULL) in test_http_keep_alive()
172 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_keep_alive()
[all …]
H A Dbad_dtls_test.c117 static int validate_client_hello(BIO *wbio) in validate_client_hello() argument
125 if ((len = BIO_get_mem_data(wbio, (char **)&data)) < 0) in validate_client_hello()
190 (void)BIO_reset(wbio); in validate_client_hello()
393 static int validate_ccs(BIO *wbio) in validate_ccs() argument
400 len = BIO_get_mem_data(wbio, (char **)&data); in validate_ccs()
469 BIO *wbio = NULL; in test_bad_dtls() local
508 wbio = BIO_new(BIO_s_mem()); in test_bad_dtls()
511 || !TEST_ptr(wbio)) in test_bad_dtls()
514 SSL_set_bio(con, rbio, wbio); in test_bad_dtls()
521 rbio = wbio 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
430 wbio = BIO_new(BIO_s_mem()); in test_just_finished()
432 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished()
437 SSL_set0_wbio(serverssl, wbio); in test_just_finished()
438 rbio = wbio = NULL; in test_just_finished()
458 BIO_free(wbio); in test_just_finished()
H A Dsslapitest.c1119 if (!BIO_get_ktls_send(clientssl->wbio)) { in ping_pong_query()
1129 if (!BIO_get_ktls_send(serverssl->wbio)) { in ping_pong_query()
1139 if (!BIO_get_ktls_recv(clientssl->wbio)) { in ping_pong_query()
1149 if (!BIO_get_ktls_recv(serverssl->wbio)) { in ping_pong_query()
1227 if (!TEST_false(BIO_get_ktls_send(clientssl->wbio))) in execute_test_ktls()
1230 if (BIO_get_ktls_send(clientssl->wbio)) in execute_test_ktls()
1235 if (!TEST_false(BIO_get_ktls_send(serverssl->wbio))) in execute_test_ktls()
1238 if (BIO_get_ktls_send(serverssl->wbio)) in execute_test_ktls()
1354 if (!BIO_get_ktls_send(serverssl->wbio)) { in execute_test_ktls_sendfile()
3998 BIO *wbio = SSL_get_wbio(clientssl); in early_data_skip_helper() local
[all …]
/freebsd/crypto/openssl/apps/
H A Denc.c119 NULL, *wbio = NULL; in enc_main() local
400 wbio = out; in enc_main()
411 wbio = BIO_push(bzl, wbio); in enc_main()
427 wbio = BIO_push(b64, wbio); in enc_main()
460 && (BIO_write(wbio, magic, in enc_main()
462 || BIO_write(wbio, in enc_main()
615 wbio = BIO_push(benc, wbio); in enc_main()
621 if (BIO_write(wbio, (char *)buff, inl) != inl) { in enc_main()
626 if (!BIO_flush(wbio)) { in enc_main()
H A Ds_server.c2864 BIO *wbio; in init_ssl_connection() local
2868 wbio = SSL_get_wbio(con); in init_ssl_connection()
2869 if (wbio) { in init_ssl_connection()
2870 BIO_get_fd(wbio, &fd); in init_ssl_connection()
2873 if (!wbio || BIO_connect(fd, client, 0) == 0) { in init_ssl_connection()
2879 (void)BIO_ctrl_set_connected(wbio, client); in init_ssl_connection()
/freebsd/crypto/openssl/ssl/
H A Dd1_lib.c466 BIO *rbio, *wbio; in DTLSv1_listen() local
482 wbio = SSL_get_wbio(s); in DTLSv1_listen()
484 if (!rbio || !wbio) { in DTLSv1_listen()
806 (void)BIO_dgram_set_peer(wbio, tmpclient); in DTLSv1_listen()
811 if (BIO_write(wbio, wbuf, wreclen) < (int)wreclen) { in DTLSv1_listen()
812 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
822 if (BIO_flush(wbio) <= 0) { in DTLSv1_listen()
823 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
881 BIO *wbio; in dtls1_shutdown() local
883 wbio = SSL_get_wbio(s); in dtls1_shutdown()
[all …]
H A Dssl_lib.c1208 BIO_free_all(s->wbio); in SSL_free()
1209 s->wbio = NULL; in SSL_free()
1293 void SSL_set0_wbio(SSL *s, BIO *wbio) in SSL_set0_wbio() argument
1299 s->wbio = BIO_pop(s->wbio); in SSL_set0_wbio()
1301 BIO_free_all(s->wbio); in SSL_set0_wbio()
1302 s->wbio = wbio; in SSL_set0_wbio()
1306 s->wbio = BIO_push(s->bbio, s->wbio); in SSL_set0_wbio()
1309 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
1317 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s)) in SSL_set_bio()
1324 if (rbio != NULL && rbio == wbio) in SSL_set_bio()
[all …]
H A Dd1_msg.c54 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
H A Ds3_msg.c93 (void)BIO_flush(s->wbio); in ssl3_dispatch_alert()
H A Dbio_ssl.c314 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr); in ssl_ctrl()
323 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr); in ssl_ctrl()
H A Dt1_enc.c413 bio = s->wbio; in tls1_change_cipher_state()
429 if ((BIO_get_ktls_send(s->wbio) && (which & SSL3_CC_WRITE)) || in tls1_change_cipher_state()
/freebsd/crypto/openssl/crypto/http/
H A Dhttp_client.c48 BIO *wbio; /* BIO to write/send request to */ member
90 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size) in OSSL_HTTP_REQ_CTX_new() argument
94 if (wbio == NULL || rbio == NULL) { in OSSL_HTTP_REQ_CTX_new()
104 rctx->wbio = wbio; in OSSL_HTTP_REQ_CTX_new()
125 BIO_free_all(rctx->wbio); in OSSL_HTTP_REQ_CTX_free()
371 static OSSL_HTTP_REQ_CTX *http_req_ctx_new(int free_wbio, BIO *wbio, BIO *rbio, in http_req_ctx_new() argument
378 OSSL_HTTP_REQ_CTX *rctx = OSSL_HTTP_REQ_CTX_new(wbio, rbio, buf_size); in http_req_ctx_new()
536 if (rctx->mem == NULL || rctx->wbio == NULL || rctx->rbio == NULL) { in OSSL_HTTP_REQ_CTX_nbio()
590 i = BIO_write(rctx->wbio, rctx->pos, rctx->len_to_send); in OSSL_HTTP_REQ_CTX_nbio()
592 if (BIO_should_retry(rctx->wbio)) in OSSL_HTTP_REQ_CTX_nbio()
[all …]
/freebsd/crypto/openssl/ssl/record/
H A Drec_layer_s3.c454 && BIO_get_ktls_send(s->wbio) == 0 in ssl3_write_bytes()
557 if (i < 0 && (!s->wbio || !BIO_should_retry(s->wbio))) { in ssl3_write_bytes()
780 if (BIO_get_ktls_send(s->wbio)) { in do_ssl3_write()
909 if (!BIO_get_ktls_send(s->wbio) in do_ssl3_write()
941 if (BIO_get_ktls_send(s->wbio)) { in do_ssl3_write()
953 && !BIO_get_ktls_send(s->wbio) in do_ssl3_write()
1008 if (!BIO_get_ktls_send(s->wbio) && !SSL_WRITE_ETM(s) && mac_size != 0) { in do_ssl3_write()
1024 if (!BIO_get_ktls_send(s->wbio)) { in do_ssl3_write()
1057 if (!BIO_get_ktls_send(s->wbio)) { in do_ssl3_write()
[all...]
H A Dssl3_buffer.c128 if (s->wbio == NULL || !BIO_get_ktls_send(s->wbio)) { in ssl3_setup_write_buffer()
/freebsd/crypto/openssl/include/openssl/
H A Dhttp.h41 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
/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/statem/
H A Dstatem_dtls.c184 used_len = BIO_wpending(s->wbio) + DTLS1_RT_HEADER_LENGTH in dtls1_do_write()
195 ret = BIO_flush(s->wbio); in dtls1_do_write()
1248 (void)BIO_flush(s->wbio); in dtls1_retransmit_message()
H A Dstatem.c924 if (BIO_flush(s->wbio) <= 0) { in statem_flush()

12