Home
last modified time | relevance | path

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

/reactos/dll/3rdparty/mbedtls/
H A Dssl_cli.c86 size_t hostname_len; in ssl_write_hostname_ext() local
97 hostname_len = strlen( ssl->hostname ); in ssl_write_hostname_ext()
99 MBEDTLS_SSL_CHK_BUF_PTR( p, end, hostname_len + 9 ); in ssl_write_hostname_ext()
130 *p++ = (unsigned char)( ( (hostname_len + 5) >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
131 *p++ = (unsigned char)( ( (hostname_len + 5) ) & 0xFF ); in ssl_write_hostname_ext()
133 *p++ = (unsigned char)( ( (hostname_len + 3) >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
134 *p++ = (unsigned char)( ( (hostname_len + 3) ) & 0xFF ); in ssl_write_hostname_ext()
137 *p++ = (unsigned char)( ( hostname_len >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
138 *p++ = (unsigned char)( ( hostname_len ) & 0xFF ); in ssl_write_hostname_ext()
140 memcpy( p, ssl->hostname, hostname_len ); in ssl_write_hostname_ext()
[all …]
H A Dssl_srv.c114 size_t servername_list_size, hostname_len; in ssl_parse_servername_ext() local
138 hostname_len = ( ( p[1] << 8 ) | p[2] ); in ssl_parse_servername_ext()
139 if( hostname_len + 3 > servername_list_size ) in ssl_parse_servername_ext()
150 ssl, p + 3, hostname_len ); in ssl_parse_servername_ext()
161 servername_list_size -= hostname_len + 3; in ssl_parse_servername_ext()
162 p += hostname_len + 3; in ssl_parse_servername_ext()
H A Dssl_tls.c7631 size_t hostname_len = 0; in mbedtls_ssl_set_hostname() local
7637 hostname_len = strlen( hostname ); in mbedtls_ssl_set_hostname()
7639 if( hostname_len > MBEDTLS_SSL_MAX_HOST_NAME_LEN ) in mbedtls_ssl_set_hostname()
7660 ssl->hostname = mbedtls_calloc( 1, hostname_len + 1 ); in mbedtls_ssl_set_hostname()
7664 memcpy( ssl->hostname, hostname, hostname_len ); in mbedtls_ssl_set_hostname()
7666 ssl->hostname[hostname_len] = '\0'; in mbedtls_ssl_set_hostname()