Home
last modified time | relevance | path

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

/third_party/openssl/apps/lib/
Dhttp_server.c289 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL; in http_server_get_asn1_req() local
300 if (cbio == NULL) { in http_server_get_asn1_req()
307 *pcbio = cbio = BIO_pop(acbio); in http_server_get_asn1_req()
311 if (cbio == NULL) { in http_server_get_asn1_req()
319 (void)BIO_get_fd(cbio, &acfd); in http_server_get_asn1_req()
325 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf)); in http_server_get_asn1_req()
331 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req()
354 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req()
367 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req()
381 (void)http_server_send_status(cbio, 200, "OK"); in http_server_get_asn1_req()
[all …]
Dapps.c2505 BIO *cbio; in app_http_tls_cb() local
2515 cbio = BIO_pop(bio); /* connect+HTTP BIO */ in app_http_tls_cb()
2518 bio = cbio; in app_http_tls_cb()
/third_party/node/deps/openssl/openssl/apps/lib/
Dhttp_server.c289 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL; in http_server_get_asn1_req() local
300 if (cbio == NULL) { in http_server_get_asn1_req()
307 *pcbio = cbio = BIO_pop(acbio); in http_server_get_asn1_req()
311 if (cbio == NULL) { in http_server_get_asn1_req()
319 (void)BIO_get_fd(cbio, &acfd); in http_server_get_asn1_req()
325 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf)); in http_server_get_asn1_req()
331 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req()
354 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req()
367 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req()
381 (void)http_server_send_status(cbio, 200, "OK"); in http_server_get_asn1_req()
[all …]
Dapps.c2509 BIO *cbio; in app_http_tls_cb() local
2519 cbio = BIO_pop(bio); /* connect+HTTP BIO */ in app_http_tls_cb()
2522 bio = cbio; in app_http_tls_cb()
/third_party/openssl/test/
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()
/third_party/curl/docs/examples/
Dcacertinmem.c88 BIO *cbio = BIO_new_mem_buf(mypem, sizeof(mypem)); in sslctx_function() local
95 if(!cts || !cbio) { in sslctx_function()
99 inf = PEM_X509_INFO_read_bio(cbio, NULL, NULL, NULL); in sslctx_function()
102 BIO_free(cbio); in sslctx_function()
117 BIO_free(cbio); in sslctx_function()
/third_party/openssl/crypto/http/
Dhttp_client.c852 BIO *cbio; in http_new_bio() local
865 cbio = BIO_new_connect(host /* optionally includes ":port" */); in http_new_bio()
866 if (cbio == NULL) in http_new_bio()
869 (void)BIO_set_conn_port(cbio, port); in http_new_bio()
872 return cbio; in http_new_bio()
922 BIO *cbio; /* == bio if supplied, used as connection BIO if rbio is NULL */ in OSSL_HTTP_open() local
935 cbio = bio; in OSSL_HTTP_open()
958 cbio = http_new_bio(server, port, use_ssl, proxy_host, proxy_port); in OSSL_HTTP_open()
961 if (cbio == NULL) in OSSL_HTTP_open()
970 if (rbio == NULL && BIO_do_connect_retry(cbio, overall_timeout, -1) <= 0) { in OSSL_HTTP_open()
[all …]
/third_party/node/deps/openssl/openssl/crypto/http/
Dhttp_client.c852 BIO *cbio; in http_new_bio() local
865 cbio = BIO_new_connect(host /* optionally includes ":port" */); in http_new_bio()
866 if (cbio == NULL) in http_new_bio()
869 (void)BIO_set_conn_port(cbio, port); in http_new_bio()
872 return cbio; in http_new_bio()
922 BIO *cbio; /* == bio if supplied, used as connection BIO if rbio is NULL */ in OSSL_HTTP_open() local
935 cbio = bio; in OSSL_HTTP_open()
958 cbio = http_new_bio(server, port, use_ssl, proxy_host, proxy_port); in OSSL_HTTP_open()
961 if (cbio == NULL) in OSSL_HTTP_open()
970 if (rbio == NULL && BIO_do_connect_retry(cbio, overall_timeout, -1) <= 0) { in OSSL_HTTP_open()
[all …]
/third_party/openssl/doc/man3/
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);
DBIO_s_connect.pod170 BIO *cbio, *out;
174 cbio = BIO_new_connect("localhost:http");
176 if (BIO_do_connect(cbio) <= 0) {
181 BIO_puts(cbio, "GET / HTTP/1.0\n\n");
183 len = BIO_read(cbio, tmpbuf, 1024);
188 BIO_free(cbio);
DBIO_s_accept.pod190 BIO *abio, *cbio, *cbio2;
209 cbio = BIO_pop(abio);
210 BIO_puts(cbio, "Connection 1: Sending out Data on initial connection\n");
227 BIO_puts(cbio, "Connection 1: Second connection established\n");
230 BIO_free(cbio);
/third_party/node/deps/openssl/openssl/apps/include/
Dhttp_server.h102 int http_server_send_asn1_resp(BIO *cbio, int keep_alive,
113 int http_server_send_status(BIO *cbio, int status, const char *reason);
/third_party/openssl/apps/include/
Dhttp_server.h102 int http_server_send_asn1_resp(BIO *cbio, int keep_alive,
113 int http_server_send_status(BIO *cbio, int status, const char *reason);
/third_party/openssl/apps/
Docsp.c80 static int send_ocsp_response(BIO *cbio, const OCSP_RESPONSE *resp);
216 BIO *acbio = NULL, *cbio = NULL, *derbio = NULL, *out = NULL; in ocsp_main() local
660 res = do_responder(&req, &cbio, acbio, port, req_timeout); in ocsp_main()
669 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 …]
Dcmp.c2682 BIO *cbio = NULL; in cmp_server() local
2697 &cbio, acbio, &keep_alive, in cmp_server()
2715 (void)http_server_send_status(cbio, 404, "Not Found"); in cmp_server()
2726 (void)http_server_send_status(cbio, in cmp_server()
2730 ret = http_server_send_asn1_resp(cbio, keep_alive, in cmp_server()
2746 BIO_free_all(cbio); in cmp_server()
2747 cbio = NULL; in cmp_server()
2751 BIO_free_all(cbio); in cmp_server()
/third_party/node/deps/openssl/openssl/apps/
Docsp.c80 static int send_ocsp_response(BIO *cbio, const OCSP_RESPONSE *resp);
216 BIO *acbio = NULL, *cbio = NULL, *derbio = NULL, *out = NULL; in ocsp_main() local
660 res = do_responder(&req, &cbio, acbio, port, req_timeout); in ocsp_main()
669 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 …]
Dcmp.c2683 BIO *cbio = NULL; in cmp_server() local
2698 &cbio, acbio, &keep_alive, in cmp_server()
2716 (void)http_server_send_status(cbio, 404, "Not Found"); in cmp_server()
2727 (void)http_server_send_status(cbio, in cmp_server()
2731 ret = http_server_send_asn1_resp(cbio, keep_alive, in cmp_server()
2747 BIO_free_all(cbio); in cmp_server()
2748 cbio = NULL; in cmp_server()
2752 BIO_free_all(cbio); in cmp_server()
/third_party/openssl/crypto/encode_decode/
Dencoder_lib.c618 OSSL_CORE_BIO *cbio = NULL; in encoder_process() local
632 ok = (cbio = ossl_core_bio_new_from_bio(current_out)) != NULL; in encoder_process()
634 ok = current_encoder->encode(current_encoder_ctx, cbio, in encoder_process()
647 ossl_core_bio_free(cbio); in encoder_process()
Ddecoder_lib.c681 OSSL_CORE_BIO *cbio = NULL; in decoder_process() local
819 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process()
962 ok = new_decoder->decode(new_decoderctx, cbio, in decoder_process()
996 ossl_core_bio_free(cbio); in decoder_process()
/third_party/node/deps/openssl/openssl/crypto/encode_decode/
Dencoder_lib.c618 OSSL_CORE_BIO *cbio = NULL; in encoder_process() local
632 ok = (cbio = ossl_core_bio_new_from_bio(current_out)) != NULL; in encoder_process()
634 ok = current_encoder->encode(current_encoder_ctx, cbio, in encoder_process()
647 ossl_core_bio_free(cbio); in encoder_process()
Ddecoder_lib.c681 OSSL_CORE_BIO *cbio = NULL; in decoder_process() local
819 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process()
962 ok = new_decoder->decode(new_decoderctx, cbio, in decoder_process()
996 ossl_core_bio_free(cbio); in decoder_process()
/third_party/node/deps/openssl/openssl/crypto/store/
Dstore_lib.c991 OSSL_CORE_BIO *cbio = ossl_core_bio_new_from_bio(bp); in OSSL_STORE_attach() local
993 if (cbio == NULL in OSSL_STORE_attach()
994 || (loader_ctx = fetched_loader->p_attach(provctx, cbio)) == NULL) { in OSSL_STORE_attach()
1004 ossl_core_bio_free(cbio); in OSSL_STORE_attach()
/third_party/openssl/crypto/store/
Dstore_lib.c991 OSSL_CORE_BIO *cbio = ossl_core_bio_new_from_bio(bp); in OSSL_STORE_attach() local
993 if (cbio == NULL in OSSL_STORE_attach()
994 || (loader_ctx = fetched_loader->p_attach(provctx, cbio)) == NULL) { in OSSL_STORE_attach()
1004 ossl_core_bio_free(cbio); in OSSL_STORE_attach()
/third_party/curl/lib/vtls/
Dopenssl.c2983 BIO *cbio = NULL; in load_cacert_from_memory() local
2993 cbio = BIO_new_mem_buf(ca_info_blob->data, (int)ca_info_blob->len); in load_cacert_from_memory()
2994 if(!cbio) in load_cacert_from_memory()
2997 inf = PEM_X509_INFO_read_bio(cbio, NULL, NULL, NULL); in load_cacert_from_memory()
2999 BIO_free(cbio); in load_cacert_from_memory()
3029 BIO_free(cbio); in load_cacert_from_memory()