/freebsd/crypto/openssl/apps/lib/ |
H A D | http_server.c | 292 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL; in http_server_get_asn1_req() local 303 if (cbio == NULL) { in http_server_get_asn1_req() 310 *pcbio = cbio = BIO_pop(acbio); in http_server_get_asn1_req() 314 if (cbio == NULL) { in http_server_get_asn1_req() 322 (void)BIO_get_fd(cbio, &acfd); in http_server_get_asn1_req() 328 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf)); in http_server_get_asn1_req() 334 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req() 357 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req() 370 (void)http_server_send_status(cbio, 400, "Bad Request"); in http_server_get_asn1_req() 384 (void)http_server_send_status(cbio, 200, "OK"); in http_server_get_asn1_req() [all …]
|
H A D | apps.c | 2512 BIO *cbio; in app_http_tls_cb() local 2522 cbio = BIO_pop(bio); /* connect+HTTP BIO */ in app_http_tls_cb() 2525 bio = cbio; in app_http_tls_cb()
|
/freebsd/crypto/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()
|
/freebsd/crypto/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 | 170 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);
|
H A D | BIO_s_accept.pod | 190 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);
|
/freebsd/crypto/openssl/crypto/http/ |
H A D | http_client.c | 877 BIO *cbio; in http_new_bio() local 889 cbio = BIO_new_connect(host /* optionally includes ":port" */); in http_new_bio() 890 if (cbio == NULL) in http_new_bio() 893 (void)BIO_set_conn_port(cbio, port); in http_new_bio() 896 return cbio; in http_new_bio() 946 BIO *cbio; /* == bio if supplied, used as connection BIO if rbio is NULL */ in OSSL_HTTP_open() local 959 cbio = bio; in OSSL_HTTP_open() 980 cbio = http_new_bio(server, port, use_ssl, proxy_host, proxy_port); in OSSL_HTTP_open() 983 if (cbio == NULL) in OSSL_HTTP_open() 992 if (rbio == NULL && BIO_do_connect_retry(cbio, overall_timeout, -1) <= 0) { in OSSL_HTTP_open() [all …]
|
/freebsd/crypto/openssl/apps/include/ |
H A D | http_server.h | 102 int http_server_send_asn1_resp(BIO *cbio, int keep_alive, 113 int http_server_send_status(BIO *cbio, int status, const char *reason);
|
/freebsd/crypto/openssl/apps/ |
H A D | ocsp.c | 80 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() 1215 send_ocsp_response(BIO * cbio,const OCSP_RESPONSE * resp) send_ocsp_response() argument [all...] |
H A D | cmp.c | 2683 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()
|
/freebsd/crypto/openssl/crypto/encode_decode/ |
H A D | encoder_lib.c | 623 OSSL_CORE_BIO *cbio = NULL; in encoder_process() 637 ok = (cbio = ossl_core_bio_new_from_bio(current_out)) != NULL; in encoder_process() 639 ok = current_encoder->encode(current_encoder_ctx, cbio, in encoder_process() 652 ossl_core_bio_free(cbio); in encoder_process() 618 OSSL_CORE_BIO *cbio = NULL; encoder_process() local
|
H A D | decoder_lib.c | 681 OSSL_CORE_BIO *cbio = NULL; in decoder_process() local 820 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process() 963 ok = new_decoder->decode(new_decoderctx, cbio, in decoder_process() 997 ossl_core_bio_free(cbio); in decoder_process()
|
/freebsd/crypto/openssl/crypto/store/ |
H A D | store_lib.c | 991 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()
|