Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 15 of 15) sorted by relevance

/curl/lib/vtls/
H A Dkeylog.c129 size_t pos, i; in Curl_tls_keylog_write() local
137 pos = strlen(label); in Curl_tls_keylog_write()
143 memcpy(line, label, pos); in Curl_tls_keylog_write()
144 line[pos++] = ' '; in Curl_tls_keylog_write()
148 line[pos++] = hex[client_random[i] >> 4]; in Curl_tls_keylog_write()
149 line[pos++] = hex[client_random[i] & 0xF]; in Curl_tls_keylog_write()
151 line[pos++] = ' '; in Curl_tls_keylog_write()
155 line[pos++] = hex[secret[i] >> 4]; in Curl_tls_keylog_write()
156 line[pos++] = hex[secret[i] & 0xF]; in Curl_tls_keylog_write()
158 line[pos++] = '\n'; in Curl_tls_keylog_write()
[all …]
/curl/tests/libtest/
H A Dlib677.c41 ssize_t pos = 0; in test() local
85 ec = curl_easy_send(curl, testcmd + pos, in test()
86 sizeof(testcmd) - 1 - pos, &len); in test()
97 pos += len; in test()
99 pos = 0; in test()
100 if(pos == sizeof(testcmd) - 1) { in test()
102 pos = 0; in test()
105 else if(pos < (ssize_t)sizeof(testbuf)) { in test()
107 ec = curl_easy_recv(curl, testbuf + pos, sizeof(testbuf) - pos, &len); in test()
118 pos += len; in test()
[all …]
/curl/lib/
H A Dbase64.c85 unsigned char *pos; in Curl_base64_decode() local
118 pos = newstr; in Curl_base64_decode()
143 pos[2] = x & 0xff; in Curl_base64_decode()
144 pos[1] = (x >> 8) & 0xff; in Curl_base64_decode()
145 pos[0] = (x >> 16) & 0xff; in Curl_base64_decode()
146 pos += 3; in Curl_base64_decode()
170 pos[1] = (x >> 8) & 0xff; in Curl_base64_decode()
171 pos[0] = (x >> 16) & 0xff; in Curl_base64_decode()
172 pos += 3 - padding; in Curl_base64_decode()
176 *pos = '\0'; in Curl_base64_decode()
H A Dcontent_encoding.c773 in.pos = 0; in zstd_do_write()
778 out.pos = 0; in zstd_do_write()
786 if(out.pos > 0) { in zstd_do_write()
788 zp->decomp, out.pos); in zstd_do_write()
792 if((in.pos == nbytes) && (out.pos < out.size)) in zstd_do_write()
H A Dmime.h84 size_t pos; /* Position on output line. */ member
H A Dmqtt.c253 int pos = 0; in mqtt_connect() local
298 pos = init_connpack(packet, remain, remain_pos); in mqtt_connect()
303 rc = add_client_id(client_id, strlen(client_id), packet, pos + 1); in mqtt_connect()
312 start_user = pos + 3 + MQTT_CLIENTID_LEN; in mqtt_connect()
H A Dmime.c377 p->pos = 0; in cleanup_encoder_state()
448 if(st->pos > MAX_ENCODED_LINE_LENGTH - 4) { in encoder_base64_read()
457 st->pos = 0; in encoder_base64_read()
480 st->pos += 4; in encoder_base64_read()
509 st->pos += 4; in encoder_base64_read()
612 softlinebreak = st->pos + len > MAX_ENCODED_LINE_LENGTH; in encoder_qp_read()
613 if(!softlinebreak && st->pos + len == MAX_ENCODED_LINE_LENGTH) { in encoder_qp_read()
643 st->pos += len; in encoder_qp_read()
645 st->pos = 0; in encoder_qp_read()
H A Dcookie.c148 char *pos; in pathmatch() local
161 pos = strchr(uri_path, '?'); in pathmatch()
162 if(pos) in pathmatch()
163 *pos = 0x0; in pathmatch()
H A Dhttp_aws_sigv4.c193 size_t pos = strcspn(data->state.aptr.host, "\n\r"); in make_headers() local
194 fullhost = Curl_memdup0(data->state.aptr.host, pos); in make_headers()
/curl/src/
H A Dtool_cb_prg.c74 int pos; in fly() local
85 pos = sinus[bar->tick%200] / (1000000 / check) + 1; in fly()
86 buf[pos] = '#'; in fly()
87 pos = sinus[(bar->tick + 5)%200] / (1000000 / check) + 1; in fly()
88 buf[pos] = '#'; in fly()
89 pos = sinus[(bar->tick + 10)%200] / (1000000 / check) + 1; in fly()
90 buf[pos] = '#'; in fly()
91 pos = sinus[(bar->tick + 15)%200] / (1000000 / check) + 1; in fly()
92 buf[pos] = '#'; in fly()
H A Dtool_urlglob.c36 glob->error = string, glob->pos = column, code
372 size_t pos, curl_off_t *amount) in glob_parse() argument
401 return GLOBERROR("unmatched close brace/bracket", pos, in glob_parse()
411 ++pos; in glob_parse()
414 ++pos; in glob_parse()
430 pos++; in glob_parse()
431 res = glob_set(glob, &pattern, &pos, amount, globindex++); in glob_parse()
437 pos++; in glob_parse()
444 return GLOBERROR("too many globs", pos, CURLE_URL_MALFORMAT); in glob_parse()
483 if(glob_expand->pos) { in glob_url()
[all …]
H A Dtool_urlglob.h70 size_t pos; /* column position of error or 0 */ member
H A Dtool_formparse.c404 size_t pos = 0; in read_field_headers() local
411 if(c == EOF || (!pos && !ISSPACE(c))) { in read_field_headers()
436 pos = 0; in read_field_headers()
441 if(!pos) in read_field_headers()
446 pos++; in read_field_headers()
/curl/tests/server/
H A Dsockfilt.c457 LARGE_INTEGER size, pos; in select_ws_wait_thread() local
494 pos.QuadPart = 0; in select_ws_wait_thread()
495 pos.LowPart = SetFilePointer(handle, 0, &pos.HighPart, FILE_CURRENT); in select_ws_wait_thread()
496 if((pos.LowPart != INVALID_SET_FILE_POINTER) || in select_ws_wait_thread()
499 if(size.QuadPart == pos.QuadPart) { in select_ws_wait_thread()
/curl/scripts/
H A Dchecksrc.pl596 my $pos = length($1);
601 $line, $pos+1, $file, $l,

Completed in 79 milliseconds