Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 24 of 24) sorted by relevance

/curl/lib/
H A Ddynhds.c40 entry_new(const char *name, size_t namelen, in entry_new() argument
52 memcpy(p, name, namelen); in entry_new()
53 e->namelen = namelen; in entry_new()
75 memcpy(p, e->name, e->namelen); in entry_append()
76 e2->namelen = e->namelen; in entry_append()
152 if(dynhds->hds[i]->namelen == namelen && in Curl_dynhds_get()
222 size_t namelen; in Curl_dynhds_h1_add_line() local
254 namelen = p - line; in Curl_dynhds_h1_add_line()
299 if((namelen == dynhds->hds[i]->namelen) && in Curl_dynhds_count_name()
327 if((namelen == dynhds->hds[i]->namelen) && in Curl_dynhds_remove()
[all …]
H A Dcurl_gethostname.c44 int Curl_gethostname(char * const name, GETHOSTNAME_TYPE_ARG2 namelen) in Curl_gethostname() argument
50 (void) namelen; in Curl_gethostname()
62 if(strlen(force_hostname) < (size_t)namelen) in Curl_gethostname()
70 err = gethostname(name, namelen); in Curl_gethostname()
76 err = gethostname(name, namelen); in Curl_gethostname()
80 name[namelen - 1] = '\0'; in Curl_gethostname()
H A Dnoproxy.c140 size_t namelen; in Curl_check_noproxy() local
154 namelen = endptr - name; in Curl_check_noproxy()
155 if(namelen >= sizeof(hostip)) in Curl_check_noproxy()
157 memcpy(hostip, name, namelen); in Curl_check_noproxy()
158 hostip[namelen] = 0; in Curl_check_noproxy()
164 namelen = strlen(name); in Curl_check_noproxy()
169 if(name[namelen - 1] == '.') in Curl_check_noproxy()
170 namelen--; in Curl_check_noproxy()
206 if(tokenlen == namelen) in Curl_check_noproxy()
208 match = strncasecompare(token, name, namelen); in Curl_check_noproxy()
[all …]
H A Ddynhds.h40 size_t namelen; member
95 const char *name, size_t namelen);
105 const char *name, size_t namelen);
113 const char *name, size_t namelen);
126 const char *name, size_t namelen);
136 const char *name, size_t namelen,
148 const char *name, size_t namelen,
H A Dcurl_addrinfo.c128 size_t namelen = ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0; in Curl_getaddrinfo_ex() local
148 ca = malloc(sizeof(struct Curl_addrinfo) + ss_size + namelen); in Curl_getaddrinfo_ex()
169 if(namelen) { in Curl_getaddrinfo_ex()
171 memcpy(ca->ai_canonname, ai->ai_canonname, namelen); in Curl_getaddrinfo_ex()
278 size_t namelen = strlen(he->h_name) + 1; /* include null-terminator */ in Curl_he2ai() local
287 ai = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + namelen); in Curl_he2ai()
296 memcpy(ai->ai_canonname, he->h_name, namelen); in Curl_he2ai()
370 size_t namelen; in Curl_ip2addr() local
378 namelen = strlen(hostname) + 1; in Curl_ip2addr()
390 ai = calloc(1, sizeof(struct Curl_addrinfo) + addrsize + namelen); in Curl_ip2addr()
[all …]
H A Dcurl_gethostname.h31 int Curl_gethostname(char * const name, GETHOSTNAME_TYPE_ARG2 namelen);
H A Dcontent_encoding.c980 size_t namelen; in Curl_build_unencoding_stack() local
989 for(namelen = 0; *enclist && *enclist != ','; enclist++) in Curl_build_unencoding_stack()
991 namelen = enclist - name + 1; in Curl_build_unencoding_stack()
993 if(namelen) { in Curl_build_unencoding_stack()
998 is_transfer ? "transfer" : "content", (int)namelen, name); in Curl_build_unencoding_stack()
999 is_chunked = (is_transfer && (namelen == 7) && in Curl_build_unencoding_stack()
1007 (int)namelen, name); in Curl_build_unencoding_stack()
1017 cwt = find_unencode_writer(name, namelen, phase); in Curl_build_unencoding_stack()
H A Dhttp.c1294 size_t namelen, valuelen; in Curl_dynhds_add_custom() local
1303 namelen = ptr - headers->data; in Curl_dynhds_add_custom()
1326 namelen = ptr - headers->data; in Curl_dynhds_add_custom()
1346 hd_name_eq(name, namelen, STRCONST("Host:"))) in Curl_dynhds_add_custom()
1364 hd_name_eq(name, namelen, STRCONST("Connection:"))) in Curl_dynhds_add_custom()
4272 size_t namelen; member
4284 static bool h2_non_field(const char *name, size_t namelen) in h2_non_field() argument
4288 if(namelen < H2_NON_FIELD[i].namelen) in h2_non_field()
4290 if(namelen == H2_NON_FIELD[i].namelen && in h2_non_field()
4352 if(!h2_non_field(e->name, e->namelen)) { in Curl_http_req_to_h2()
[all …]
H A Dcf-h2-proxy.c315 const uint8_t *name, size_t namelen,
742 const uint8_t *name, size_t namelen, in proxy_h2_on_header() argument
760 (int)namelen, name, (int)valuelen, value); in proxy_h2_on_header()
772 if(namelen == sizeof(HTTP_PSEUDO_STATUS) - 1 && in proxy_h2_on_header()
773 memcmp(HTTP_PSEUDO_STATUS, name, namelen) == 0) { in proxy_h2_on_header()
797 (const char *)name, namelen, in proxy_h2_on_header()
803 stream_id, (int)namelen, name, (int)valuelen, value); in proxy_h2_on_header()
H A Dhttp2.c499 const uint8_t *name, size_t namelen,
1500 const uint8_t *name, size_t namelen, in on_header() argument
1593 stream->id, (int)namelen, name, (int)valuelen, value); in on_header()
1595 (const char *)name, namelen, in on_header()
1603 if(namelen == sizeof(HTTP_PSEUDO_STATUS) - 1 && in on_header()
1604 memcmp(HTTP_PSEUDO_STATUS, name, namelen) == 0) { in on_header()
1640 result = Curl_dyn_addn(&ctx->scratch, (const char *)name, namelen); in on_header()
1657 stream->id, (int)namelen, name, (int)valuelen, value); in on_header()
1822 (int)e->namelen, e->name, in http2_handle_stream_close()
2239 acc += nva[i].namelen + nva[i].valuelen; in h2_submit()
[all …]
H A Dhsts.c314 e.namelen = strlen(sts->host); in hsts_push()
475 e.namelen = sizeof(buffer)-1; in hsts_pull()
H A Dasyn-ares.c762 size_t namelen = strlen(hostname); in Curl_resolver_getaddrinfo() local
765 res = calloc(1, sizeof(struct thread_data) + namelen); in Curl_resolver_getaddrinfo()
/curl/tests/unit/
H A Dunit1305.c77 size_t namelen = sizeof(dummy); /* including the null-terminator */ in fake_ai() local
80 namelen); in fake_ai()
87 memcpy(ai->ai_canonname, dummy, namelen); in fake_ai()
/curl/src/
H A Dtool_cb_hdr.c299 size_t namelen = value - ptr; in tool_header_cb() local
300 fprintf(outs->stream, BOLD "%.*s" BOLDOFF ":", (int)namelen, ptr); in tool_header_cb()
302 fwrite(&value[1], cb - namelen - 1, 1, outs->stream); in tool_header_cb()
304 if(curl_strnequal("Location", ptr, namelen)) { in tool_header_cb()
305 write_linked_location(per->curl, &value[1], cb - namelen - 1, in tool_header_cb()
309 fwrite(&value[1], cb - namelen - 1, 1, outs->stream); in tool_header_cb()
/curl/docs/libcurl/opts/
H A DCURLOPT_HSTSREADFUNCTION.md28 size_t namelen;
49 struct: Copy the hostname to *name* (no longer than *namelen*
H A DCURLOPT_HSTSWRITEFUNCTION.md28 size_t namelen;
55 struct: Read the hostname to 'name' (it is *namelen* bytes long and null
/curl/docs/examples/
H A Dhsts-preload.c59 if(host && (strlen(host) < e->namelen)) { in hstsread()
/curl/tests/libtest/
H A Dlib1915.c65 if(host && (strlen(host) < e->namelen)) { in hstsread()
/curl/lib/vquic/
H A Dcurl_ngtcp2.c1444 nva[i].namelen = e->namelen; in h3_stream_open()
1507 (int)nva[i].namelen, nva[i].name, in h3_stream_open()
H A Dcurl_osslq.c1843 nva[i].namelen = e->namelen; in h3_stream_open()
1906 (int)nva[i].namelen, nva[i].name, in h3_stream_open()
H A Dcurl_msh3.c666 nva[i].NameLength = e->namelen; in cf_msh3_send()
H A Dcurl_quiche.c1025 nva[i].name_len = e->namelen; in h3_open_stream()
/curl/include/curl/
H A Dcurl.h1021 size_t namelen; member
/curl/packages/OS400/
H A Dcurl.inc.in2482 d namelen 10u 0 size_t

Completed in 80 milliseconds