Lines Matching refs:ext_len
1418 size_t msg_len, ciph_len, sess_len, comp_len, ext_len; in ssl_parse_client_hello() local
1887 ext_len = ( buf[ext_offset + 0] << 8 ) in ssl_parse_client_hello()
1890 if( msg_len != ext_offset + 2 + ext_len ) in ssl_parse_client_hello()
1899 ext_len = 0; in ssl_parse_client_hello()
1902 MBEDTLS_SSL_DEBUG_BUF( 3, "client hello extensions", ext, ext_len ); in ssl_parse_client_hello()
1904 while( ext_len != 0 ) in ssl_parse_client_hello()
1908 if ( ext_len < 4 ) { in ssl_parse_client_hello()
1917 if( ext_size + 4 > ext_len ) in ssl_parse_client_hello()
2079 ext_len -= 4 + ext_size; in ssl_parse_client_hello()
2309 size_t ext_len; in ssl_write_cid_ext() local
2340 ext_len = (size_t) ssl->own_cid_len + 1; in ssl_write_cid_ext()
2341 *p++ = (unsigned char)( ( ext_len >> 8 ) & 0xFF ); in ssl_write_cid_ext()
2342 *p++ = (unsigned char)( ( ext_len ) & 0xFF ); in ssl_write_cid_ext()
2629 size_t mki_len = 0, ext_len = 0; in ssl_write_use_srtp_ext() local
2669 ext_len = 5 + mki_len; in ssl_write_use_srtp_ext()
2670 buf[2] = (unsigned char)( ( ext_len >> 8 ) & 0xFF ); in ssl_write_use_srtp_ext()
2671 buf[3] = (unsigned char)( ext_len & 0xFF ); in ssl_write_use_srtp_ext()
2823 size_t olen, ext_len = 0, n; in ssl_write_server_hello() local
2966 ssl_write_renegotiation_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
2967 ext_len += olen; in ssl_write_server_hello()
2970 ssl_write_max_fragment_length_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
2971 ext_len += olen; in ssl_write_server_hello()
2975 ssl_write_truncated_hmac_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
2976 ext_len += olen; in ssl_write_server_hello()
2980 ssl_write_cid_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
2981 ext_len += olen; in ssl_write_server_hello()
2985 ssl_write_encrypt_then_mac_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
2986 ext_len += olen; in ssl_write_server_hello()
2990 ssl_write_extended_ms_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
2991 ext_len += olen; in ssl_write_server_hello()
2995 ssl_write_session_ticket_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
2996 ext_len += olen; in ssl_write_server_hello()
3004 ssl_write_supported_point_formats_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
3005 ext_len += olen; in ssl_write_server_hello()
3010 ssl_write_ecjpake_kkpp_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
3011 ext_len += olen; in ssl_write_server_hello()
3015 ssl_write_alpn_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
3016 ext_len += olen; in ssl_write_server_hello()
3020 ssl_write_use_srtp_ext( ssl, p + 2 + ext_len, &olen ); in ssl_write_server_hello()
3021 ext_len += olen; in ssl_write_server_hello()
3025 ext_len ) ); in ssl_write_server_hello()
3027 if( ext_len > 0 ) in ssl_write_server_hello()
3029 *p++ = (unsigned char)( ( ext_len >> 8 ) & 0xFF ); in ssl_write_server_hello()
3030 *p++ = (unsigned char)( ( ext_len ) & 0xFF ); in ssl_write_server_hello()
3031 p += ext_len; in ssl_write_server_hello()