Lines Matching refs:cbio
289 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL;
300 if (cbio == NULL) {
307 *pcbio = cbio = BIO_pop(acbio);
311 if (cbio == NULL) {
312 /* Cannot call http_server_send_status(cbio, ...) */
319 (void)BIO_get_fd(cbio, &acfd);
325 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf));
331 (void)http_server_send_status(cbio, 400, "Bad Request");
354 (void)http_server_send_status(cbio, 400, "Bad Request");
367 (void)http_server_send_status(cbio, 400, "Bad Request");
381 (void)http_server_send_status(cbio, 200, "OK");
390 (void)http_server_send_status(cbio, 400, "Bad Request");
408 (void)http_server_send_status(cbio, 400, "Bad Request");
423 len = BIO_gets(cbio, inbuf, sizeof(inbuf));
426 (void)http_server_send_status(cbio, 400, "Bad Request");
438 (void)http_server_send_status(cbio, 400, "Bad Request");
450 (void)http_server_send_status(cbio, 400, "Bad Request");
472 req = ASN1_item_d2i_bio(it, getbio != NULL ? getbio : cbio, NULL);
476 (void)http_server_send_status(cbio, 400, "Bad Request");
496 (void)http_server_send_status(cbio, 500, "Internal Server Error");
501 BIO_free_all(cbio);
507 /* assumes that cbio does not do an encoding that changes the output length */
508 int http_server_send_asn1_resp(BIO *cbio, int keep_alive,
512 int ret = BIO_printf(cbio, HTTP_1_0" 200 OK\r\n%s"
518 && ASN1_item_i2d_bio(it, cbio, resp) > 0;
520 (void)BIO_flush(cbio);
524 int http_server_send_status(BIO *cbio, int status, const char *reason)
526 int ret = BIO_printf(cbio, HTTP_1_0" %d %s\r\n\r\n",
530 (void)BIO_flush(cbio);