Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 13 of 13) sorted by relevance

/curl/lib/
H A Dhsts.c115 size_t hlen; in hsts_create() local
119 hlen = strlen(hostname); in hsts_create()
120 if(hlen && (hostname[hlen - 1] == '.')) in hsts_create()
122 --hlen; in hsts_create()
123 if(hlen) { in hsts_create()
255 size_t hlen = strlen(hostname); in Curl_hsts() local
259 if((hlen > MAX_HSTS_HOSTLEN) || !hlen) in Curl_hsts()
262 if(hostname[hlen-1] == '.') in Curl_hsts()
264 --hlen; in Curl_hsts()
265 buffer[hlen] = 0; in Curl_hsts()
[all …]
H A Dheaders.c191 char *end = header + hlen - 1; /* point to the last byte */ in namevalue()
192 DEBUGASSERT(hlen); in namevalue()
283 size_t hlen; /* length of the incoming header */ in Curl_headers_push() local
298 hlen = end - header; in Curl_headers_push()
303 return unfold_value(data, header, hlen); in Curl_headers_push()
307 while(hlen && ISBLANK(*header)) { in Curl_headers_push()
309 hlen--; in Curl_headers_push()
311 if(!hlen) in Curl_headers_push()
316 hs = calloc(1, sizeof(*hs) + hlen); in Curl_headers_push()
319 memcpy(hs->buffer, header, hlen); in Curl_headers_push()
[all …]
H A Daltsvc.c101 size_t hlen; in altsvc_createid() local
105 hlen = strlen(srchost); in altsvc_createid()
107 DEBUGASSERT(hlen); in altsvc_createid()
109 if(!hlen || !dlen) { in altsvc_createid()
117 hlen -= 2; in altsvc_createid()
119 else if(srchost[hlen - 1] == '.') in altsvc_createid()
121 hlen--; in altsvc_createid()
427 size_t hlen = strlen(host); in hostcompare() local
430 if(hlen && (host[hlen - 1] == '.')) in hostcompare()
431 hlen--; in hostcompare()
[all …]
H A Dhostip.c1133 size_t hlen = 0; in Curl_loadhostpairs() local
1137 hlen = host_end - &hostp->data[1]; in Curl_loadhostpairs()
1139 if(!hlen || (num > 0xffff)) in Curl_loadhostpairs()
1148 entry_len = create_hostcache_id(&hostp->data[1], hlen, (int)num, in Curl_loadhostpairs()
1176 size_t hlen = 0; in Curl_loadhostpairs() local
1185 hlen = host_end - host_begin; in Curl_loadhostpairs()
1261 entry_len = create_hostcache_id(host_begin, hlen, port, in Curl_loadhostpairs()
1272 (int)hlen, host_begin, port); in Curl_loadhostpairs()
1288 dns = Curl_cache_addr(data, head, host_begin, hlen, port); in Curl_loadhostpairs()
1306 (int)hlen, host_begin, port, addresses, in Curl_loadhostpairs()
[all …]
H A Durlapi.c583 hlen -= 2; in ipv6_parse()
588 if(hlen != len) { in ipv6_parse()
589 hlen = len; in ipv6_parse()
618 hostname[hlen] = 0; /* end the address there */ in ipv6_parse()
624 (strlen(norm) < hlen)) { in ipv6_parse()
626 hlen = strlen(norm); in ipv6_parse()
627 hostname[hlen + 1] = 0; in ipv6_parse()
629 hostname[hlen] = ']'; /* restore ending bracket */ in ipv6_parse()
640 if(!hlen) in hostname_check()
643 return ipv6_parse(u, hostname, hlen); in hostname_check()
[all …]
H A Dcontent_encoding.c492 ssize_t hlen; in gzip_do_write() local
494 switch(check_gzip_header((unsigned char *) buf, nbytes, &hlen)) { in gzip_do_write()
496 z->next_in = (Bytef *) buf + hlen; in gzip_do_write()
497 z->avail_in = (uInt) (nbytes - hlen); in gzip_do_write()
530 ssize_t hlen; in gzip_do_write() local
539 switch(check_gzip_header(z->next_in, z->avail_in, &hlen)) { in gzip_do_write()
544 z->next_in = (Bytef *) buf + hlen + nbytes - z->avail_in; in gzip_do_write()
545 z->avail_in = (uInt) (z->avail_in - hlen); in gzip_do_write()
H A Dws.c545 size_t hlen; in ws_enc_write_head() local
602 hlen = 10; in ws_enc_write_head()
608 hlen = 4; in ws_enc_write_head()
612 hlen = 2; in ws_enc_write_head()
619 memcpy(&head[hlen], &enc->mask, 4); in ws_enc_write_head()
620 hlen += 4; in ws_enc_write_head()
624 n = Curl_bufq_write(out, head, hlen, err); in ws_enc_write_head()
627 if((size_t)n != hlen) { in ws_enc_write_head()
H A Dhttp.h66 const size_t hlen, /* len of the keyword in bytes */
H A Ddoh.c200 size_t hlen = LOCAL_PB_HEXMAX; in local_print_buf() local
205 Curl_hexencode(buf, len, hexstr, hlen); in local_print_buf()
H A Dhttp.c1091 const size_t hlen, /* len of the keyword in bytes */ in Curl_compareheader() argument
1103 DEBUGASSERT(hlen); in Curl_compareheader()
1108 if(!strncasecompare(headerline, header, hlen)) in Curl_compareheader()
1112 start = &headerline[hlen]; in Curl_compareheader()
H A Durl.c1838 size_t hlen; local
1842 hlen = strlen(hostname);
1843 hostname[hlen - 1] = 0;
/curl/src/
H A Dtool_urlglob.c348 size_t hlen; in peek_ipv6() local
353 hlen = endbr - str + 1; in peek_ipv6()
354 if(hlen >= MAX_IP6LEN) in peek_ipv6()
361 memcpy(hostname, str, hlen); in peek_ipv6()
362 hostname[hlen] = 0; in peek_ipv6()
369 *skip = hlen; in peek_ipv6()
/curl/lib/vssh/
H A Dlibssh.c337 size_t hlen; in myssh_is_known() local
367 &hash, &hlen); in myssh_is_known()
368 if(rc != SSH_OK || hlen != 16) { in myssh_is_known()

Completed in 88 milliseconds