Home
last modified time | relevance | path

Searched refs:clen (Results 1 – 20 of 20) sorted by relevance

/curl/lib/vauth/
H A Dcleartext.c70 size_t clen; in Curl_auth_create_plain_message() local
74 clen = strlen(authcid); in Curl_auth_create_plain_message()
78 if((zlen > SIZE_T_MAX/4) || (clen > SIZE_T_MAX/4) || in Curl_auth_create_plain_message()
81 plainlen = zlen + clen + plen + 2; in Curl_auth_create_plain_message()
91 memcpy(plainauth + zlen + 1, authcid, clen); in Curl_auth_create_plain_message()
92 plainauth[zlen + clen + 1] = '\0'; in Curl_auth_create_plain_message()
93 memcpy(plainauth + zlen + clen + 2, passwd, plen); in Curl_auth_create_plain_message()
/curl/src/
H A Dvar.c116 size_t len = clen; in varfunc()
118 if(clen) { in varfunc()
137 if(clen) { in varfunc()
147 if(clen) { in varfunc()
165 if(clen) { in varfunc()
192 clen = curlx_dyn_len(out); in varfunc()
291 vlen = v->clen; in varexpand()
366 p->clen = clen; in addvariable()
383 size_t clen = 0; in setvariable() local
421 clen = strlen(ge); in setvariable()
[all …]
H A Dvar.h33 size_t clen; /* content length */ member
/curl/tests/libtest/
H A Dlib1485.c49 curl_off_t clen; in header_callback() local
63 &clen); in header_callback()
65 (long)clen, result); in header_callback()
70 if(clen < 0) { in header_callback()
72 "got: %ld\n", (long)clen); in header_callback()
/curl/lib/
H A Dformdata.c623 size_t clen = (size_t) form->contentslength; in FormAdd() local
624 if(!clen) in FormAdd()
625 clen = strlen(form->value) + 1; in FormAdd()
627 form->value = Curl_memdup(form->value, clen); in FormAdd()
879 curl_off_t clen = post->contentslength; in Curl_getformdata() local
882 clen = post->contentlen; in Curl_getformdata()
907 if(!clen) in Curl_getformdata()
908 clen = -1; in Curl_getformdata()
909 result = curl_mime_data_cb(part, clen, in Curl_getformdata()
914 if(!clen) in Curl_getformdata()
[all …]
H A Drand.c170 size_t clen = sizeof(seed); in randit() local
171 size_t min = elen < clen ? elen : clen; in randit()
H A Durlapi.c881 UNITTEST int dedotdotify(const char *input, size_t clen, char **outp);
882 UNITTEST int dedotdotify(const char *input, size_t clen, char **outp) in dedotdotify() argument
885 const char *endp = &input[clen]; in dedotdotify()
890 if((clen < 2) || !memchr(input, '.', clen)) in dedotdotify()
893 out = malloc(clen + 1); in dedotdotify()
908 clen -= 2; in dedotdotify()
912 clen -= 3; in dedotdotify()
931 clen -= 2; in dedotdotify()
946 clen -= 3; in dedotdotify()
980 clen--; in dedotdotify()
H A Ddoh.c1050 unsigned char clen = 0; /* chunk len */ in doh_decode_rdata_name() local
1063 clen = *cp++; in doh_decode_rdata_name()
1064 if(clen == 0) { in doh_decode_rdata_name()
1069 while(clen) { in doh_decode_rdata_name()
1070 if(clen >= rem) { in doh_decode_rdata_name()
1074 if(Curl_dyn_addn(&thename, cp, clen) || in doh_decode_rdata_name()
1078 cp += clen; in doh_decode_rdata_name()
1079 rem -= (clen + 1); in doh_decode_rdata_name()
1084 clen = *cp++; in doh_decode_rdata_name()
H A Dbufq.c552 size_t clen; in Curl_bufq_peek_at() local
555 clen = chunk_len(c); in Curl_bufq_peek_at()
556 if(!clen) in Curl_bufq_peek_at()
558 if(offset >= clen) { in Curl_bufq_peek_at()
559 offset -= clen; in Curl_bufq_peek_at()
H A Dhttp.h68 const size_t clen); /* len of the content in bytes */
H A Dmqtt.c263 const size_t clen = strlen("curl"); in mqtt_connect() local
300 result = Curl_rand_alnum(data, (unsigned char *)&client_id[clen], in mqtt_connect()
301 MQTT_CLIENTID_LEN - clen + 1); in mqtt_connect()
H A Daltsvc.c428 size_t clen = strlen(check); in hostcompare() local
432 if(hlen != clen) in hostcompare()
H A Dcookie.c951 size_t clen = strlen(co->domain); in is_public_suffix() local
952 if((dlen < sizeof(lcase)) && (clen < sizeof(lcookie))) { in is_public_suffix()
957 Curl_strntolower(lcookie, co->domain, clen + 1); in is_public_suffix()
H A Dsendf.c1099 curl_off_t clen; in do_init_reader_stack() local
1107 clen = r->crt->total_length(data, r); in do_init_reader_stack()
1110 if(clen && (data->set.crlf in do_init_reader_stack()
H A Dhttp.c1081 const size_t clen) /* len of the content in bytes */ in Curl_compareheader() argument
1092 DEBUGASSERT(clen); in Curl_compareheader()
1120 for(; len >= clen; len--, start++) { in Curl_compareheader()
1121 if(strncasecompare(start, content, clen)) in Curl_compareheader()
2270 size_t clen = 8; /* hold the size of the generated Cookie: header */ in Curl_http_cookies() local
2283 if(clen + add >= MAX_COOKIE_HEADER_LEN) { in Curl_http_cookies()
2293 clen += add + (count ? 2 : 0); in Curl_http_cookies()
/curl/.github/scripts/
H A Dcodespell-ignore.txt4 clen
/curl/tests/unit/
H A Dunit1395.c27 extern int dedotdotify(const char *input, size_t clen, char **out);
/curl/lib/vtls/
H A Dx509asn1.c1081 size_t clen; in Curl_extract_certinfo() local
1215 &certptr, &clen); in Curl_extract_certinfo()
1235 while(!result && (j < clen)) { in Curl_extract_certinfo()
1236 size_t chunksize = (clen - j) > 64 ? 64 : (clen - j); in Curl_extract_certinfo()
/curl/tests/server/
H A Drtspd.c474 unsigned long clen = 0; in ProcessRequest() local
479 clen = strtoul(ptr, &endptr, 10); in ProcessRequest()
486 req->cl = clen - req->skip; in ProcessRequest()
488 logmsg("Found Content-Length: %lu in the request", clen); in ProcessRequest()
H A Dsws.c629 unsigned long clen = 0; in ProcessRequest() local
634 clen = strtoul(ptr, &endptr, 10); in ProcessRequest()
644 req->cl = clen - req->skip; in ProcessRequest()
646 logmsg("Found Content-Length: %lu in the request", clen); in ProcessRequest()

Completed in 51 milliseconds