/curl/lib/ |
H A D | hsts.c | 115 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() 260 size_t hlen = strlen(hostname); in Curl_hsts() local 265 if((hlen > MAX_HSTS_HOSTLEN) || !hlen) in Curl_hsts() 267 if(hostname[hlen-1] == '.') in Curl_hsts() 269 --hlen; in Curl_hsts() 283 size_t offs = hlen - ntail; in Curl_hsts() [all …]
|
H A D | headers.c | 191 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 D | altsvc.c | 104 size_t hlen; in altsvc_createid() local 107 hlen = strlen(srchost); in altsvc_createid() 108 DEBUGASSERT(hlen); in altsvc_createid() 110 if(!hlen || !dlen) { in altsvc_createid() 118 hlen -= 2; in altsvc_createid() 120 else if(srchost[hlen - 1] == '.') in altsvc_createid() 122 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 D | hostip.c | 1141 size_t hlen = 0; in Curl_loadhostpairs() local 1145 hlen = host_end - &hostp->data[1]; in Curl_loadhostpairs() 1147 if(!hlen || (num > 0xffff)) in Curl_loadhostpairs() 1156 entry_len = create_hostcache_id(&hostp->data[1], hlen, (int)num, in Curl_loadhostpairs() 1184 size_t hlen = 0; in Curl_loadhostpairs() local 1193 hlen = host_end - host_begin; in Curl_loadhostpairs() 1269 entry_len = create_hostcache_id(host_begin, hlen, port, in Curl_loadhostpairs() 1280 (int)hlen, host_begin, port); in Curl_loadhostpairs() 1296 dns = Curl_cache_addr(data, head, host_begin, hlen, port, permanent); in Curl_loadhostpairs() 1312 (int)hlen, host_begin, port, addresses, in Curl_loadhostpairs() [all …]
|
H A D | urlapi.c | 582 hlen -= 2; in ipv6_parse() 587 if(hlen != len) { in ipv6_parse() 588 hlen = len; in ipv6_parse() 616 hostname[hlen] = 0; /* end the address there */ in ipv6_parse() 619 if(Curl_inet_ntop(AF_INET6, dest, hostname, hlen)) { in ipv6_parse() 620 hlen = strlen(hostname); /* might be shorter now */ in ipv6_parse() 621 hostname[hlen + 1] = 0; in ipv6_parse() 623 hostname[hlen] = ']'; /* restore ending bracket */ in ipv6_parse() 634 if(!hlen) in hostname_check() 637 return ipv6_parse(u, hostname, hlen); in hostname_check() [all …]
|
H A D | content_encoding.c | 492 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, (ssize_t)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 = z->avail_in - (uInt)hlen; in gzip_do_write()
|
H A D | ws.c | 548 size_t hlen; in ws_enc_write_head() local 605 hlen = 10; in ws_enc_write_head() 611 hlen = 4; in ws_enc_write_head() 615 hlen = 2; in ws_enc_write_head() 622 memcpy(&head[hlen], &enc->mask, 4); in ws_enc_write_head() 623 hlen += 4; in ws_enc_write_head() 627 n = Curl_bufq_write(out, head, hlen, err); in ws_enc_write_head() 630 if((size_t)n != hlen) { in ws_enc_write_head()
|
H A D | http.h | 66 const size_t hlen, /* len of the keyword in bytes */
|
H A D | doh.c | 200 size_t hlen = LOCAL_PB_HEXMAX; in doh_print_buf() local 205 Curl_hexencode(buf, len, hexstr, hlen); in doh_print_buf()
|
H A D | http.c | 1079 const size_t hlen, /* len of the keyword in bytes */ in Curl_compareheader() argument 1091 DEBUGASSERT(hlen); in Curl_compareheader() 1096 if(!strncasecompare(headerline, header, hlen)) in Curl_compareheader() 1100 start = &headerline[hlen]; in Curl_compareheader()
|
H A D | url.c | 1803 size_t hlen; local 1807 hlen = strlen(hostname); 1808 hostname[hlen - 1] = 0;
|
/curl/src/ |
H A D | tool_urlglob.c | 346 size_t hlen; in peek_ipv6() local 351 hlen = endbr - str + 1; in peek_ipv6() 352 if(hlen >= MAX_IP6LEN) in peek_ipv6() 359 memcpy(hostname, str, hlen); in peek_ipv6() 360 hostname[hlen] = 0; in peek_ipv6() 367 *skip = hlen; in peek_ipv6()
|
/curl/lib/vssh/ |
H A D | libssh.c | 333 size_t hlen; in myssh_is_known() local 363 &hash, &hlen); in myssh_is_known() 364 if(rc != SSH_OK || hlen != 16) { in myssh_is_known()
|