Home
last modified time | relevance | path

Searched refs:cbio (Results 1 – 17 of 17) sorted by relevance

/freebsd/crypto/openssl/apps/lib/
H A Dhttp_server.c269 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL; in http_server_get_asn1_req() local
280 if (cbio == NULL) { in http_server_get_asn1_req()
296 *pcbio = cbio = BIO_pop(acbio); in http_server_get_asn1_req()
300 if (cbio == NULL) { in http_server_get_asn1_req()
308 (void)BIO_get_fd(cbio, &acfd); in http_server_get_asn1_req()
314 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf)); in http_server_get_asn1_req()
320 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
335 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
351 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
364 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
[all …]
H A Dapps.c2560 BIO *cbio; in http_tls_shutdown() local
2567 cbio = BIO_pop(bio); /* connect+HTTP BIO */ in http_tls_shutdown()
2570 bio = cbio; in http_tls_shutdown()
/freebsd/crypto/openssl/test/
H A Dbio_enc_test.c276 BIO *mem = NULL, *b64 = NULL, *cbio = NULL; in test_bio_enc_eof_read_flush() local
287 || !TEST_ptr(cbio = BIO_new(BIO_f_cipher())) in test_bio_enc_eof_read_flush()
289 || !TEST_ptr(BIO_push(cbio, b64)) in test_bio_enc_eof_read_flush()
290 || !TEST_int_gt(BIO_get_cipher_ctx(cbio, &ctx), 0) in test_bio_enc_eof_read_flush()
292 || !TEST_int_gt(BIO_write(cbio, pbuf, sizeof(pbuf) - 1), 0) in test_bio_enc_eof_read_flush()
293 || !TEST_int_gt(BIO_flush(cbio), 0) in test_bio_enc_eof_read_flush()
298 BIO_free(cbio); in test_bio_enc_eof_read_flush()
300 b64 = cbio = NULL; in test_bio_enc_eof_read_flush()
306 || !TEST_ptr(cbio = BIO_new(BIO_f_cipher())) in test_bio_enc_eof_read_flush()
308 || !TEST_ptr(BIO_push(cbio, b64)) in test_bio_enc_eof_read_flush()
[all …]
H A Dbio_core_test.c69 BIO *cbio = NULL, *cbiobad = NULL; in test_bio_core() local
84 || !TEST_ptr((cbio = BIO_new_from_core_bio(libctx, &corebio)))) in test_bio_core()
89 || !TEST_false(BIO_eof(cbio)) in test_bio_core()
90 || !TEST_int_gt(BIO_gets(cbio, buf, sizeof(buf)), 0) in test_bio_core()
91 || !TEST_true(BIO_eof(cbio)) in test_bio_core()
96 if (!TEST_int_gt(BIO_write(cbio, msg, strlen(msg) + 1), 0) in test_bio_core()
97 || !TEST_int_gt(BIO_read(cbio, buf, sizeof(buf)), 0) in test_bio_core()
104 BIO_free(cbio); in test_bio_core()
H A Dbio_tfo_test.c54 BIO *cbio = NULL; in test_bio_tfo() local
98 if (!TEST_ptr(cbio = BIO_new_connect("localhost")) in test_bio_tfo()
100 || !TEST_long_gt(BIO_set_conn_ip_family(cbio, BIO_FAMILY_IPV4), 0) in test_bio_tfo()
102 || !TEST_long_gt(BIO_set_conn_port(cbio, port), 0) in test_bio_tfo()
103 || !TEST_long_gt(BIO_set_nbio(cbio, 1), 0) in test_bio_tfo()
104 || !TEST_long_gt(BIO_set_tfo(cbio, client_tfo), 0)) { in test_bio_tfo()
123 if (BIO_do_connect(cbio) <= 0) { in test_bio_tfo()
162 if (!TEST_true(BIO_write_ex(cbio, SOCKET_DATA, SOCKET_DATA_LEN, &bytes))) { in test_bio_tfo()
200 BIO_free(cbio); in test_bio_tfo()
H A Dquicapitest.c908 BIO *cbio = NULL, *strbio = NULL, *thisbio; in test_bio_ssl() local
918 cbio = BIO_new_ssl(cctx, 1); in test_bio_ssl()
919 if (!TEST_ptr(cbio)) in test_bio_ssl()
926 if (!TEST_int_eq(BIO_get_ssl(cbio, &clientquic), 1)) in test_bio_ssl()
939 retc = BIO_write_ex(cbio, msg, msglen, &written); in test_bio_ssl()
941 if (BIO_should_retry(cbio)) in test_bio_ssl()
942 err = BIO_retry_type(cbio); in test_bio_ssl()
975 for (i = 0, thisbio = cbio; i < 2; i++) { in test_bio_ssl()
1026 BIO_free_all(cbio); in test_bio_ssl()
2810 BIO *cbio = NULL, *sbio = NULL; in create_quic_ssl_objects() local
[all …]
/freebsd/crypto/openssl/test/helpers/
H A Dquictestlib.c32 BIO *cbio; member
120 (void)BIO_ctrl(noiseargs->cbio, BIO_CTRL_NOISE_BACK_OFF, 1, NULL); in noise_msg_callback()
141 BIO *cbio = NULL, *sbio = NULL, *fisbio = NULL; in qtest_create_quic_objects() local
213 cbio = BIO_new_dgram(cfd, 1); in qtest_create_quic_objects()
214 if (!TEST_ptr(cbio)) { in qtest_create_quic_objects()
230 if (!TEST_true(BIO_new_bio_dgram_pair(&cbio, 0, &sbio, 0))) in qtest_create_quic_objects()
233 if (!TEST_true(BIO_dgram_set_caps(cbio, BIO_DGRAM_CAP_HANDLES_DST_ADDR)) in qtest_create_quic_objects()
245 if (!TEST_int_eq(BIO_dgram_set0_local_addr(cbio, localaddr), 1)) { in qtest_create_quic_objects()
260 cbio = BIO_push(pktsplitbio, cbio); in qtest_create_quic_objects()
284 cbio = BIO_push(noisebio, cbio); in qtest_create_quic_objects()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DBIO_s_core.pod52 BIO *cbio = BIO_new_from_core_bio(libctx, corebio);
54 if (cbio == NULL)
57 BIO_puts(cbio, "Hello World\n");
59 BIO_free(cbio);
H A DBIO_s_connect.pod194 BIO *cbio, *out;
198 cbio = BIO_new_connect("localhost:http");
200 if (BIO_do_connect(cbio) <= 0) {
205 BIO_puts(cbio, "GET / HTTP/1.0\n\n");
207 len = BIO_read(cbio, tmpbuf, 1024);
212 BIO_free(cbio);
H A DBIO_s_accept.pod198 BIO *abio, *cbio, *cbio2;
217 cbio = BIO_pop(abio);
218 BIO_puts(cbio, "Connection 1: Sending out Data on initial connection\n");
235 BIO_puts(cbio, "Connection 1: Second connection established\n");
238 BIO_free(cbio);
/freebsd/crypto/openssl/crypto/http/
H A Dhttp_client.c1027 BIO *cbio; in http_new_bio() local
1039 cbio = BIO_new_connect(host /* optionally includes ":port" */); in http_new_bio()
1040 if (cbio == NULL) in http_new_bio()
1043 (void)BIO_set_conn_port(cbio, port); in http_new_bio()
1046 return cbio; in http_new_bio()
1096 BIO *cbio; /* == bio if supplied, used as connection BIO if rbio is NULL */ in OSSL_HTTP_open() local
1109 cbio = bio; in OSSL_HTTP_open()
1130 cbio = http_new_bio(server, port, use_ssl, proxy_host, proxy_port); in OSSL_HTTP_open()
1133 if (cbio == NULL) in OSSL_HTTP_open()
1142 if (rbio == NULL && BIO_do_connect_retry(cbio, overall_timeout, -1) <= 0) { in OSSL_HTTP_open()
[all …]
/freebsd/crypto/openssl/apps/include/
H A Dhttp_server.h84 int http_server_send_asn1_resp(const char *prog, BIO *cbio, int keep_alive,
96 int http_server_send_status(const char *prog, BIO *cbio,
/freebsd/crypto/openssl/apps/
H A Docsp.c74 static int send_ocsp_response(BIO *cbio, const OCSP_RESPONSE *resp);
256 BIO *acbio = NULL, *cbio = NULL, *derbio = NULL, *out = NULL; in ocsp_main() local
700 res = do_responder(&req, &cbio, acbio, req_timeout); in ocsp_main()
709 send_ocsp_response(cbio, resp); in ocsp_main()
773 if (cbio != NULL) in ocsp_main()
774 send_ocsp_response(cbio, resp); in ocsp_main()
825 if (cbio != NULL) { in ocsp_main()
831 BIO_free_all(cbio); in ocsp_main()
832 cbio = NULL; in ocsp_main()
911 BIO_free_all(cbio); in ocsp_main()
[all …]
H A Dcmp.c3289 BIO *cbio = NULL; in cmp_server() local
3304 &cbio, acbio, &keep_alive, in cmp_server()
3322 (void)http_server_send_status(prog, cbio, 404, "Not Found"); in cmp_server()
3333 (void)http_server_send_status(prog, cbio, in cmp_server()
3337 ret = http_server_send_asn1_resp(prog, cbio, keep_alive, in cmp_server()
3353 BIO_free_all(cbio); in cmp_server()
3354 cbio = NULL; in cmp_server()
3358 BIO_free_all(cbio); in cmp_server()
/freebsd/crypto/openssl/crypto/encode_decode/
H A Dencoder_lib.c646 OSSL_CORE_BIO *cbio = NULL; in encoder_process() local
660 ok = (cbio = ossl_core_bio_new_from_bio(current_out)) != NULL; in encoder_process()
662 ok = current_encoder->encode(current_encoder_ctx, cbio, in encoder_process()
677 ossl_core_bio_free(cbio); in encoder_process()
H A Ddecoder_lib.c804 OSSL_CORE_BIO *cbio = NULL; in decoder_process() local
969 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process()
1125 ok = new_decoder->decode(new_decoderctx, cbio, in decoder_process()
1161 ossl_core_bio_free(cbio); in decoder_process()
/freebsd/crypto/openssl/crypto/store/
H A Dstore_lib.c1054 OSSL_CORE_BIO *cbio = ossl_core_bio_new_from_bio(bp); in OSSL_STORE_attach() local
1056 if (cbio == NULL in OSSL_STORE_attach()
1058 || (loader_ctx = fetched_loader->p_attach(provctx, cbio)) == NULL) { in OSSL_STORE_attach()
1068 ossl_core_bio_free(cbio); in OSSL_STORE_attach()