Lines Matching refs:state
44 int state; /* Current I/O state */ member
105 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_new()
221 rctx->state = OHS_ADD_HEADERS; in OSSL_HTTP_REQ_CTX_set_request_line()
257 && rctx->state != OHS_ERROR && rctx->state != OHS_ADD_HEADERS) { in OSSL_HTTP_REQ_CTX_set_expected()
566 if ((rctx->state & OHS_NOREAD) == 0) { in OSSL_HTTP_REQ_CTX_nbio()
591 switch (rctx->state) { in OSSL_HTTP_REQ_CTX_nbio()
595 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
598 rctx->state = OHS_WRITE_INIT; in OSSL_HTTP_REQ_CTX_nbio()
603 rctx->state = OHS_WRITE_HDR1; in OSSL_HTTP_REQ_CTX_nbio()
618 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
621 if (OSSL_TRACE_ENABLED(HTTP) && rctx->state == OHS_WRITE_HDR1) in OSSL_HTTP_REQ_CTX_nbio()
623 OSSL_TRACE_STRING(HTTP, rctx->state != OHS_WRITE_REQ || rctx->text, in OSSL_HTTP_REQ_CTX_nbio()
624 rctx->state != OHS_WRITE_REQ, rctx->pos, sz); in OSSL_HTTP_REQ_CTX_nbio()
625 if (rctx->state == OHS_WRITE_HDR1) in OSSL_HTTP_REQ_CTX_nbio()
626 rctx->state = OHS_WRITE_HDR; in OSSL_HTTP_REQ_CTX_nbio()
631 if (rctx->state == OHS_WRITE_HDR) { in OSSL_HTTP_REQ_CTX_nbio()
633 rctx->state = OHS_WRITE_REQ; in OSSL_HTTP_REQ_CTX_nbio()
649 rctx->state = OHS_FLUSH; in OSSL_HTTP_REQ_CTX_nbio()
657 rctx->state = OHS_FIRSTLINE; in OSSL_HTTP_REQ_CTX_nbio()
664 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
684 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
694 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
702 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
709 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
715 if (rctx->state == OHS_FIRSTLINE) in OSSL_HTTP_REQ_CTX_nbio()
721 if (rctx->state == OHS_FIRSTLINE) { in OSSL_HTTP_REQ_CTX_nbio()
724 rctx->state = OHS_HEADERS; in OSSL_HTTP_REQ_CTX_nbio()
729 rctx->state = OHS_REDIRECT; in OSSL_HTTP_REQ_CTX_nbio()
736 rctx->state = OHS_HEADERS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
753 if (rctx->state == OHS_REDIRECT in OSSL_HTTP_REQ_CTX_nbio()
760 if (rctx->state == OHS_HEADERS in OSSL_HTTP_REQ_CTX_nbio()
822 if (rctx->state == OHS_HEADERS_ERROR) { in OSSL_HTTP_REQ_CTX_nbio()
844 if (rctx->state == OHS_REDIRECT) { in OSSL_HTTP_REQ_CTX_nbio()
851 rctx->state = OHS_STREAM; in OSSL_HTTP_REQ_CTX_nbio()
855 rctx->state = OHS_ASN1_HEADER; in OSSL_HTTP_REQ_CTX_nbio()
901 rctx->state = OHS_ASN1_CONTENT; in OSSL_HTTP_REQ_CTX_nbio()
910 rctx->state = OHS_ASN1_DONE; in OSSL_HTTP_REQ_CTX_nbio()
1006 return rctx->state == OHS_STREAM ? rctx->rbio : rctx->mem; in OSSL_HTTP_REQ_CTX_exchange()