Home
last modified time | relevance | path

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

/third_party/libuv/src/unix/
Dgetaddrinfo.c145 size_t hostname_len; in uv_getaddrinfo() local
172 hostname_len = hostname ? strlen(hostname) + 1 : 0; in uv_getaddrinfo()
175 buf = uv__malloc(hostname_len + service_len + hints_len); in uv_getaddrinfo()
203 req->hostname = memcpy(buf + len, hostname, hostname_len); in uv_getaddrinfo()
/third_party/curl/lib/
Dsocks.c520 const size_t hostname_len = strlen(hostname); in Curl_SOCKS5() local
537 if(!socks5_resolve_local && hostname_len > 255) { in Curl_SOCKS5()
539 "length > 255 [actual len=%zu]", hostname_len); in Curl_SOCKS5()
860 socksreq[len++] = (char) hostname_len; /* one byte address length */ in Curl_SOCKS5()
861 memcpy(&socksreq[len], hostname, hostname_len); /* address w/o NULL */ in Curl_SOCKS5()
862 len += hostname_len; in Curl_SOCKS5()
Dcookie.c125 size_t hostname_len = strlen(hostname); in tailmatch() local
127 if(hostname_len < cookie_domain_len) in tailmatch()
130 if(!strcasecompare(cooke_domain, hostname + hostname_len-cookie_domain_len)) in tailmatch()
141 if(hostname_len == cookie_domain_len) in tailmatch()
143 if('.' == *(hostname + hostname_len - cookie_domain_len - 1)) in tailmatch()
/third_party/curl/lib/vtls/
Dwolfssl.c400 size_t hostname_len = strlen(hostname); in wolfssl_connect_step1() local
401 if((hostname_len < USHRT_MAX) && in wolfssl_connect_step1()
407 (unsigned short)hostname_len) != 1)) { in wolfssl_connect_step1()
Dmesalink.c102 size_t hostname_len = strlen(hostname); in mesalink_connect_step1() local
223 if((hostname_len < USHRT_MAX) && in mesalink_connect_step1()
/third_party/mbedtls/library/
Dssl_cli.c100 size_t hostname_len; in mbedtls_ssl_write_hostname_ext() local
111 hostname_len = strlen( ssl->hostname ); in mbedtls_ssl_write_hostname_ext()
113 MBEDTLS_SSL_CHK_BUF_PTR( p, end, hostname_len + 9 ); in mbedtls_ssl_write_hostname_ext()
144 MBEDTLS_PUT_UINT16_BE( hostname_len + 5, p, 0 ); in mbedtls_ssl_write_hostname_ext()
147 MBEDTLS_PUT_UINT16_BE( hostname_len + 3, p, 0 ); in mbedtls_ssl_write_hostname_ext()
152 MBEDTLS_PUT_UINT16_BE( hostname_len, p, 0 ); in mbedtls_ssl_write_hostname_ext()
155 memcpy( p, ssl->hostname, hostname_len ); in mbedtls_ssl_write_hostname_ext()
157 *olen = hostname_len + 9; in mbedtls_ssl_write_hostname_ext()
Dssl_srv.c86 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()
122 ssl, p + 3, hostname_len ); in ssl_parse_servername_ext()
133 servername_list_size -= hostname_len + 3; in ssl_parse_servername_ext()
134 p += hostname_len + 3; in ssl_parse_servername_ext()
Dssl_tls.c4042 size_t hostname_len = 0; in mbedtls_ssl_set_hostname() local
4048 hostname_len = strlen( hostname ); in mbedtls_ssl_set_hostname()
4050 if( hostname_len > MBEDTLS_SSL_MAX_HOST_NAME_LEN ) in mbedtls_ssl_set_hostname()
4071 ssl->hostname = mbedtls_calloc( 1, hostname_len + 1 ); in mbedtls_ssl_set_hostname()
4075 memcpy( ssl->hostname, hostname, hostname_len ); in mbedtls_ssl_set_hostname()
4077 ssl->hostname[hostname_len] = '\0'; in mbedtls_ssl_set_hostname()
/third_party/NuttX/fs/nfs/
Drpc.h278 uint32_t hostname_len; member
Drpc_clnt.c528 ch->rpc_auth_unix.hostname_len = htonl(CONFIG_NFS_MACHINE_NAME_SIZE); in rpcclnt_fmtheader()