Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 119) sorted by relevance

12345

/curl/lib/vtls/
H A Dhostcheck.c49 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() argument
54 return strncasecompare(hostname, pattern, hostlen); in pmatch()
81 static bool hostmatch(const char *hostname, in hostmatch() argument
90 DEBUGASSERT(hostname); in hostmatch()
94 if(hostname[hostlen-1]=='.') in hostmatch()
100 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
103 else if(Curl_host_is_ipnum(hostname)) in hostmatch()
111 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
115 size_t skiphost = hostname_label_end - hostname; in hostmatch()
130 if(match && *match && hostname && *hostname) in Curl_cert_hostcheck()
[all …]
H A Dhostcheck.h31 const char *hostname, size_t hostlen);
/curl/lib/
H A Dhostip4.c90 const char *hostname, in Curl_getaddrinfo() argument
102 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo()
104 infof(data, "Curl_ipv4_resolve_r failed for %s", hostname); in Curl_getaddrinfo()
121 struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, in Curl_ipv4_resolve_r() argument
147 (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai); in Curl_ipv4_resolve_r()
168 h = gethostbyname_r(hostname, in Curl_ipv4_resolve_r()
187 (void)gethostbyname_r(hostname, in Curl_ipv4_resolve_r()
254 res = gethostbyname_r(hostname, in Curl_ipv4_resolve_r()
289 h = gethostbyname((void *)hostname); in Curl_ipv4_resolve_r()
H A Dhostip.h107 char hostname[1]; member
110 bool Curl_host_is_ipnum(const char *hostname);
127 const char *hostname,
132 const char *hostname, int port,
159 const char *hostname,
175 struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, int port);
207 const char *hostname,
217 const char *hostname, size_t hostlen, int port,
H A Didn.h27 bool Curl_is_ASCII_name(const char *hostname);
28 CURLcode Curl_idnconvert_hostname(struct hostname *host);
31 void Curl_free_idnconverted_hostname(struct hostname *host);
H A Dhostip6.c99 const char *hostname, in Curl_getaddrinfo() argument
129 if((1 == Curl_inet_pton(AF_INET, hostname, addrbuf)) || in Curl_getaddrinfo()
130 (1 == Curl_inet_pton(AF_INET6, hostname, addrbuf))) { in Curl_getaddrinfo()
141 error = Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &res); in Curl_getaddrinfo()
143 infof(data, "getaddrinfo(3) failed for %s:%d", hostname, port); in Curl_getaddrinfo()
H A Dasyn-thread.c188 free(tsd->hostname); in destroy_thread_sync_data()
208 const char *hostname, in init_thread_sync_data() argument
248 tsd->hostname = strdup(hostname); in init_thread_sync_data()
249 if(!tsd->hostname) in init_thread_sync_data()
436 free(async->hostname); in destroy_async_data()
437 async->hostname = NULL; in destroy_async_data()
464 if(!init_thread_sync_data(td, hostname, port, hints)) { in init_resolve_thread()
470 free(asp->hostname); in init_resolve_thread()
471 asp->hostname = strdup(hostname); in init_resolve_thread()
472 if(!asp->hostname) in init_resolve_thread()
[all …]
H A Dhostip.c357 const char *hostname, in Curl_fetch_addr() argument
365 dns = fetch_addr(data, hostname, port); in Curl_fetch_addr()
470 const char *hostname, in Curl_cache_addr() argument
489 hostlen = strlen(hostname); in Curl_cache_addr()
512 memcpy(dns->hostname, hostname, hostlen); in Curl_cache_addr()
696 size_t hostname_len = strlen(hostname); in Curl_resolv()
713 dns = fetch_addr(data, hostname, port); in Curl_resolv()
801 tailmatch(hostname, ".localhost")) in Curl_resolv()
1344 !dns->hostname[0] || Curl_host_is_ipnum(dns->hostname)) in show_resolve_info()
1350 (dns->hostname[0] ? dns->hostname : "(none)"), dns->hostport); in show_resolve_info()
[all …]
H A Dhsts.c111 const char *hostname, in hsts_create() argument
117 DEBUGASSERT(hostname); in hsts_create()
119 hlen = strlen(hostname); in hsts_create()
120 if(hlen && (hostname[hlen - 1] == '.')) in hsts_create()
129 duphost = Curl_memdup0(hostname, hlen); in hsts_create()
154 if(Curl_host_is_ipnum(hostname)) in Curl_hsts_parse()
221 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
236 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
260 size_t hlen = strlen(hostname); in Curl_hsts()
267 if(hostname[hlen-1] == '.') in Curl_hsts()
[all …]
H A Dhostasyn.c81 data->state.async.hostname, 0, in Curl_addrinfo_callback()
116 const char *hostname, in Curl_getaddrinfo() argument
120 return Curl_resolver_getaddrinfo(data, hostname, port, waitp); in Curl_getaddrinfo()
H A Durlapi.c520 if(hostname[0] == '[') { in Curl_parse_port()
521 portptr = strchr(hostname, ']'); in Curl_parse_port()
534 portptr = strchr(hostname, ':'); in Curl_parse_port()
578 DEBUGASSERT(*hostname == '['); in ipv6_parse()
581 hostname++; in ipv6_parse()
589 if(hostname[len] == '%') { in ipv6_parse()
593 char *h = &hostname[len + 1]; in ipv6_parse()
621 hostname[hlen + 1] = 0; in ipv6_parse()
632 DEBUGASSERT(hostname); in hostname_check()
636 else if(hostname[0] == '[') in hostname_check()
[all …]
H A Dsocks.c88 const char *hostname; member
304 sx->hostname, sx->remote_port); in do_SOCKS4()
351 infof(data, "Hostname '%s' was found", sx->hostname); in do_SOCKS4()
398 sx->hostname); in do_SOCKS4()
587 const size_t hostname_len = strlen(sx->hostname); in do_SOCKS5()
598 sx->hostname, sx->remote_port); in do_SOCKS5()
852 sx->hostname); in do_SOCKS5()
923 if(1 == Curl_inet_pton(AF_INET, sx->hostname, ip4)) { in do_SOCKS5()
935 sx->hostname, sx->remote_port); in do_SOCKS5()
994 sx->hostname, (unsigned char)socksreq[1]); in do_SOCKS5()
[all …]
H A Damigaos.c127 struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, in Curl_ipv4_resolve_r() argument
140 h = gethostbyname_r((STRPTR)hostname, buf, in Curl_ipv4_resolve_r()
159 h = gethostbyname((STRPTR)hostname); in Curl_ipv4_resolve_r()
169 h = gethostbyname(hostname); in Curl_ipv4_resolve_r()
H A Dhsts.h52 CURLcode Curl_hsts_parse(struct hsts *h, const char *hostname,
54 struct stsentry *Curl_hsts(struct hsts *h, const char *hostname,
H A Dcurl_addrinfo.h80 Curl_ip2addr(int af, const void *inaddr, const char *hostname, int port);
97 curl_dbg_getaddrinfo(const char *hostname, const char *service,
H A Dasyn-ares.c109 char hostname[1]; member
757 const char *hostname, in Curl_resolver_getaddrinfo() argument
762 size_t namelen = strlen(hostname); in Curl_resolver_getaddrinfo()
767 strcpy(res->hostname, hostname); in Curl_resolver_getaddrinfo()
768 data->state.async.hostname = res->hostname; in Curl_resolver_getaddrinfo()
803 ares_getaddrinfo((ares_channel)data->state.async.resolver, hostname, in Curl_resolver_getaddrinfo()
814 ares_gethostbyname((ares_channel)data->state.async.resolver, hostname, in Curl_resolver_getaddrinfo()
816 ares_gethostbyname((ares_channel)data->state.async.resolver, hostname, in Curl_resolver_getaddrinfo()
826 hostname, PF_INET, in Curl_resolver_getaddrinfo()
H A Dcurl_addrinfo.c366 Curl_ip2addr(int af, const void *inaddr, const char *hostname, int port) in Curl_ip2addr() argument
376 DEBUGASSERT(inaddr && hostname); in Curl_ip2addr()
378 namelen = strlen(hostname) + 1; in Curl_ip2addr()
397 memcpy(ai->ai_canonname, hostname, namelen); in Curl_ip2addr()
536 curl_dbg_getaddrinfo(const char *hostname, in curl_dbg_getaddrinfo() argument
543 int res = lwip_getaddrinfo(hostname, service, hints, result); in curl_dbg_getaddrinfo()
545 int res = (getaddrinfo)(hostname, service, hints, result); in curl_dbg_getaddrinfo()
H A Dhttp_ntlm.c143 const char *hostname = NULL; in Curl_output_ntlm() local
161 hostname = conn->http_proxy.host.name; in Curl_output_ntlm()
175 hostname = conn->host.name; in Curl_output_ntlm()
213 service, hostname, in Curl_output_ntlm()
/curl/docs/cmdline-opts/
H A Dsocks5-hostname.md4 Long: socks5-hostname
6 Help: SOCKS5 proxy, pass hostname to proxy
14 - --socks5-hostname proxy.example:7000 $URL
17 # `--socks5-hostname`
19 Use the specified SOCKS5 proxy (and let the proxy resolve the hostname). If
28 This option is superfluous since you can specify a socks5 hostname proxy with
H A Dinterface.md21 name, IP address or hostname. If you prefer to be specific, you can use the
31 IP address or hostname.
35 Interface name and IP address or hostname. This syntax requires libcurl 8.9.0
46 That name resolve operation if a hostname is provided does **not** use
H A Dconnect-to.md21 NOT affect the hostname/port number that is used for TLS/SSL (e.g. SNI,
26 original hostname and port number.
28 A hostname specified to this option is compared as a string, so it needs to
32 Example: redirect connects from the example.com hostname to 127.0.0.1
H A Dsocks4a.md13 - socks5-hostname
15 - --socks4a hostname:4096 $URL
21 assumed at port 1080. This asks the proxy to resolve the hostname.
H A Dsocks4.md13 - socks5-hostname
15 - --socks4 hostname:4096 $URL
21 assumed at port 1080. Using this socket type make curl resolve the hostname
/curl/tests/data/
H A Dtest72815 # The hostname in this redirect is 256 characters and too long (> 255) for
37 SOCKS5h with HTTP redirect to hostname too long
61 curl: (97) SOCKS5: the destination hostname is too long to be resolved remotely by the proxy.
/curl/docs/libcurl/opts/
H A DCURLOPT_INTERFACE.md32 or a hostname. If you prefer one of these, you can use the following special
36 * `host!\<name\>` - IP address or hostname
37 * `ifhost!\<interface\>!\<host\>` - Interface name and IP address or hostname
46 We strongly advise against specifying the interface with a hostname, as it

Completed in 36 milliseconds

12345