Home
last modified time | relevance | path

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

/third_party/openssl/doc/man3/
DSSL_set_bio.pod11 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
13 void SSL_set0_wbio(SSL *s, BIO *wbio);
27 the BIO B<wbio> for the write operations of the B<ssl> object. Note that if the
28 rbio and wbio are the same then SSL_set0_rbio() and SSL_set0_wbio() each take
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
47 If the B<rbio> and B<wbio> parameters are different and both are different
50 reference is consumed for the wbio.
54 If the B<rbio> and B<wbio> parameters are the same and the B<rbio> is not
[all …]
/third_party/openssl/test/
Dservername_test.c89 BIO *wbio; in client_setup_sni_before_state() local
106 wbio = BIO_new(BIO_s_mem()); in client_setup_sni_before_state()
107 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_before_state()
109 BIO_free(wbio); in client_setup_sni_before_state()
113 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state()
118 if (!TEST_true(get_sni_from_client_hello(wbio, &hostname))) in client_setup_sni_before_state()
137 BIO *wbio; in client_setup_sni_after_state() local
151 wbio = BIO_new(BIO_s_mem()); in client_setup_sni_after_state()
152 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_after_state()
154 BIO_free(wbio); in client_setup_sni_after_state()
[all …]
Dbad_dtls_test.c115 static int validate_client_hello(BIO *wbio) in validate_client_hello() argument
123 len = BIO_get_mem_data(wbio, (char **)&data); in validate_client_hello()
187 (void)BIO_reset(wbio); in validate_client_hello()
377 static int validate_ccs(BIO *wbio) in validate_ccs() argument
384 len = BIO_get_mem_data(wbio, (char **)&data); in validate_ccs()
450 BIO *wbio = NULL; in test_bad_dtls() local
488 wbio = BIO_new(BIO_s_mem()); in test_bad_dtls()
491 || !TEST_ptr(wbio)) in test_bad_dtls()
494 SSL_set_bio(con, rbio, wbio); in test_bad_dtls()
501 rbio = wbio = NULL; in test_bad_dtls()
[all …]
Dclienthellotest.c64 BIO *wbio; in test_client_hello() local
168 wbio = BIO_new(BIO_s_mem()); in test_client_hello()
169 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_client_hello()
171 BIO_free(wbio); in test_client_hello()
175 SSL_set_bio(con, rbio, wbio); in test_client_hello()
189 len = BIO_get_mem_data(wbio, (char **)&data); in test_client_hello()
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()
Dsslapitest.c2701 BIO *wbio = SSL_get_wbio(clientssl); in early_data_skip_helper() local
2720 if (!TEST_true(BIO_write_ex(wbio, bad_early_data, in early_data_skip_helper()
4907 BIO *rbio, *wbio; in test_max_fragment_len_ext() local
4922 wbio = BIO_new(BIO_s_mem()); in test_max_fragment_len_ext()
4923 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_max_fragment_len_ext()
4925 BIO_free(wbio); in test_max_fragment_len_ext()
4929 SSL_set_bio(con, rbio, wbio); in test_max_fragment_len_ext()
4937 if (!TEST_true(get_MFL_from_client_hello(wbio, &MFL_mode))) in test_max_fragment_len_ext()
6620 BIO *rbio = NULL, *wbio = NULL; in test_ssl_dup() local
6645 wbio = SSL_get_wbio(clientssl); in test_ssl_dup()
[all …]
/third_party/openssl/apps/
Denc.c98 NULL, *wbio = NULL; in enc_main() local
381 wbio = out; in enc_main()
392 wbio = BIO_push(bzl, wbio); in enc_main()
408 wbio = BIO_push(b64, wbio); in enc_main()
442 && (BIO_write(wbio, magic, in enc_main()
444 || BIO_write(wbio, in enc_main()
588 wbio = BIO_push(benc, wbio); in enc_main()
594 if (BIO_write(wbio, (char *)buff, inl) != inl) { in enc_main()
599 if (!BIO_flush(wbio)) { in enc_main()
Ds_server.c2766 BIO *wbio; in init_ssl_connection() local
2770 wbio = SSL_get_wbio(con); in init_ssl_connection()
2771 if (wbio) { in init_ssl_connection()
2772 BIO_get_fd(wbio, &fd); in init_ssl_connection()
2775 if (!wbio || BIO_connect(fd, client, 0) == 0) { in init_ssl_connection()
2781 (void)BIO_ctrl_set_connected(wbio, client); in init_ssl_connection()
/third_party/openssl/ssl/
Dd1_lib.c455 BIO *rbio, *wbio; in DTLSv1_listen() local
471 wbio = SSL_get_wbio(s); in DTLSv1_listen()
473 if (!rbio || !wbio) { in DTLSv1_listen()
795 (void)BIO_dgram_set_peer(wbio, tmpclient); in DTLSv1_listen()
801 if (BIO_write(wbio, wbuf, wreclen) < (int)wreclen) { in DTLSv1_listen()
802 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
812 if (BIO_flush(wbio) <= 0) { in DTLSv1_listen()
813 if (BIO_should_retry(wbio)) { in DTLSv1_listen()
871 BIO *wbio; in dtls1_shutdown() local
873 wbio = SSL_get_wbio(s); in dtls1_shutdown()
[all …]
Dssl_lib.c1165 BIO_free_all(s->wbio); in SSL_free()
1248 void SSL_set0_wbio(SSL *s, BIO *wbio) in SSL_set0_wbio() argument
1254 s->wbio = BIO_pop(s->wbio); in SSL_set0_wbio()
1256 BIO_free_all(s->wbio); in SSL_set0_wbio()
1257 s->wbio = wbio; in SSL_set0_wbio()
1261 s->wbio = BIO_push(s->bbio, s->wbio); in SSL_set0_wbio()
1264 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
1272 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s)) in SSL_set_bio()
1279 if (rbio != NULL && rbio == wbio) in SSL_set_bio()
1286 SSL_set0_wbio(s, wbio); in SSL_set_bio()
[all …]
Dd1_msg.c55 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
Ds3_msg.c89 (void)BIO_flush(s->wbio); in ssl3_dispatch_alert()
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()
Dssl_local.h1083 BIO *wbio; member
/third_party/openssl/ssl/record/
Drec_layer_s3.c527 if (i < 0 && (!s->wbio || !BIO_should_retry(s->wbio))) { in ssl3_write_bytes()
1151 if (s->wbio != NULL) { in ssl3_write_pending()
1154 i = BIO_write(s->wbio, (char *) in ssl3_write_pending()
/third_party/openssl/ssl/statem/
Dstatem_dtls.c188 used_len = BIO_wpending(s->wbio) + DTLS1_RT_HEADER_LENGTH in dtls1_do_write()
199 ret = BIO_flush(s->wbio); in dtls1_do_write()
1167 (void)BIO_flush(s->wbio); in dtls1_retransmit_message()
Dstatem.c903 if (BIO_flush(s->wbio) <= 0) { in statem_flush()
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/include/openssl/
Dssl.h1688 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
/third_party/openssl/include/openssl/
Dssl.h1544 void SSL_set0_wbio(SSL *s, BIO *wbio);
1545 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
/third_party/openssl/doc/man7/
Dssl.pod635 =item void B<SSL_set_bio>(SSL *ssl, BIO *rbio, BIO *wbio);