/curl/lib/ |
H A D | tftp.c | 244 (int)state->state, timeout_ms, state->retry_time, state->retry_max); in tftp_set_timeouts() 403 state->state = TFTP_STATE_TX; in tftp_connect_for_tx() 419 state->state = TFTP_STATE_RX; in tftp_connect_for_rx() 554 state->state = TFTP_STATE_FIN; in tftp_send_first() 624 state->state = TFTP_STATE_RX; in tftp_rx() 645 state->state = TFTP_STATE_RX; in tftp_rx() 681 state->state = TFTP_STATE_FIN; in tftp_rx() 762 if(state->block > 1 && state->sbytes < state->blksize) { in tftp_tx() 823 state->state = TFTP_STATE_FIN; in tftp_tx() 831 state->state = TFTP_STATE_FIN; in tftp_tx() [all …]
|
H A D | http_negotiate.c | 54 curlnegotiate state; in Curl_input_negotiate() local 94 if(state == GSS_AUTHSUCC) { in Curl_input_negotiate() 142 curlnegotiate *state; in Curl_output_negotiate() local 151 authp = &data->state.authproxy; in Curl_output_negotiate() 159 authp = &data->state.authhost; in Curl_output_negotiate() 165 if(*state == GSS_AUTHRECV) { in Curl_output_negotiate() 177 (*state != GSS_AUTHDONE && *state != GSS_AUTHSUCC)) { in Curl_output_negotiate() 220 *state = GSS_AUTHSENT; in Curl_output_negotiate() 224 *state = GSS_AUTHDONE; in Curl_output_negotiate() 230 *state = GSS_AUTHDONE; in Curl_output_negotiate() [all …]
|
H A D | http_ntlm.c | 71 curlntlm *state; in Curl_input_ntlm() local 103 if(*state == NTLMSTATE_LAST) { in Curl_input_ntlm() 110 *state = NTLMSTATE_NONE; in Curl_input_ntlm() 147 curlntlm *state; in Curl_output_ntlm() local 164 authp = &data->state.authproxy; in Curl_output_ntlm() 171 userp = data->state.aptr.user; in Curl_output_ntlm() 177 state = &conn->http_ntlm_state; in Curl_output_ntlm() 178 authp = &data->state.authhost; in Curl_output_ntlm() 205 if(*state == NTLMSTATE_TYPE3) in Curl_output_ntlm() 206 *state = NTLMSTATE_LAST; in Curl_output_ntlm() [all …]
|
H A D | http_digest.c | 55 digest = &data->state.proxydigest; in Curl_input_digest() 58 digest = &data->state.digest; in Curl_input_digest() 99 digest = &data->state.proxydigest; in Curl_output_digest() 101 userp = data->state.aptr.proxyuser; in Curl_output_digest() 102 passwdp = data->state.aptr.proxypasswd; in Curl_output_digest() 103 authp = &data->state.authproxy; in Curl_output_digest() 107 digest = &data->state.digest; in Curl_output_digest() 108 allocuserpwd = &data->state.aptr.userpwd; in Curl_output_digest() 109 userp = data->state.aptr.user; in Curl_output_digest() 110 passwdp = data->state.aptr.passwd; in Curl_output_digest() [all …]
|
H A D | ftplistparser.c | 165 } state; member 190 wc->state = CURLWC_INIT; in Curl_wildcard_init() 213 wc->state = CURLWC_INIT; in Curl_wildcard_dtor() 419 switch(parser->state.UNIX.main) { in Curl_ftp_parselist() 529 switch(parser->state.UNIX.sub.hlinks) { in Curl_ftp_parselist() 567 switch(parser->state.UNIX.sub.user) { in Curl_ftp_parselist() 589 switch(parser->state.UNIX.sub.group) { in Curl_ftp_parselist() 611 switch(parser->state.UNIX.sub.size) { in Curl_ftp_parselist() 652 switch(parser->state.UNIX.sub.time) { in Curl_ftp_parselist() 890 switch(parser->state.NT.main) { in Curl_ftp_parselist() [all …]
|
H A D | transfer.c | 427 if(data->state.select_bits) { in Curl_sendrecv() 531 data->state.upload = (data->state.httpreq == HTTPREQ_PUT); in Curl_init_CONNECT() 550 if(data->state.url_alloc) { in Curl_pretransfer() 587 data->state.requests = 0; in Curl_pretransfer() 592 data->state.httpversion = 0; in Curl_pretransfer() 608 data->state.infilesize = 0; in Curl_pretransfer() 614 if(data->state.resolve) in Curl_pretransfer() 641 data->state.authhost.picked &= data->state.authhost.want; in Curl_pretransfer() 642 data->state.authproxy.picked &= data->state.authproxy.want; in Curl_pretransfer() 675 data->state.aptr.uagent = in Curl_pretransfer() [all …]
|
H A D | rtsp.c | 251 if(!data->state.first_host) { in rtsp_do() 253 if(!data->state.first_host) in rtsp_do() 385 data->state.aptr.uagent) { in rtsp_do() 407 data->state.aptr.ref = aprintf("Referer: %s\r\n", data->state.referer); in rtsp_do() 409 p_referrer = data->state.aptr.ref; in rtsp_do() 417 if(data->state.use_range && in rtsp_do() 423 data->state.aptr.rangeline = aprintf("Range: %s\r\n", data->state.range); in rtsp_do() 506 if(data->state.upload) { in rtsp_do() 642 switch(rtspc->state) { in rtsp_filter_rtp() 722 rtspc->state = RTP_PARSE_LEN; in rtsp_filter_rtp() [all …]
|
H A D | http.c | 1029 if(data->state.resume_from && data->state.httpreq == HTTPREQ_GET && in http_should_fail() 1911 data->state.mimepost = data->state.formp; in set_post_reader() 2544 pq = aprintf("%s?%s", data->state.up.path, data->state.up.query); in Curl_http() 2557 data->state.aptr.ref = aprintf("Referer: %s\r\n", data->state.referer); in Curl_http() 2637 (data->state.aptr.host ? data->state.aptr.host : ""), in Curl_http() 2644 data->state.aptr.userpwd ? data->state.aptr.userpwd : "", in Curl_http() 2645 (data->state.use_range && data->state.aptr.rangeline) ? in Curl_http() 2652 data->state.aptr.te ? data->state.aptr.te : "", in Curl_http() 2657 (data->state.referer && data->state.aptr.ref) ? in Curl_http() 3214 if(!data->state.httpversion || data->state.httpversion > k->httpversion) in Curl_http_statusline() [all …]
|
H A D | asyn-ares.c | 247 if(data->state.async.resolver) in Curl_resolver_cancel() 249 destroy_async_data(&data->state.async); in Curl_resolver_cancel() 418 if(!data->state.async.dns) in Curl_resolver_is_resolved() 421 *dns = data->state.async.dns; in Curl_resolver_is_resolved() 423 destroy_async_data(&data->state.async); in Curl_resolver_is_resolved() 488 if(result || data->state.async.done) in Curl_resolver_wait_resolv() 514 *entry = data->state.async.dns; in Curl_resolver_wait_resolv() 581 res = data->state.async.tdata; in query_completed_cb() 768 data->state.async.hostname = res->hostname; in Curl_resolver_getaddrinfo() 769 data->state.async.port = port; in Curl_resolver_getaddrinfo() [all …]
|
H A D | headers.c | 82 if(request > data->state.requests) in curl_easy_header() 85 request = data->state.requests; in curl_easy_header() 123 *hout = &data->state.headerout[0]; in curl_easy_header() 140 if(request > data->state.requests) in curl_easy_nextheader() 143 request = data->state.requests; in curl_easy_nextheader() 185 return &data->state.headerout[1]; in curl_easy_nextheader() 232 hs = data->state.prevhead; in unfold_value() 268 data->state.prevhead = newhs; in unfold_value() 301 if(data->state.prevhead) in Curl_headers_push() 331 data->state.prevhead = hs; in Curl_headers_push() [all …]
|
H A D | speedcheck.c | 35 memset(&data->state.keeps_speed, 0, sizeof(struct curltime)); in Curl_speedinit() 50 if(!data->state.keeps_speed.tv_sec) in Curl_speedcheck() 52 data->state.keeps_speed = now; in Curl_speedcheck() 55 timediff_t howlong = Curl_timediff(now, data->state.keeps_speed); in Curl_speedcheck() 70 data->state.keeps_speed.tv_sec = 0; in Curl_speedcheck()
|
H A D | c-hyper.c | 183 if(data->state.hconnect) in hyper_each_header() 279 if(data->state.hconnect) in status_line() 305 if(data->state.hconnect) in status_line() 383 if(data->state.hresult) { in Curl_hyper_stream() 814 if(data->state.hresult) in http1xx_cb() 871 if(data->state.up.query) { in Curl_http() 872 pq = aprintf("%s?%s", data->state.up.path, data->state.up.query); in Curl_http() 1003 if(data->state.aptr.host) { in Curl_http() 1023 if((data->state.use_range && data->state.aptr.rangeline)) { in Curl_http() 1077 data->state.aptr.ref = aprintf("Referer: %s\r\n", data->state.referer); in Curl_http() [all …]
|
H A D | http_chunks.c | 112 return ch->state == CHUNK_DONE; in Curl_httpchunk_is_done() 126 if(ch->state == CHUNK_DONE) in httpchunk_readwrite() 128 if(ch->state == CHUNK_FAILED) in httpchunk_readwrite() 139 ch->state = CHUNK_FAILED; in httpchunk_readwrite() 146 switch(ch->state) { in httpchunk_readwrite() 190 ch->state = CHUNK_DATA; in httpchunk_readwrite() 234 ch->state = CHUNK_POSTLF; in httpchunk_readwrite() 243 ch->state = CHUNK_FAILED; in httpchunk_readwrite() 318 ch->state = CHUNK_FAILED; in httpchunk_readwrite() 339 ch->state = CHUNK_STOP; in httpchunk_readwrite() [all …]
|
H A D | curl_range.c | 44 if(data->state.use_range && data->state.range) { in Curl_range() 47 from_t = curlx_strtoofft(data->state.range, &ptr, 10, &from); in Curl_range() 57 data->state.resume_from = from; in Curl_range() 63 data->state.resume_from = -to; in Curl_range() 79 data->state.resume_from = from; in Curl_range()
|
H A D | file.c | 253 if(!data->state.upload && (fd == -1)) { in file_connect() 327 if(data->state.resume_from) in file_upload() 338 if(-1 != data->state.infilesize) in file_upload() 343 if(data->state.resume_from < 0) { in file_upload() 371 if(data->state.resume_from) { in file_upload() 380 data->state.resume_from = 0; in file_upload() 441 if(data->state.upload) in file_do() 518 if(data->state.resume_from < 0) { in file_do() 526 if(data->state.resume_from > 0) { in file_do() 554 if(data->state.resume_from) { in file_do() [all …]
|
H A D | hostasyn.c | 73 data->state.async.status = status; in Curl_addrinfo_callback() 81 data->state.async.hostname, 0, in Curl_addrinfo_callback() 82 data->state.async.port, FALSE); in Curl_addrinfo_callback() 97 data->state.async.dns = dns; in Curl_addrinfo_callback() 102 data->state.async.done = TRUE; in Curl_addrinfo_callback()
|
H A D | url.c | 189 data->state.referer = NULL; in Curl_freeset() 190 if(data->state.url_alloc) { in Curl_freeset() 194 data->state.url = NULL; in Curl_freeset() 217 data->state.uh = NULL; in up_free() 261 free(data->state.range); in Curl_close() 769 unsigned int state; in Curl_conn_seems_dead() local 1863 if(!data->state.aptr.passwd || (data->state.creds_from != CREDS_OPTION)) { 1882 if(!data->state.aptr.user || (data->state.creds_from != CREDS_OPTION)) { 2758 uc = curl_url_set(data->state.uh, CURLUPART_USER, data->state.aptr.user, 3373 if(!data->state.url) { [all …]
|
H A D | netrc.c | 108 enum host_lookup_state state = NOTHING; in parsenetrc() local 137 if(state == MACDEF) { in parsenetrc() 206 switch(state) { in parsenetrc() 212 state = MACDEF; in parsenetrc() 217 state = HOSTFOUND; in parsenetrc() 226 state = HOSTVALID; in parsenetrc() 232 state = NOTHING; in parsenetrc() 237 state = HOSTVALID; in parsenetrc() 242 state = NOTHING; in parsenetrc() 277 state = HOSTFOUND; in parsenetrc() [all …]
|
/curl/docs/examples/ |
H A D | xmlstream.c | 59 state->tags++; in startElement() 60 state->depth++; in startElement() 63 free(state->characters.memory); in startElement() 65 state->characters.size = 0; in startElement() 77 state->ok = 0; in characterDataHandler() 90 state->depth--; in endElement() 92 printf("%5lu %10lu %s\n", state->depth, state->characters.size, name); in endElement() 108 state->ok = 0; in parseStreamCallback() 119 struct ParserStruct state; in main() local 123 state.ok = 1; in main() [all …]
|
/curl/lib/vssh/ |
H A D | libssh.c | 314 sshc->state = nowstate; in mystate() 678 switch(sshc->state) { in myssh_statemach_act() 945 state(data, SSH_STOP); in myssh_statemach_act() 984 state(data, SSH_STOP); in myssh_statemach_act() 1222 if(data->state.upload) in myssh_statemach_act() 1337 data->state.infilesize -= data->state.resume_from; in myssh_statemach_act() 1372 state(data, SSH_STOP); in myssh_statemach_act() 1580 state(data, SSH_STOP); in myssh_statemach_act() 1723 state(data, SSH_STOP); in myssh_statemach_act() 1744 state(data, SSH_STOP); in myssh_statemach_act() [all …]
|
H A D | libssh2.c | 387 sshc->state = nowstate; in state() 1260 data->state.infilesize -= data->state.resume_from; in sftp_upload_init() 1291 state(data, SSH_STOP); in sftp_upload_init() 1607 state(data, SSH_STOP); in sftp_download_stat() 1619 state(data, SSH_STOP); in sftp_download_stat() 1703 switch(sshc->state) { in ssh_statemachine() 2022 state(data, SSH_STOP); in ssh_statemachine() 2089 state(data, SSH_STOP); in ssh_statemachine() 2383 if(data->state.upload) in ssh_statemachine() 2548 state(data, SSH_STOP); in ssh_statemachine() [all …]
|
H A D | wolfssh.c | 211 if(sshc->state != nowstate) { in state() 217 sshc->state = nowstate; in state() 424 state(data, SSH_INIT); in wssh_connect() 453 switch(sshc->state) { in wssh_statemach_act() 473 state(data, SSH_STOP); in wssh_statemach_act() 477 state(data, SSH_STOP); in wssh_statemach_act() 523 state(data, SSH_STOP); in wssh_statemach_act() 555 if(data->state.upload) in wssh_statemach_act() 672 data->state.infilesize -= data->state.resume_from; in wssh_statemach_act() 776 if(data->state.use_range || data->state.resume_from) { in wssh_statemach_act() [all …]
|
/curl/tests/ |
H A D | negtelnetserver.py | 127 self.state = self.NO_NEG 169 self.state = self.START_NEG 182 self.state = self.WILL 187 self.state = self.WONT 191 self.state = self.DO 195 self.state = self.DONT 200 self.state) 201 self.state = self.NO_NEG 212 self.state = self.NO_NEG 218 self.state) [all …]
|
/curl/lib/vauth/ |
H A D | vauth.c | 156 return (!data->state.this_is_a_follow || in Curl_auth_allowed_to_host() 158 (data->state.first_host && in Curl_auth_allowed_to_host() 159 strcasecompare(data->state.first_host, conn->host.name) && in Curl_auth_allowed_to_host() 160 (data->state.first_remote_port == conn->remote_port) && in Curl_auth_allowed_to_host() 161 (data->state.first_remote_protocol == conn->handler->protocol))); in Curl_auth_allowed_to_host()
|
/curl/tests/server/ |
H A D | getpart.c | 303 } state = STATE_OUTSIDE; in getpart() local 347 if((STATE_INSUB == state) && !strcmp(csub, ptag)) { in getpart() 349 state = STATE_INMAIN; in getpart() 368 state = STATE_OUTER; in getpart() 387 state = STATE_OUTSIDE; in getpart() 433 if(STATE_OUTSIDE == state) { in getpart() 436 state = STATE_OUTER; in getpart() 439 else if(STATE_OUTER == state) { in getpart() 442 state = STATE_INMAIN; in getpart() 445 else if(STATE_INMAIN == state) { in getpart() [all …]
|