Home
last modified time | relevance | path

Searched refs:hostlen (Results 1 – 9 of 9) sorted by relevance

/curl/lib/vtls/
H A Dhostcheck.c49 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() argument
52 if(hostlen != patternlen) in pmatch()
54 return strncasecompare(hostname, pattern, hostlen); in pmatch()
82 size_t hostlen, in hostmatch() argument
91 DEBUGASSERT(hostlen); in hostmatch()
94 if(hostname[hostlen-1]=='.') in hostmatch()
95 hostlen--; in hostmatch()
100 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
111 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
117 return pmatch(hostname_label_end, hostlen - skiphost, in hostmatch()
[all …]
H A Dhostcheck.h31 const char *hostname, size_t hostlen);
H A Dschannel_verify.c526 size_t hostlen = strlen(conn_hostname); in Curl_verify_host() local
626 conn_hostname, hostlen)) { in Curl_verify_host()
H A Dopenssl.c2065 size_t hostlen, in subj_alt_hostcheck() argument
2072 if(Curl_cert_hostcheck(match_pattern, matchlen, hostname, hostlen)) { in subj_alt_hostcheck()
2118 size_t hostlen; in ossl_verifyhost() local
2121 hostlen = strlen(peer->hostname); in ossl_verifyhost()
2195 peer->hostname, hostlen, in ossl_verifyhost()
2290 peer->hostname, hostlen)) { in ossl_verifyhost()
/curl/lib/vauth/
H A Dntlm.c360 size_t hostlen = 0; in Curl_auth_create_ntlm_type1_message() local
399 SHORTPAIR(hostlen), in Curl_auth_create_ntlm_type1_message()
400 SHORTPAIR(hostlen), in Curl_auth_create_ntlm_type1_message()
410 size = 32 + hostlen + domlen; in Curl_auth_create_ntlm_type1_message()
497 size_t hostlen = 0; in Curl_auth_create_ntlm_type3_message() local
516 hostlen = sizeof(host) - 1; in Curl_auth_create_ntlm_type3_message()
582 hostlen = hostlen * 2; in Curl_auth_create_ntlm_type3_message()
657 SHORTPAIR(hostlen), in Curl_auth_create_ntlm_type3_message()
658 SHORTPAIR(hostlen), in Curl_auth_create_ntlm_type3_message()
733 memcpy(&ntlmbuf[size], host, hostlen); in Curl_auth_create_ntlm_type3_message()
[all …]
/curl/lib/
H A Dhostip.c471 size_t hostlen, /* length or zero */ in Curl_cache_addr() argument
488 if(!hostlen) in Curl_cache_addr()
489 hostlen = strlen(hostname); in Curl_cache_addr()
492 dns = calloc(1, sizeof(struct Curl_dns_entry) + hostlen); in Curl_cache_addr()
498 entry_len = create_hostcache_id(hostname, hostlen, port, in Curl_cache_addr()
511 if(hostlen) in Curl_cache_addr()
512 memcpy(dns->hostname, hostname, hostlen); in Curl_cache_addr()
533 const size_t hostlen = strlen(name); in get_localhost6() local
537 ca = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen + 1); in get_localhost6()
571 const size_t hostlen = strlen(name); in get_localhost() local
[all …]
H A Dhostip.h217 const char *hostname, size_t hostlen, int port,
H A Ddoh.c91 const size_t hostlen = strlen(host); in doh_req_encode() local
118 DEBUGASSERT(hostlen); in doh_req_encode()
119 expected_len = 12 + 1 + hostlen + 4; in doh_req_encode()
120 if(host[hostlen-1]!='.') in doh_req_encode()
908 size_t hostlen = strlen(hostname) + 1; /* include null-terminator */ in doh2ai() local
932 ai = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen); in doh2ai()
939 memcpy(ai->ai_canonname, hostname, hostlen); in doh2ai()
H A Durlapi.c1136 size_t hostlen; in parseurl() local
1185 hostlen = strcspn(hostp, "/?#"); in parseurl()
1186 path = &hostp[hostlen]; in parseurl()
1190 if(hostlen) { in parseurl()
1192 result = parse_authority(u, hostp, hostlen, flags, &host, schemelen); in parseurl()
1556 size_t hostlen = strlen(u->host); in curl_url_get() local
1558 if(Curl_dyn_addf(&enc, "%.*s%%25%s]", (int)hostlen - 1, u->host, in curl_url_get()

Completed in 34 milliseconds