Lines Matching defs:state
44 int state; /* Current I/O state */
101 rctx->state = OHS_ERROR;
209 rctx->state = OHS_ADD_HEADERS;
245 && rctx->state != OHS_ERROR && rctx->state != OHS_ADD_HEADERS) {
533 if ((rctx->state & OHS_NOREAD) == 0) {
558 switch (rctx->state) {
562 rctx->state = OHS_ERROR;
565 rctx->state = OHS_WRITE_INIT;
570 rctx->state = OHS_WRITE_HDR;
583 rctx->state = OHS_ERROR;
590 if (rctx->state == OHS_WRITE_HDR) {
592 rctx->state = OHS_WRITE_REQ;
606 rctx->state = OHS_FLUSH;
614 rctx->state = OHS_FIRSTLINE;
621 rctx->state = OHS_ERROR;
641 rctx->state = OHS_ERROR;
651 rctx->state = OHS_ERROR;
658 rctx->state = OHS_ERROR;
663 if (rctx->state == OHS_FIRSTLINE) {
666 rctx->state = OHS_HEADERS;
671 rctx->state = OHS_REDIRECT;
678 rctx->state = OHS_ERROR;
695 if (rctx->state == OHS_REDIRECT
700 if (rctx->state == OHS_HEADERS && rctx->expected_ct != NULL
748 if (rctx->state == OHS_ERROR)
756 if (rctx->state == OHS_REDIRECT) {
763 rctx->state = OHS_STREAM;
767 rctx->state = OHS_ASN1_HEADER;
813 rctx->state = OHS_ASN1_CONTENT;
822 rctx->state = OHS_ASN1_DONE;
905 return rctx->state == OHS_STREAM ? rctx->rbio : rctx->mem;