Home
last modified time | relevance | path

Searched refs:cur_len (Results 1 – 2 of 2) sorted by relevance

/openthread-3.5.0/third_party/mbedtls/repo/library/
Dssl_srv.c697 size_t list_len, cur_len, ours_len; in ssl_parse_alpn_ext() local
734 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()
Dssl_tls.c4755 size_t cur_len, tot_len; in mbedtls_ssl_conf_alpn_protocols() local
4766 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()