Lines Matching refs:init_num
75 && s->init_num >= SSL3_HM_HEADER_LENGTH) { in ssl3_do_write()
80 s->init_num, in ssl3_do_write()
88 s->init_num = msglen; in ssl3_do_write()
95 s->init_num, &written); in ssl3_do_write()
112 if (written == s->init_num) { in ssl3_do_write()
116 (size_t)(s->init_off + s->init_num), ussl, in ssl3_do_write()
121 s->init_num -= written; in ssl3_do_write()
133 s->init_num = (int)msglen; in tls_close_construct_packet()
1442 s->init_num = 0; in tls_finish_handshake()
1544 while (s->init_num < SSL3_HM_HEADER_LENGTH) { in tls_get_message_header()
1546 &p[s->init_num], in tls_get_message_header()
1547 SSL3_HM_HEADER_LENGTH - s->init_num, in tls_get_message_header()
1558 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header()
1575 s->init_num = readbytes - 1; in tls_get_message_header()
1584 s->init_num += readbytes; in tls_get_message_header()
1598 s->init_num = 0; in tls_get_message_header()
1624 s->init_num = SSL3_HM_HEADER_LENGTH; in tls_get_message_header()
1636 s->init_num = 0; in tls_get_message_header()
1652 *len = (unsigned long)s->init_num; in tls_get_message_body()
1657 n = s->s3.tmp.message_size - s->init_num; in tls_get_message_body()
1660 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body()
1666 s->init_num += readbytes; in tls_get_message_body()
1683 s->init_num)) { in tls_get_message_body()
1690 (size_t)s->init_num, ussl, s->msg_callback_arg); in tls_get_message_body()
1704 || s->init_num < SERVER_HELLO_RANDOM_OFFSET + SSL3_RANDOM_SIZE in tls_get_message_body()
1709 s->init_num + SSL3_HM_HEADER_LENGTH)) { in tls_get_message_body()
1718 (size_t)s->init_num + SSL3_HM_HEADER_LENGTH, ussl, in tls_get_message_body()
1722 *len = s->init_num; in tls_get_message_body()