Home
last modified time | relevance | path

Searched refs:hostname_len (Results 1 – 3 of 3) sorted by relevance

/net-tools-3.4.0/mbedtls-2.4.0/library/
Dssl_cli.c64 size_t hostname_len; in ssl_write_hostname_ext() local
74 hostname_len = strlen( ssl->hostname ); in ssl_write_hostname_ext()
76 if( end < p || (size_t)( end - p ) < hostname_len + 9 ) in ssl_write_hostname_ext()
103 *p++ = (unsigned char)( ( (hostname_len + 5) >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
104 *p++ = (unsigned char)( ( (hostname_len + 5) ) & 0xFF ); in ssl_write_hostname_ext()
106 *p++ = (unsigned char)( ( (hostname_len + 3) >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
107 *p++ = (unsigned char)( ( (hostname_len + 3) ) & 0xFF ); in ssl_write_hostname_ext()
110 *p++ = (unsigned char)( ( hostname_len >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
111 *p++ = (unsigned char)( ( hostname_len ) & 0xFF ); in ssl_write_hostname_ext()
113 memcpy( p, ssl->hostname, hostname_len ); in ssl_write_hostname_ext()
[all …]
Dssl_srv.c95 size_t servername_list_size, hostname_len; in ssl_parse_servername_ext() local
110 hostname_len = ( ( p[1] << 8 ) | p[2] ); in ssl_parse_servername_ext()
111 if( hostname_len + 3 > servername_list_size ) in ssl_parse_servername_ext()
120 ssl, p + 3, hostname_len ); in ssl_parse_servername_ext()
131 servername_list_size -= hostname_len + 3; in ssl_parse_servername_ext()
132 p += hostname_len + 3; in ssl_parse_servername_ext()
Dssl_tls.c5965 size_t hostname_len; in mbedtls_ssl_set_hostname() local
5970 hostname_len = strlen( hostname ); in mbedtls_ssl_set_hostname()
5972 if( hostname_len + 1 == 0 ) in mbedtls_ssl_set_hostname()
5975 if( hostname_len > MBEDTLS_SSL_MAX_HOST_NAME_LEN ) in mbedtls_ssl_set_hostname()
5978 ssl->hostname = mbedtls_calloc( 1, hostname_len + 1 ); in mbedtls_ssl_set_hostname()
5983 memcpy( ssl->hostname, hostname, hostname_len ); in mbedtls_ssl_set_hostname()
5985 ssl->hostname[hostname_len] = '\0'; in mbedtls_ssl_set_hostname()