Home
last modified time | relevance | path

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

/openssl-master/apps/lib/
A 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()
423 len = BIO_gets(cbio, inbuf, sizeof(inbuf)); in http_server_get_asn1_req()
500 BIO_free_all(cbio); in http_server_get_asn1_req()
517 && ASN1_item_i2d_bio(it, cbio, resp) > 0; in http_server_send_asn1_resp()
519 (void)BIO_flush(cbio); in http_server_send_asn1_resp()
[all …]
/openssl-master/test/
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()
/openssl-master/doc/man3/
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);
A 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);
A 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);
/openssl-master/crypto/http/
A Dhttp_client.c798 BIO *cbio; in http_new_bio() local
812 if (cbio == NULL) in http_new_bio()
815 (void)BIO_set_conn_port(cbio, port); in http_new_bio()
818 return cbio; in http_new_bio()
881 cbio = bio; in OSSL_HTTP_open()
907 if (cbio == NULL) in OSSL_HTTP_open()
918 BIO_free_all(cbio); in OSSL_HTTP_open()
925 BIO *orig_bio = cbio; in OSSL_HTTP_open()
927 cbio = (*bio_update_fn)(cbio, arg, 1 /* connect */, use_ssl); in OSSL_HTTP_open()
928 if (cbio == NULL) { in OSSL_HTTP_open()
[all …]
/openssl-master/apps/include/
A 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);
/openssl-master/apps/
A 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()
727 if (cbio != NULL) in ocsp_main()
728 send_ocsp_response(cbio, resp); in ocsp_main()
777 if (cbio != NULL) { in ocsp_main()
783 BIO_free_all(cbio); in ocsp_main()
784 cbio = NULL; in ocsp_main()
863 BIO_free_all(cbio); in ocsp_main()
[all …]
A Dcmp.c2557 BIO *cbio = NULL; in cmp_server() local
2572 &cbio, acbio, &keep_alive, in cmp_server()
2590 (void)http_server_send_status(cbio, 404, "Not Found"); in cmp_server()
2601 (void)http_server_send_status(cbio, in cmp_server()
2605 ret = http_server_send_asn1_resp(cbio, keep_alive, in cmp_server()
2621 BIO_free_all(cbio); in cmp_server()
2622 cbio = NULL; in cmp_server()
2626 BIO_free_all(cbio); in cmp_server()
/openssl-master/crypto/encode_decode/
A Dencoder_lib.c619 OSSL_CORE_BIO *cbio = NULL; in encoder_process() local
633 ok = (cbio = ossl_core_bio_new_from_bio(current_out)) != NULL; in encoder_process()
635 ok = current_encoder->encode(current_encoder_ctx, cbio, in encoder_process()
648 ossl_core_bio_free(cbio); in encoder_process()
A Ddecoder_lib.c680 OSSL_CORE_BIO *cbio = NULL; in decoder_process() local
818 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process()
959 ok = new_decoder->decode(new_decoderctx, cbio, in decoder_process()
993 ossl_core_bio_free(cbio); in decoder_process()
/openssl-master/crypto/store/
A 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()

Completed in 33 milliseconds