• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssl/apps/

Lines Matching defs:cbio

104 static int send_ocsp_response(BIO *cbio, OCSP_RESPONSE *resp);
118 static OCSP_RESPONSE *query_responder(BIO *cbio, const char *host,
227 BIO *acbio = NULL, *cbio = NULL, *derbio = NULL, *out = NULL;
622 if (!do_responder(&req, &cbio, acbio, req_timeout))
629 send_ocsp_response(cbio, resp);
685 if (cbio != NULL)
686 send_ocsp_response(cbio, resp);
735 if (cbio != NULL) {
741 BIO_free_all(cbio);
742 cbio = NULL;
816 BIO_free_all(cbio);
1369 BIO *cbio = NULL, *getbio = NULL, *b64 = NULL;
1378 cbio = BIO_pop(acbio);
1379 *pcbio = cbio;
1380 client = BIO_get_peer_name(cbio);
1384 (void) BIO_get_fd(cbio, &acfd);
1390 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf));
1443 len = BIO_gets(cbio, inbuf, sizeof(inbuf));
1461 req = d2i_OCSP_REQUEST_bio(cbio, NULL);
1479 static int send_ocsp_response(BIO *cbio, OCSP_RESPONSE *resp)
1484 if (cbio == NULL)
1486 BIO_printf(cbio, http_resp, i2d_OCSP_RESPONSE(resp, NULL));
1487 i2d_OCSP_RESPONSE_bio(cbio, resp);
1488 (void)BIO_flush(cbio);
1493 static OCSP_RESPONSE *query_responder(BIO *cbio, const char *host,
1508 BIO_set_nbio(cbio, 1);
1510 rv = BIO_do_connect(cbio);
1512 if ((rv <= 0) && ((req_timeout == -1) || !BIO_should_retry(cbio))) {
1517 if (BIO_get_fd(cbio, &fd) < 0) {
1534 ctx = OCSP_sendreq_new(cbio, path, NULL, -1);
1562 if (BIO_should_read(cbio)) {
1564 } else if (BIO_should_write(cbio)) {
1592 BIO *cbio = NULL;
1596 cbio = BIO_new_connect(host);
1597 if (cbio == NULL) {
1602 BIO_set_conn_port(cbio, port);
1612 cbio = BIO_push(sbio, cbio);
1615 resp = query_responder(cbio, host, path, headers, req, req_timeout);
1619 BIO_free_all(cbio);