/curl/lib/ |
H A D | http_chunks.c | 87 ch->last_code = CHUNKE_OK; in Curl_httpchunk_init() 98 ch->last_code = CHUNKE_OK; in Curl_httpchunk_reset() 106 Curl_dyn_free(&ch->trailer); in Curl_httpchunk_free() 126 if(ch->state == CHUNK_DONE) in httpchunk_readwrite() 146 switch(ch->state) { in httpchunk_readwrite() 155 ch->hexbuffer[ch->hexindex++] = *buf; in httpchunk_readwrite() 171 ch->hexbuffer[ch->hexindex] = 0; in httpchunk_readwrite() 172 if(curlx_strtoofft(ch->hexbuffer, NULL, 16, &ch->datasize)) { in httpchunk_readwrite() 232 if(0 == ch->datasize) in httpchunk_readwrite() 240 Curl_httpchunk_reset(data, ch, ch->ignore_body); in httpchunk_readwrite() [all …]
|
H A D | inet_pton.c | 103 int saw_digit, octets, ch; in inet_pton4() local 110 while((ch = *src++) != '\0') { in inet_pton4() 113 pch = strchr(digits, ch); in inet_pton4() 129 else if(ch == '.' && saw_digit) { in inet_pton4() 164 int ch, saw_xdigit; in inet_pton6() local 177 while((ch = *src++) != '\0') { in inet_pton6() 181 pch = strchr((xdigits = xdigits_l), ch); in inet_pton6() 183 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6() 191 if(ch == ':') { in inet_pton6() 207 if(ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
|
H A D | http_chunks.h | 104 void Curl_httpchunk_init(struct Curl_easy *data, struct Curl_chunker *ch, 106 void Curl_httpchunk_free(struct Curl_easy *data, struct Curl_chunker *ch); 107 void Curl_httpchunk_reset(struct Curl_easy *data, struct Curl_chunker *ch, 126 CURLcode Curl_httpchunk_read(struct Curl_easy *data, struct Curl_chunker *ch, 132 bool Curl_httpchunk_is_done(struct Curl_easy *data, struct Curl_chunker *ch);
|
H A D | dict.c | 113 char ch = *ptr; in unescape_word() local 114 if((ch <= 32) || (ch == 127) || in unescape_word() 115 (ch == '\'') || (ch == '\"') || (ch == '\\')) in unescape_word()
|
H A D | Makefile.am | 149 -W$(srcdir)/curl_config.h $(srcdir)/*.[ch] $(srcdir)/vauth/*.[ch] \ 150 $(srcdir)/vtls/*.[ch] $(srcdir)/vquic/*.[ch] $(srcdir)/vssh/*.[ch])
|
H A D | idn.c | 234 const unsigned char *ch = (const unsigned char *)hostname; in Curl_is_ASCII_name() local 239 while(*ch) { in Curl_is_ASCII_name() 240 if(*ch++ & 0x80) in Curl_is_ASCII_name()
|
H A D | cf-h1-proxy.c | 72 struct Curl_chunker ch; member 130 Curl_httpchunk_init(data, &ts->ch, TRUE); in tunnel_init() 203 Curl_httpchunk_free(data, &ts->ch); in tunnel_free() 345 Curl_httpchunk_reset(data, &ts->ch, TRUE); in on_resp_header() 438 result = Curl_httpchunk_read(data, &ts->ch, &byte, 1, &consumed); in recv_CONNECT_resp() 441 if(Curl_httpchunk_is_done(data, &ts->ch)) { in recv_CONNECT_resp()
|
/curl/docs/examples/ |
H A D | cacertinmem.c | 125 CURL *ch; in main() local 129 ch = curl_easy_init(); in main() 130 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main() 131 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main() 132 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main() 133 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main() 146 curl_easy_setopt(ch, CURLOPT_CAINFO, NULL); in main() 147 curl_easy_setopt(ch, CURLOPT_CAPATH, NULL); in main() 152 rv = curl_easy_perform(ch); in main() 173 rv = curl_easy_perform(ch); in main() [all …]
|
H A D | usercertinmem.c | 179 CURL *ch; in main() local 183 ch = curl_easy_init(); in main() 184 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main() 185 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main() 186 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main() 187 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main() 189 curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main() 200 curl_easy_setopt(ch, CURLOPT_SSLKEYTYPE, "PEM"); in main() 203 rv = curl_easy_perform(ch); in main() 216 rv = curl_easy_perform(ch); in main() [all …]
|
H A D | ghiper.c | 93 GIOChannel *ch; member 180 static gboolean event_cb(GIOChannel *ch, GIOCondition condition, gpointer data) in event_cb() argument 184 int fd = g_io_channel_unix_get_fd(ch); in event_cb() 232 f->ev = g_io_add_watch(f->ch, kind, event_cb, g); in setsock() 241 fdp->ch = g_io_channel_unix_new(s); in addsock() 331 static gboolean fifo_cb(GIOChannel *ch, GIOCondition condition, gpointer data) in fifo_cb() argument 340 rv = g_io_channel_read_line(ch, &buf, &len, &tp, &err); in fifo_cb() 352 g_io_channel_read_chars(ch, buf, BUF_SIZE, &len, &err); in fifo_cb() 419 GIOChannel* ch; in main() local 423 ch = g_io_channel_unix_new(fd); in main() [all …]
|
/curl/tests/libtest/ |
H A D | lib1903.c | 34 CURL *ch = NULL; in test() local 37 easy_init(ch); in test() 39 easy_setopt(ch, CURLOPT_URL, URL); in test() 40 easy_setopt(ch, CURLOPT_COOKIEFILE, libtest_arg2); in test() 41 res = curl_easy_perform(ch); in test() 45 curl_easy_reset(ch); in test() 47 easy_setopt(ch, CURLOPT_URL, URL); in test() 48 easy_setopt(ch, CURLOPT_COOKIEFILE, libtest_arg2); in test() 49 easy_setopt(ch, CURLOPT_COOKIEJAR, libtest_arg3); in test() 50 res = curl_easy_perform(ch); in test() [all …]
|
H A D | lib1905.c | 34 CURL *ch = NULL; in test() local 52 ch = curl_easy_init(); in test() 53 if(!ch) in test() 56 curl_easy_setopt(ch, CURLOPT_SHARE, sh); in test() 57 curl_easy_setopt(ch, CURLOPT_URL, URL); in test() 59 curl_easy_setopt(ch, CURLOPT_COOKIEJAR, libtest_arg2); in test() 61 curl_multi_add_handle(cm, ch); in test() 89 curl_easy_setopt(ch, CURLOPT_COOKIELIST, "FLUSH"); in test() 90 curl_easy_setopt(ch, CURLOPT_SHARE, NULL); in test() 92 curl_multi_remove_handle(cm, ch); in test() [all …]
|
H A D | Makefile.am | 121 $(CHECKSRC)@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(srcdir)/*.[ch]
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_SSL_CTX_DATA.md | 85 CURL *ch; 99 ch = curl_easy_init(); 101 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); 102 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L); 103 curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/"); 105 curl_easy_setopt(ch, CURLOPT_SSL_CTX_FUNCTION, *sslctx_function); 106 curl_easy_setopt(ch, CURLOPT_SSL_CTX_DATA, mypem); 107 rv = curl_easy_perform(ch); 113 curl_easy_cleanup(ch);
|
H A D | CURLOPT_SSL_CTX_FUNCTION.md | 136 CURL *ch; 150 ch = curl_easy_init(); 152 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); 153 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L); 154 curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/"); 156 curl_easy_setopt(ch, CURLOPT_SSL_CTX_FUNCTION, *sslctx_function); 157 curl_easy_setopt(ch, CURLOPT_SSL_CTX_DATA, mypem); 158 rv = curl_easy_perform(ch); 164 curl_easy_cleanup(ch);
|
/curl/tests/server/ |
H A D | Makefile.am | 61 $(CHECKSRC)@PERL@ $(top_srcdir)/scripts/checksrc.pl $(srcdir)/*.[ch]
|
/curl/ |
H A D | .gitattributes | 11 *.[ch] whitespace=tab-in-indent
|
/curl/tests/http/clients/ |
H A D | upload-pausing.c | 211 int ch; in main() local 213 while((ch = getopt(argc, argv, "V:")) != -1) { in main() 214 switch(ch) { in main()
|
H A D | h2-pausing.c | 217 int ch; in main() local 219 while((ch = getopt(argc, argv, "hV:")) != -1) { in main() 220 switch(ch) { in main()
|
H A D | hx-download.c | 305 int ch; in main() local 309 while((ch = getopt(argc, argv, "aefhm:n:A:F:P:r:V:")) != -1) { in main() 310 switch(ch) { in main()
|
H A D | hx-upload.c | 349 int ch; in main() local 351 while((ch = getopt(argc, argv, "aefhlm:n:A:F:M:P:r:RS:V:")) != -1) { in main() 352 switch(ch) { in main()
|
/curl/packages/ |
H A D | Makefile.am | 52 $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(srcdir)/OS400/*.[ch])
|
/curl/tests/unit/ |
H A D | Makefile.am | 78 $(CHECKSRC)@PERL@ $(top_srcdir)/scripts/checksrc.pl $(srcdir)/*.[ch]
|
/curl/src/ |
H A D | Makefile.am | 185 $(srcdir)/*.[ch])
|
/curl/.github/workflows/ |
H A D | checksrc.yml | 42 run: git ls-files -z "*.[ch]" | xargs -0 -n1 ./scripts/checksrc.pl
|