Lines Matching refs:st

358     OSSL_STATEM *st = &s->statem;  in state_machine()  local
364 if (st->state == MSG_FLOW_ERROR) { in state_machine()
374 st->in_handshake++; in state_machine()
390 st->in_handshake, NULL); in state_machine()
395 if (st->state == MSG_FLOW_UNINITED in state_machine()
396 || st->state == MSG_FLOW_FINISHED) { in state_machine()
397 if (st->state == MSG_FLOW_UNINITED) { in state_machine()
398 st->hand_state = TLS_ST_BEFORE; in state_machine()
399 st->request_state = TLS_ST_BEFORE; in state_machine()
472 st->read_state_first_init = 1; in state_machine()
475 st->state = MSG_FLOW_WRITING; in state_machine()
479 while (st->state != MSG_FLOW_FINISHED) { in state_machine()
480 if (st->state == MSG_FLOW_READING) { in state_machine()
483 st->state = MSG_FLOW_WRITING; in state_machine()
489 } else if (st->state == MSG_FLOW_WRITING) { in state_machine()
492 st->state = MSG_FLOW_READING; in state_machine()
495 st->state = MSG_FLOW_FINISHED; in state_machine()
511 st->in_handshake--; in state_machine()
520 st->in_handshake, NULL); in state_machine()
539 OSSL_STATEM *st = &s->statem; in init_read_state_machine() local
541 st->read_state = READ_STATE_HEADER; in init_read_state_machine()
587 OSSL_STATEM *st = &s->statem; in read_state_machine() local
612 if (st->read_state_first_init) { in read_state_machine()
614 st->read_state_first_init = 0; in read_state_machine()
618 switch (st->read_state) { in read_state_machine()
664 st->read_state = READ_STATE_BODY; in read_state_machine()
704 st->read_state = READ_STATE_POST_PROCESS; in read_state_machine()
705 st->read_state_work = WORK_MORE_A; in read_state_machine()
709 st->read_state = READ_STATE_HEADER; in read_state_machine()
715 st->read_state_work = post_process_message(s, st->read_state_work); in read_state_machine()
716 switch (st->read_state_work) { in read_state_machine()
726 st->read_state = READ_STATE_HEADER; in read_state_machine()
750 OSSL_STATEM *st = &s->statem; in statem_do_write() local
752 if (st->hand_state == TLS_ST_CW_CHANGE in statem_do_write()
753 || st->hand_state == TLS_ST_SW_CHANGE) { in statem_do_write()
768 OSSL_STATEM *st = &s->statem; in init_write_state_machine() local
770 st->write_state = WRITE_STATE_TRANSITION; in init_write_state_machine()
806 OSSL_STATEM *st = &s->statem; in write_state_machine() local
836 switch (st->write_state) { in write_state_machine()
847 st->write_state = WRITE_STATE_PRE_WORK; in write_state_machine()
848 st->write_state_work = WORK_MORE_A; in write_state_machine()
862 switch (st->write_state_work = pre_work(s, st->write_state_work)) { in write_state_machine()
872 st->write_state = WRITE_STATE_SEND; in write_state_machine()
884 st->write_state = WRITE_STATE_POST_WORK; in write_state_machine()
885 st->write_state_work = WORK_MORE_A; in write_state_machine()
908 st->write_state = WRITE_STATE_POST_WORK; in write_state_machine()
909 st->write_state_work = WORK_MORE_A; in write_state_machine()
923 if (SSL_CONNECTION_IS_DTLS(s) && st->use_timer) { in write_state_machine()
930 st->write_state = WRITE_STATE_POST_WORK; in write_state_machine()
931 st->write_state_work = WORK_MORE_A; in write_state_machine()
935 switch (st->write_state_work = post_work(s, st->write_state_work)) { in write_state_machine()
945 st->write_state = WRITE_STATE_TRANSITION; in write_state_machine()
984 OSSL_STATEM *st = &s->statem; in ossl_statem_app_data_allowed() local
986 if (st->state == MSG_FLOW_UNINITED) in ossl_statem_app_data_allowed()
997 if (st->hand_state == TLS_ST_BEFORE in ossl_statem_app_data_allowed()
998 || st->hand_state == TLS_ST_SR_CLNT_HELLO) in ossl_statem_app_data_allowed()
1005 if (st->hand_state == TLS_ST_CW_CLNT_HELLO) in ossl_statem_app_data_allowed()