Searched refs:cur_len (Results 1 – 2 of 2) sorted by relevance
697 size_t list_len, cur_len, ours_len; in ssl_parse_alpn_ext() local734 for( theirs = start; theirs != end; theirs += cur_len ) in ssl_parse_alpn_ext()736 cur_len = *theirs++; in ssl_parse_alpn_ext()739 if( cur_len > (size_t)( end - theirs ) ) in ssl_parse_alpn_ext()747 if( cur_len == 0 ) in ssl_parse_alpn_ext()761 for( theirs = start; theirs != end; theirs += cur_len ) in ssl_parse_alpn_ext()763 cur_len = *theirs++; in ssl_parse_alpn_ext()765 if( cur_len == ours_len && in ssl_parse_alpn_ext()766 memcmp( theirs, *ours, cur_len ) == 0 ) in ssl_parse_alpn_ext()
4755 size_t cur_len, tot_len; in mbedtls_ssl_conf_alpn_protocols() local4766 cur_len = strlen( *p ); in mbedtls_ssl_conf_alpn_protocols()4767 tot_len += cur_len; in mbedtls_ssl_conf_alpn_protocols()4769 if( ( cur_len == 0 ) || in mbedtls_ssl_conf_alpn_protocols()4770 ( cur_len > MBEDTLS_SSL_MAX_ALPN_NAME_LEN ) || in mbedtls_ssl_conf_alpn_protocols()