Lines Matching refs:cbio

99 static int send_ocsp_response(BIO *cbio, OCSP_RESPONSE *resp);
100 static OCSP_RESPONSE *query_responder(BIO *err, BIO *cbio, char *path,
794 BIO *acbio = NULL, *cbio = NULL; in ocsp_main() local
899 if (!do_responder(&cfg.req, &cbio, acbio, in ocsp_main()
905 send_ocsp_response(cbio, resp); in ocsp_main()
976 if (cbio) in ocsp_main()
977 send_ocsp_response(cbio, resp); in ocsp_main()
1030 if (cbio) { in ocsp_main()
1035 BIO_free_all(cbio); in ocsp_main()
1036 cbio = NULL; in ocsp_main()
1102 BIO_free_all(cbio); in ocsp_main()
1405 BIO *cbio = NULL; in do_responder() local
1412 cbio = BIO_pop(acbio); in do_responder()
1413 *pcbio = cbio; in do_responder()
1416 len = BIO_gets(cbio, inbuf, sizeof inbuf); in do_responder()
1434 req = d2i_OCSP_REQUEST_bio(cbio, NULL); in do_responder()
1446 send_ocsp_response(BIO *cbio, OCSP_RESPONSE *resp) in send_ocsp_response() argument
1452 if (!cbio) in send_ocsp_response()
1454 BIO_printf(cbio, http_resp, i2d_OCSP_RESPONSE(resp, NULL)); in send_ocsp_response()
1455 i2d_OCSP_RESPONSE_bio(cbio, resp); in send_ocsp_response()
1456 (void) BIO_flush(cbio); in send_ocsp_response()
1461 query_responder(BIO *err, BIO *cbio, char *path, STACK_OF(CONF_VALUE) *headers, in query_responder() argument
1473 BIO_set_nbio(cbio, 1); in query_responder()
1475 rv = BIO_do_connect(cbio); in query_responder()
1477 if ((rv <= 0) && ((req_timeout == -1) || !BIO_should_retry(cbio))) { in query_responder()
1481 if (BIO_get_fd(cbio, &fd) < 0) { in query_responder()
1498 ctx = OCSP_sendreq_new(cbio, path, NULL, -1); in query_responder()
1525 if (BIO_should_read(cbio)) { in query_responder()
1527 } else if (BIO_should_write(cbio)) { in query_responder()
1553 BIO *cbio = NULL; in process_responder() local
1557 cbio = BIO_new_connect(host); in process_responder()
1558 if (!cbio) { in process_responder()
1563 BIO_set_conn_port(cbio, port); in process_responder()
1573 cbio = BIO_push(sbio, cbio); in process_responder()
1575 resp = query_responder(err, cbio, path, headers, host, req, req_timeout); in process_responder()
1580 BIO_free_all(cbio); in process_responder()