Lines Matching refs:msg_len
894 size_t msg_len, ciph_len, sess_len, comp_len, ext_len; in ssl_parse_client_hello() local
998 msg_len = MBEDTLS_GET_UINT16_BE(ssl->in_len, 0); in ssl_parse_client_hello()
1003 msg_len = ssl->in_hslen; in ssl_parse_client_hello()
1010 if (msg_len > MBEDTLS_SSL_IN_CONTENT_LEN) { in ssl_parse_client_hello()
1016 mbedtls_ssl_in_hdr_len(ssl) + msg_len)) != 0) { in ssl_parse_client_hello()
1024 ssl->next_record_offset = msg_len + mbedtls_ssl_in_hdr_len(ssl); in ssl_parse_client_hello()
1033 MBEDTLS_SSL_DEBUG_BUF(4, "record contents", buf, msg_len); in ssl_parse_client_hello()
1035 ret = ssl->handshake->update_checksum(ssl, buf, msg_len); in ssl_parse_client_hello()
1049 if (msg_len < mbedtls_ssl_hs_hdr_len(ssl)) { in ssl_parse_client_hello()
1074 if (msg_len != mbedtls_ssl_hs_hdr_len(ssl) + handshake_len) { in ssl_parse_client_hello()
1076 (unsigned) msg_len, in ssl_parse_client_hello()
1130 msg_len -= mbedtls_ssl_hs_hdr_len(ssl); in ssl_parse_client_hello()
1153 if (msg_len < 38) { in ssl_parse_client_hello()
1188 sess_len + 34 + 2 > msg_len) { /* 2 for cipherlist length field */ in ssl_parse_client_hello()
1211 if (cookie_offset + 1 + cookie_len + 2 > msg_len) { in ssl_parse_client_hello()
1260 ciph_len + 2 + ciph_offset + 1 > msg_len || /* 1 for comp. alg. len */ in ssl_parse_client_hello()
1283 comp_len + comp_offset + 1 > msg_len) { in ssl_parse_client_hello()
1297 if (msg_len > ext_offset) { in ssl_parse_client_hello()
1298 if (msg_len < ext_offset + 2) { in ssl_parse_client_hello()
1307 if (msg_len != ext_offset + 2 + ext_len) { in ssl_parse_client_hello()