Lines Matching defs:cbio
292 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL;
303 if (cbio == NULL) {
310 *pcbio = cbio = BIO_pop(acbio);
314 if (cbio == NULL) {
315 /* Cannot call http_server_send_status(cbio, ...) */
322 (void)BIO_get_fd(cbio, &acfd);
328 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf));
334 (void)http_server_send_status(cbio, 400, "Bad Request");
357 (void)http_server_send_status(cbio, 400, "Bad Request");
370 (void)http_server_send_status(cbio, 400, "Bad Request");
384 (void)http_server_send_status(cbio, 200, "OK");
393 (void)http_server_send_status(cbio, 400, "Bad Request");
411 (void)http_server_send_status(cbio, 400, "Bad Request");
426 len = BIO_gets(cbio, inbuf, sizeof(inbuf));
429 (void)http_server_send_status(cbio, 400, "Bad Request");
441 (void)http_server_send_status(cbio, 400, "Bad Request");
453 (void)http_server_send_status(cbio, 400, "Bad Request");
475 req = ASN1_item_d2i_bio(it, getbio != NULL ? getbio : cbio, NULL);
479 (void)http_server_send_status(cbio, 400, "Bad Request");
499 (void)http_server_send_status(cbio, 500, "Internal Server Error");
504 BIO_free_all(cbio);
510 /* assumes that cbio does not do an encoding that changes the output length */
511 int http_server_send_asn1_resp(BIO *cbio, int keep_alive,
515 int ret = BIO_printf(cbio, HTTP_1_0" 200 OK\r\n%s"
521 && ASN1_item_i2d_bio(it, cbio, resp) > 0;
523 (void)BIO_flush(cbio);
527 int http_server_send_status(BIO *cbio, int status, const char *reason)
529 int ret = BIO_printf(cbio, HTTP_1_0" %d %s\r\n\r\n",
533 (void)BIO_flush(cbio);