/openssl/apps/lib/ |
H A D | http_server.c | 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() 497 BIO_free_all(cbio); in http_server_get_asn1_req() 524 ret = BIO_printf(cbio, "%s\r\n", buf) > 0 in http_server_send_asn1_resp() 525 && ASN1_item_i2d_bio(it, cbio, resp) > 0; in http_server_send_asn1_resp() 527 (void)BIO_flush(cbio); in http_server_send_asn1_resp() 543 ret = BIO_printf(cbio, "%s\r\n", buf) > 0; in http_server_send_status() [all …]
|
H A D | apps.c | 2566 BIO *cbio; in http_tls_shutdown() local 2573 cbio = BIO_pop(bio); /* connect+HTTP BIO */ in http_tls_shutdown() 2576 bio = cbio; in http_tls_shutdown()
|
/openssl/test/ |
H A D | bio_core_test.c | 69 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 D | bio_tfo_test.c | 54 BIO *cbio = NULL; in test_bio_tfo() local 95 if (!TEST_ptr(cbio = BIO_new_connect("localhost")) in test_bio_tfo() 96 || !TEST_long_gt(BIO_set_conn_port(cbio, port), 0) in test_bio_tfo() 97 || !TEST_long_gt(BIO_set_nbio(cbio, 1), 0) in test_bio_tfo() 98 || !TEST_long_gt(BIO_set_tfo(cbio, client_tfo), 0)) { in test_bio_tfo() 117 if (BIO_do_connect(cbio) <= 0) { in test_bio_tfo() 156 if (!TEST_true(BIO_write_ex(cbio, SOCKET_DATA, SOCKET_DATA_LEN, &bytes))) { in test_bio_tfo() 194 BIO_free(cbio); in test_bio_tfo()
|
H A D | quicapitest.c | 840 BIO *cbio = NULL, *strbio = NULL, *thisbio; in test_bio_ssl() local 850 cbio = BIO_new_ssl(cctx, 1); in test_bio_ssl() 851 if (!TEST_ptr(cbio)) in test_bio_ssl() 858 if (!TEST_int_eq(BIO_get_ssl(cbio, &clientquic), 1)) in test_bio_ssl() 871 retc = BIO_write_ex(cbio, msg, msglen, &written); in test_bio_ssl() 873 if (BIO_should_retry(cbio)) in test_bio_ssl() 874 err = BIO_retry_type(cbio); in test_bio_ssl() 906 for (i = 0, thisbio = cbio; i < 2; i++) { in test_bio_ssl() 957 BIO_free_all(cbio); in test_bio_ssl()
|
/openssl/test/helpers/ |
H A D | quictestlib.c | 30 BIO *cbio; member 133 BIO *cbio = NULL, *sbio = NULL, *fisbio = NULL; in qtest_create_quic_objects() local 181 cbio = BIO_new_dgram(cfd, 1); in qtest_create_quic_objects() 182 if (!TEST_ptr(cbio)) { in qtest_create_quic_objects() 214 cbio = BIO_push(pktsplitbio, cbio); in qtest_create_quic_objects() 236 cbio = BIO_push(noisebio, cbio); in qtest_create_quic_objects() 262 (*fault)->noiseargs.cbio = cbio; in qtest_create_quic_objects() 271 SSL_set_bio(*cssl, cbio, cbio); in qtest_create_quic_objects() 335 BIO_free_all(cbio); in qtest_create_quic_objects() 1237 BIO *cbio = fault->noiseargs.cbio; in qtest_fault_set_bw_limit() local [all …]
|
/openssl/doc/man3/ |
H A D | BIO_s_core.pod | 52 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 D | BIO_s_connect.pod | 194 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 D | BIO_s_accept.pod | 198 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);
|
/openssl/apps/include/ |
H A D | http_server.h | 84 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,
|
/openssl/crypto/http/ |
H A D | http_client.c | 954 BIO *cbio; in http_new_bio() local 967 if (cbio == NULL) in http_new_bio() 970 (void)BIO_set_conn_port(cbio, port); in http_new_bio() 973 return cbio; in http_new_bio() 1036 cbio = bio; in OSSL_HTTP_open() 1060 if (cbio == NULL) in OSSL_HTTP_open() 1071 BIO_free_all(cbio); in OSSL_HTTP_open() 1079 BIO *orig_bio = cbio; in OSSL_HTTP_open() 1081 cbio = (*bio_update_fn)(cbio, arg, 1 /* connect */, use_ssl != 0); in OSSL_HTTP_open() 1082 if (cbio == NULL) { in OSSL_HTTP_open() [all …]
|
/openssl/apps/ |
H A D | ocsp.c | 74 static int send_ocsp_response(BIO *cbio, const OCSP_RESPONSE *resp); 212 BIO *acbio = NULL, *cbio = NULL, *derbio = NULL, *out = NULL; in ocsp_main() local 656 res = do_responder(&req, &cbio, acbio, req_timeout); in ocsp_main() 665 send_ocsp_response(cbio, resp); in ocsp_main() 729 if (cbio != NULL) in ocsp_main() 730 send_ocsp_response(cbio, resp); in ocsp_main() 779 if (cbio != NULL) { in ocsp_main() 785 BIO_free_all(cbio); in ocsp_main() 786 cbio = NULL; in ocsp_main() 865 BIO_free_all(cbio); in ocsp_main() [all …]
|
H A D | cmp.c | 3159 BIO *cbio = NULL; in cmp_server() local 3174 &cbio, acbio, &keep_alive, in cmp_server() 3192 (void)http_server_send_status(prog, cbio, 404, "Not Found"); in cmp_server() 3203 (void)http_server_send_status(prog, cbio, in cmp_server() 3207 ret = http_server_send_asn1_resp(prog, cbio, keep_alive, in cmp_server() 3223 BIO_free_all(cbio); in cmp_server() 3224 cbio = NULL; in cmp_server() 3228 BIO_free_all(cbio); in cmp_server()
|
/openssl/crypto/encode_decode/ |
H A D | encoder_lib.c | 621 OSSL_CORE_BIO *cbio = NULL; in encoder_process() local 635 ok = (cbio = ossl_core_bio_new_from_bio(current_out)) != NULL; in encoder_process() 637 ok = current_encoder->encode(current_encoder_ctx, cbio, in encoder_process() 650 ossl_core_bio_free(cbio); in encoder_process()
|
H A D | decoder_lib.c | 717 OSSL_CORE_BIO *cbio = NULL; in decoder_process() local 856 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process() 1000 ok = new_decoder->decode(new_decoderctx, cbio, in decoder_process() 1034 ossl_core_bio_free(cbio); in decoder_process()
|
/openssl/crypto/store/ |
H A D | store_lib.c | 1044 OSSL_CORE_BIO *cbio = ossl_core_bio_new_from_bio(bp); in OSSL_STORE_attach() local 1046 if (cbio == NULL in OSSL_STORE_attach() 1048 || (loader_ctx = fetched_loader->p_attach(provctx, cbio)) == NULL) { in OSSL_STORE_attach() 1058 ossl_core_bio_free(cbio); in OSSL_STORE_attach()
|