Home
last modified time | relevance | path

Searched refs:sbio (Results 1 – 8 of 8) sorted by relevance

/freebsd/crypto/openssl/demos/bio/
H A Dclient-arg.c16 BIO *sbio = NULL, *out = NULL; in main() local
74 sbio = BIO_new_ssl_connect(ctx); in main()
76 BIO_get_ssl(sbio, &ssl); in main()
85 BIO_set_conn_hostname(sbio, connect_str); in main()
88 if (BIO_do_connect(sbio) <= 0) { in main()
96 BIO_puts(sbio, "GET / HTTP/1.0\n\n"); in main()
98 len = BIO_read(sbio, tmpbuf, 1024); in main()
105 BIO_free_all(sbio); in main()
H A Dclient-conf.c17 BIO *sbio = NULL, *out = NULL; in main() local
82 sbio = BIO_new_ssl_connect(ctx); in main()
84 BIO_get_ssl(sbio, &ssl); in main()
93 BIO_set_conn_hostname(sbio, connect_str); in main()
96 if (BIO_do_connect(sbio) <= 0) { in main()
104 BIO_puts(sbio, "GET / HTTP/1.0\n\n"); in main()
106 len = BIO_read(sbio, tmpbuf, 1024); in main()
113 BIO_free_all(sbio); in main()
/freebsd/crypto/openssl/doc/man3/
H A DBIO_f_ssl.pod156 BIO *sbio, *out;
168 sbio = BIO_new_ssl_connect(ctx);
169 BIO_get_ssl(sbio, &ssl);
179 BIO_set_conn_hostname(sbio, ":https");
182 if (BIO_do_connect(sbio) <= 0) {
190 BIO_puts(sbio, "GET / HTTP/1.0\n\n");
192 len = BIO_read(sbio, tmpbuf, 1024);
197 BIO_free_all(sbio);
205 BIO *sbio, *bbio, *acpt, *out;
225 sbio = BIO_new_ssl(ctx, 0);
[all …]
H A DOSSL_HTTP_transfer.pod122 BIO *sbio = BIO_new_ssl(ctx, 1);
124 bio = sbio != NULL ? BIO_push(sbio, bio) : NULL;
/freebsd/crypto/openssl/apps/
H A Ds_client.c784 BIO *sbio; in s_client_main() local
2038 sbio = BIO_new_dgram_sctp(sock, BIO_NOCLOSE); in s_client_main()
2041 sbio = BIO_new_dgram(sock, BIO_NOCLOSE); in s_client_main()
2043 if (sbio == NULL || (peer_info.addr = BIO_ADDR_new()) == NULL) { in s_client_main()
2045 BIO_free(sbio); in s_client_main()
2052 BIO_free(sbio); in s_client_main()
2058 (void)BIO_ctrl_set_connected(sbio, peer_info.addr); in s_client_main()
2065 BIO_ctrl(sbio, BIO_CTRL_DGRAM_SET_RECV_TIMEOUT, 0, &timeout); in s_client_main()
2069 BIO_ctrl(sbio, BIO_CTRL_DGRAM_SET_SEND_TIMEOUT, 0, &timeout); in s_client_main()
2076 BIO_free(sbio); in s_client_main()
[all …]
H A Ds_server.c2339 BIO *sbio; in sv_body() local
2388 sbio = BIO_new_dgram_sctp(s, BIO_NOCLOSE); in sv_body()
2391 sbio = BIO_new_dgram(s, BIO_NOCLOSE); in sv_body()
2392 if (sbio == NULL) { in sv_body()
2401 BIO_ctrl(sbio, BIO_CTRL_DGRAM_SET_RECV_TIMEOUT, 0, &timeout); in sv_body()
2405 BIO_ctrl(sbio, BIO_CTRL_DGRAM_SET_SEND_TIMEOUT, 0, &timeout); in sv_body()
2413 BIO_free(sbio); in sv_body()
2420 BIO_free(sbio); in sv_body()
2425 BIO_ctrl(sbio, BIO_CTRL_DGRAM_MTU_DISCOVER, 0, NULL); in sv_body()
2434 sbio = BIO_new_socket(s, BIO_NOCLOSE); in sv_body()
[all …]
/freebsd/crypto/openssl/test/
H A Ddtlstest.c401 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local
435 sbio = rbio; in test_just_finished()
441 if (!TEST_int_eq(BIO_write(sbio, buf, sizeof(buf)), sizeof(buf))) in test_just_finished()
/freebsd/crypto/openssl/apps/lib/
H A Dapps.c2483 BIO *sbio = NULL; in app_http_tls_cb() local
2494 || (sbio = BIO_new(BIO_f_ssl())) == NULL) { in app_http_tls_cb()
2498 BIO_free(sbio); in app_http_tls_cb()
2506 BIO_set_ssl(sbio, ssl, BIO_CLOSE); in app_http_tls_cb()
2508 bio = BIO_push(sbio, bio); in app_http_tls_cb()