Lines Matching refs:cbio
269 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL;
280 if (cbio == NULL) {
296 *pcbio = cbio = BIO_pop(acbio);
300 if (cbio == NULL) {
301 /* Cannot call http_server_send_status(..., cbio, ...) */
308 (void)BIO_get_fd(cbio, &acfd);
314 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf));
320 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
335 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
351 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
364 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
378 (void)http_server_send_status(prog, cbio, 200, "OK");
386 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
403 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
418 len = BIO_gets(cbio, inbuf, sizeof(inbuf));
421 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
432 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
444 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
467 req = ASN1_item_d2i_bio(it, getbio != NULL ? getbio : cbio, NULL);
471 (void)http_server_send_status(prog, cbio, 400, "Bad Request");
491 (void)http_server_send_status(prog, cbio, 500, "Internal Server Error");
496 BIO_free_all(cbio);
502 /* assumes that cbio does not do an encoding that changes the output length */
503 int http_server_send_asn1_resp(const char *prog, BIO *cbio, int keep_alive,
523 ret = BIO_printf(cbio, "%s\r\n", buf) > 0
524 && ASN1_item_i2d_bio(it, cbio, resp) > 0;
526 (void)BIO_flush(cbio);
530 int http_server_send_status(const char *prog, BIO *cbio,
542 ret = BIO_printf(cbio, "%s\r\n", buf) > 0;
543 (void)BIO_flush(cbio);