Lines Matching refs:state

45     int state;                  /* Current I/O state */  member
108 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_new()
224 rctx->state = OHS_ADD_HEADERS; in OSSL_HTTP_REQ_CTX_set_request_line()
260 && rctx->state != OHS_ERROR && rctx->state != OHS_ADD_HEADERS) { in OSSL_HTTP_REQ_CTX_set_expected()
572 if ((rctx->state & OHS_NOREAD) == 0) { in OSSL_HTTP_REQ_CTX_nbio()
573 if (rctx->expect_asn1 && (rctx->state == OHS_ASN1_HEADER in OSSL_HTTP_REQ_CTX_nbio()
574 || rctx->state == OHS_ASN1_CONTENT)) { in OSSL_HTTP_REQ_CTX_nbio()
587 if (rctx->state == OHS_ERROR_CONTENT) { in OSSL_HTTP_REQ_CTX_nbio()
605 switch (rctx->state) { in OSSL_HTTP_REQ_CTX_nbio()
613 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
616 rctx->state = OHS_WRITE_INIT; in OSSL_HTTP_REQ_CTX_nbio()
621 rctx->state = OHS_WRITE_HDR1; in OSSL_HTTP_REQ_CTX_nbio()
636 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
640 if (rctx->state == OHS_WRITE_HDR1) in OSSL_HTTP_REQ_CTX_nbio()
643 OSSL_TRACE_STRING(HTTP, rctx->state != OHS_WRITE_REQ || rctx->text, in OSSL_HTTP_REQ_CTX_nbio()
644 rctx->state != OHS_WRITE_REQ, rctx->pos, sz); in OSSL_HTTP_REQ_CTX_nbio()
647 if (rctx->state == OHS_WRITE_HDR1) in OSSL_HTTP_REQ_CTX_nbio()
648 rctx->state = OHS_WRITE_HDR; in OSSL_HTTP_REQ_CTX_nbio()
653 if (rctx->state == OHS_WRITE_HDR) { in OSSL_HTTP_REQ_CTX_nbio()
655 rctx->state = OHS_WRITE_REQ; in OSSL_HTTP_REQ_CTX_nbio()
672 rctx->state = OHS_FLUSH; in OSSL_HTTP_REQ_CTX_nbio()
680 rctx->state = OHS_FIRSTLINE; in OSSL_HTTP_REQ_CTX_nbio()
687 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
708 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
718 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
722 if (rctx->state == OHS_ERROR_CONTENT) { in OSSL_HTTP_REQ_CTX_nbio()
734 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
741 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
747 if (rctx->state == OHS_FIRSTLINE) in OSSL_HTTP_REQ_CTX_nbio()
753 if (rctx->state == OHS_FIRSTLINE) { in OSSL_HTTP_REQ_CTX_nbio()
757 rctx->state = OHS_HEADERS; in OSSL_HTTP_REQ_CTX_nbio()
762 rctx->state = OHS_REDIRECT; in OSSL_HTTP_REQ_CTX_nbio()
770 rctx->state = i < HTTP_STATUS_CODES_NONFATAL_ERROR in OSSL_HTTP_REQ_CTX_nbio()
788 if (rctx->state == OHS_REDIRECT in OSSL_HTTP_REQ_CTX_nbio()
799 if (rctx->state == OHS_HEADERS in OSSL_HTTP_REQ_CTX_nbio()
862 if (rctx->state == OHS_HEADERS_ERROR) { in OSSL_HTTP_REQ_CTX_nbio()
863 rctx->state = OHS_ERROR_CONTENT; in OSSL_HTTP_REQ_CTX_nbio()
879 if (rctx->state == OHS_REDIRECT) { in OSSL_HTTP_REQ_CTX_nbio()
889 rctx->state = OHS_STREAM; in OSSL_HTTP_REQ_CTX_nbio()
895 rctx->state = OHS_ASN1_HEADER; in OSSL_HTTP_REQ_CTX_nbio()
943 rctx->state = OHS_ASN1_CONTENT; in OSSL_HTTP_REQ_CTX_nbio()
953 rctx->state = OHS_ASN1_DONE; in OSSL_HTTP_REQ_CTX_nbio()
1049 return rctx->state == OHS_STREAM ? rctx->rbio : rctx->mem; in OSSL_HTTP_REQ_CTX_exchange()