Lines Matching refs:cbio

269     BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL;  in http_server_get_asn1_req()  local
280 if (cbio == NULL) { in http_server_get_asn1_req()
296 *pcbio = cbio = BIO_pop(acbio); in http_server_get_asn1_req()
300 if (cbio == NULL) { in http_server_get_asn1_req()
308 (void)BIO_get_fd(cbio, &acfd); in http_server_get_asn1_req()
314 len = BIO_gets(cbio, reqbuf, sizeof(reqbuf)); in http_server_get_asn1_req()
320 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
335 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
351 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
364 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
378 (void)http_server_send_status(prog, cbio, 200, "OK"); in http_server_get_asn1_req()
386 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
403 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
418 len = BIO_gets(cbio, inbuf, sizeof(inbuf)); in http_server_get_asn1_req()
421 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
433 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
445 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
468 req = ASN1_item_d2i_bio(it, getbio != NULL ? getbio : cbio, NULL); in http_server_get_asn1_req()
472 (void)http_server_send_status(prog, cbio, 400, "Bad Request"); in http_server_get_asn1_req()
492 (void)http_server_send_status(prog, cbio, 500, "Internal Server Error"); in http_server_get_asn1_req()
497 BIO_free_all(cbio); in http_server_get_asn1_req()
504 int http_server_send_asn1_resp(const char *prog, BIO *cbio, int keep_alive, in http_server_send_asn1_resp() argument
524 ret = BIO_printf(cbio, "%s\r\n", buf) > 0 in http_server_send_asn1_resp()
525 && ASN1_item_i2d_bio(it, cbio, resp) > 0; in http_server_send_asn1_resp()
527 (void)BIO_flush(cbio); in http_server_send_asn1_resp()
531 int http_server_send_status(const char *prog, BIO *cbio, in http_server_send_status() argument
543 ret = BIO_printf(cbio, "%s\r\n", buf) > 0; in http_server_send_status()
544 (void)BIO_flush(cbio); in http_server_send_status()