Lines Matching refs:state
309 static void state(struct Curl_easy *data, sshstate nowstate) in state() function
381 if(sshc->state != nowstate) { in state()
383 (void *)sshc, names[sshc->state], names[nowstate]); in state()
387 sshc->state = nowstate; in state()
597 state(data, SSH_SESSION_FREE); in ssh_knownhost()
685 state(data, SSH_SESSION_FREE); in ssh_check_fingerprint()
694 state(data, SSH_SESSION_FREE); in ssh_check_fingerprint()
701 state(data, SSH_SESSION_FREE); in ssh_check_fingerprint()
728 state(data, SSH_SESSION_FREE); in ssh_check_fingerprint()
768 state(data, SSH_SESSION_FREE); in ssh_check_fingerprint()
790 state(data, SSH_SESSION_FREE); in ssh_check_fingerprint()
796 state(data, SSH_SESSION_FREE); in ssh_check_fingerprint()
1002 state(data, SSH_SFTP_NEXT_QUOTE); in sftp_quote()
1049 state(data, SSH_SFTP_QUOTE_STAT); in sftp_quote()
1064 state(data, SSH_SFTP_QUOTE_SYMLINK); in sftp_quote()
1069 state(data, SSH_SFTP_QUOTE_MKDIR); in sftp_quote()
1083 state(data, SSH_SFTP_QUOTE_RENAME); in sftp_quote()
1088 state(data, SSH_SFTP_QUOTE_RMDIR); in sftp_quote()
1092 state(data, SSH_SFTP_QUOTE_UNLINK); in sftp_quote()
1097 state(data, SSH_SFTP_QUOTE_STATVFS); in sftp_quote()
1123 if(data->state.resume_from) { in sftp_upload_init()
1125 if(data->state.resume_from < 0) { in sftp_upload_init()
1134 data->state.resume_from = 0; in sftp_upload_init()
1142 data->state.resume_from = attrs.filesize; in sftp_upload_init()
1150 else if(data->state.resume_from > 0) in sftp_upload_init()
1180 state(data, SSH_SFTP_CLOSE); in sftp_upload_init()
1194 state(data, SSH_SFTP_CREATE_DIRS_INIT); in sftp_upload_init()
1197 state(data, SSH_SFTP_CLOSE); in sftp_upload_init()
1216 if(data->state.resume_from > 0) { in sftp_upload_init()
1222 data->state.resume_from, SEEK_SET); in sftp_upload_init()
1237 (data->state.resume_from - passed > in sftp_upload_init()
1239 sizeof(scratch) : curlx_sotouz(data->state.resume_from - passed); in sftp_upload_init()
1243 actuallyread = data->state.fread_func(scratch, 1, in sftp_upload_init()
1245 data->state.in); in sftp_upload_init()
1255 } while(passed < data->state.resume_from); in sftp_upload_init()
1259 if(data->state.infilesize > 0) { in sftp_upload_init()
1260 data->state.infilesize -= data->state.resume_from; in sftp_upload_init()
1261 data->req.size = data->state.infilesize; in sftp_upload_init()
1262 Curl_pgrsSetUploadSize(data, data->state.infilesize); in sftp_upload_init()
1265 SFTP_SEEK(sshc->sftp_handle, data->state.resume_from); in sftp_upload_init()
1267 if(data->state.infilesize > 0) { in sftp_upload_init()
1268 data->req.size = data->state.infilesize; in sftp_upload_init()
1269 Curl_pgrsSetUploadSize(data, data->state.infilesize); in sftp_upload_init()
1284 data->state.select_bits = CURL_CSELECT_OUT; in sftp_upload_init()
1291 state(data, SSH_STOP); in sftp_upload_init()
1368 state(data, SSH_SESSION_FREE); in sftp_pkey_init()
1381 state(data, SSH_AUTH_PKEY); in sftp_pkey_init()
1384 state(data, SSH_AUTH_PASS_INIT); in sftp_pkey_init()
1485 state(data, SSH_SFTP_QUOTE_SETSTAT); in sftp_quote_stat()
1527 if(data->state.use_range) { in sftp_download_stat()
1534 from_t = curlx_strtoofft(data->state.range, &ptr, 10, &from); in sftp_download_stat()
1574 if(data->state.resume_from) { in sftp_download_stat()
1575 if(data->state.resume_from < 0) { in sftp_download_stat()
1577 if((curl_off_t)attrs.filesize < -data->state.resume_from) { in sftp_download_stat()
1580 data->state.resume_from, (curl_off_t)attrs.filesize); in sftp_download_stat()
1584 data->state.resume_from += attrs.filesize; in sftp_download_stat()
1587 if((curl_off_t)attrs.filesize < data->state.resume_from) { in sftp_download_stat()
1590 data->state.resume_from, (curl_off_t)attrs.filesize); in sftp_download_stat()
1595 data->req.size = attrs.filesize - data->state.resume_from; in sftp_download_stat()
1596 data->req.maxdownload = attrs.filesize - data->state.resume_from; in sftp_download_stat()
1598 attrs.filesize - data->state.resume_from); in sftp_download_stat()
1599 SFTP_SEEK(sshc->sftp_handle, data->state.resume_from); in sftp_download_stat()
1607 state(data, SSH_STOP); in sftp_download_stat()
1618 data->state.select_bits = CURL_CSELECT_IN; in sftp_download_stat()
1619 state(data, SSH_STOP); in sftp_download_stat()
1662 state(data, SSH_SFTP_READDIR_LINK); in sftp_readdir()
1665 state(data, SSH_SFTP_READDIR_BOTTOM); in sftp_readdir()
1672 state(data, SSH_SFTP_READDIR_DONE); in sftp_readdir()
1681 state(data, SSH_SFTP_CLOSE); in sftp_readdir()
1703 switch(sshc->state) { in ssh_statemachine()
1715 state(data, SSH_SESSION_FREE); in ssh_statemachine()
1720 state(data, SSH_S_STARTUP); in ssh_statemachine()
1733 state(data, SSH_SESSION_FREE); in ssh_statemachine()
1738 state(data, SSH_HOSTKEY); in ssh_statemachine()
1749 state(data, SSH_AUTHLIST); in ssh_statemachine()
1772 state(data, SSH_AUTH_DONE); in ssh_statemachine()
1779 state(data, SSH_SESSION_FREE); in ssh_statemachine()
1787 state(data, SSH_AUTH_PKEY_INIT); in ssh_statemachine()
1813 state(data, SSH_AUTH_DONE); in ssh_statemachine()
1828 state(data, SSH_AUTH_PASS_INIT); in ssh_statemachine()
1836 state(data, SSH_AUTH_PASS); in ssh_statemachine()
1839 state(data, SSH_AUTH_HOST_INIT); in ssh_statemachine()
1856 state(data, SSH_AUTH_DONE); in ssh_statemachine()
1859 state(data, SSH_AUTH_HOST_INIT); in ssh_statemachine()
1867 state(data, SSH_AUTH_HOST); in ssh_statemachine()
1870 state(data, SSH_AUTH_AGENT_INIT); in ssh_statemachine()
1875 state(data, SSH_AUTH_AGENT_INIT); in ssh_statemachine()
1891 state(data, SSH_AUTH_KEY_INIT); in ssh_statemachine()
1901 state(data, SSH_AUTH_KEY_INIT); in ssh_statemachine()
1905 state(data, SSH_AUTH_AGENT_LIST); in ssh_statemachine()
1910 state(data, SSH_AUTH_KEY_INIT); in ssh_statemachine()
1921 state(data, SSH_AUTH_KEY_INIT); in ssh_statemachine()
1925 state(data, SSH_AUTH_AGENT); in ssh_statemachine()
1963 state(data, SSH_AUTH_DONE); in ssh_statemachine()
1966 state(data, SSH_AUTH_KEY_INIT); in ssh_statemachine()
1975 state(data, SSH_AUTH_KEY); in ssh_statemachine()
1978 state(data, SSH_AUTH_DONE); in ssh_statemachine()
1996 state(data, SSH_AUTH_DONE); in ssh_statemachine()
2002 state(data, SSH_SESSION_FREE); in ssh_statemachine()
2018 state(data, SSH_SFTP_INIT); in ssh_statemachine()
2022 state(data, SSH_STOP); in ssh_statemachine()
2041 state(data, SSH_SESSION_FREE); in ssh_statemachine()
2045 state(data, SSH_SFTP_REALPATH); in ssh_statemachine()
2062 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2066 data->state.most_recent_ftp_entrypath = sshc->homedir; in ssh_statemachine()
2080 state(data, SSH_STOP); in ssh_statemachine()
2089 state(data, SSH_STOP); in ssh_statemachine()
2097 state(data, SSH_STOP); in ssh_statemachine()
2104 state(data, SSH_SFTP_QUOTE); in ssh_statemachine()
2107 state(data, SSH_SFTP_GETINFO); in ssh_statemachine()
2115 state(data, SSH_SFTP_QUOTE); in ssh_statemachine()
2118 state(data, SSH_STOP); in ssh_statemachine()
2126 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2139 state(data, SSH_SFTP_QUOTE); in ssh_statemachine()
2143 state(data, sshc->nextstate); in ssh_statemachine()
2147 state(data, SSH_SFTP_GETINFO); in ssh_statemachine()
2155 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2175 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2180 state(data, SSH_SFTP_NEXT_QUOTE); in ssh_statemachine()
2198 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2203 state(data, SSH_SFTP_NEXT_QUOTE); in ssh_statemachine()
2218 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2223 state(data, SSH_SFTP_NEXT_QUOTE); in ssh_statemachine()
2244 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2249 state(data, SSH_SFTP_NEXT_QUOTE); in ssh_statemachine()
2263 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2268 state(data, SSH_SFTP_NEXT_QUOTE); in ssh_statemachine()
2281 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2286 state(data, SSH_SFTP_NEXT_QUOTE); in ssh_statemachine()
2305 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2336 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2344 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2349 state(data, SSH_SFTP_NEXT_QUOTE); in ssh_statemachine()
2356 state(data, SSH_SFTP_FILETIME); in ssh_statemachine()
2359 state(data, SSH_SFTP_TRANS_INIT); in ssh_statemachine()
2378 state(data, SSH_SFTP_TRANS_INIT); in ssh_statemachine()
2383 if(data->state.upload) in ssh_statemachine()
2384 state(data, SSH_SFTP_UPLOAD_INIT); in ssh_statemachine()
2387 state(data, SSH_SFTP_READDIR_INIT); in ssh_statemachine()
2389 state(data, SSH_SFTP_DOWNLOAD_INIT); in ssh_statemachine()
2396 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2405 state(data, SSH_SFTP_CREATE_DIRS); in ssh_statemachine()
2408 state(data, SSH_SFTP_UPLOAD_INIT); in ssh_statemachine()
2418 state(data, SSH_SFTP_CREATE_DIRS_MKDIR); in ssh_statemachine()
2421 state(data, SSH_SFTP_UPLOAD_INIT); in ssh_statemachine()
2445 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2451 state(data, SSH_SFTP_CREATE_DIRS); in ssh_statemachine()
2457 state(data, SSH_STOP); in ssh_statemachine()
2479 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2485 state(data, SSH_SFTP_READDIR); in ssh_statemachine()
2492 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2513 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2518 state(data, SSH_SFTP_READDIR_BOTTOM); in ssh_statemachine()
2530 state(data, SSH_STOP); in ssh_statemachine()
2534 state(data, SSH_SFTP_READDIR); in ssh_statemachine()
2548 state(data, SSH_STOP); in ssh_statemachine()
2570 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2575 state(data, SSH_SFTP_DOWNLOAD_STAT); in ssh_statemachine()
2581 state(data, SSH_SFTP_CLOSE); in ssh_statemachine()
2611 state(data, sshc->nextstate); in ssh_statemachine()
2615 state(data, SSH_STOP); in ssh_statemachine()
2650 data->state.most_recent_ftp_entrypath = NULL; in ssh_statemachine()
2652 state(data, SSH_SESSION_DISCONNECT); in ssh_statemachine()
2659 state(data, SSH_STOP); in ssh_statemachine()
2663 if(data->state.upload) { in ssh_statemachine()
2664 if(data->state.infilesize < 0) { in ssh_statemachine()
2667 state(data, SSH_SCP_CHANNEL_FREE); in ssh_statemachine()
2670 state(data, SSH_SCP_UPLOAD_INIT); in ssh_statemachine()
2673 state(data, SSH_SCP_DOWNLOAD_INIT); in ssh_statemachine()
2686 data->state.infilesize); in ssh_statemachine()
2700 state(data, SSH_SCP_CHANNEL_FREE); in ssh_statemachine()
2710 data->req.size = data->state.infilesize; in ssh_statemachine()
2711 Curl_pgrsSetUploadSize(data, data->state.infilesize); in ssh_statemachine()
2718 state(data, SSH_SCP_CHANNEL_FREE); in ssh_statemachine()
2729 data->state.select_bits = CURL_CSELECT_OUT; in ssh_statemachine()
2731 state(data, SSH_STOP); in ssh_statemachine()
2775 state(data, SSH_SCP_CHANNEL_FREE); in ssh_statemachine()
2791 data->state.select_bits = CURL_CSELECT_IN; in ssh_statemachine()
2794 state(data, SSH_SCP_CHANNEL_FREE); in ssh_statemachine()
2798 state(data, SSH_STOP); in ssh_statemachine()
2803 if(data->state.upload) in ssh_statemachine()
2804 state(data, SSH_SCP_SEND_EOF); in ssh_statemachine()
2806 state(data, SSH_SCP_CHANNEL_FREE); in ssh_statemachine()
2823 state(data, SSH_SCP_WAIT_EOF); in ssh_statemachine()
2839 state(data, SSH_SCP_WAIT_CLOSE); in ssh_statemachine()
2855 state(data, SSH_SCP_CHANNEL_FREE); in ssh_statemachine()
2875 state(data, SSH_SESSION_DISCONNECT); in ssh_statemachine()
2877 state(data, SSH_STOP); in ssh_statemachine()
2915 data->state.most_recent_ftp_entrypath = NULL; in ssh_statemachine()
2917 state(data, SSH_SESSION_FREE); in ssh_statemachine()
2990 sshc->state = SSH_SESSION_FREE; /* current */ in ssh_statemachine()
2992 state(data, SSH_STOP); in ssh_statemachine()
2999 state(data, SSH_STOP); in ssh_statemachine()
3003 } while(!rc && (sshc->state != SSH_STOP)); in ssh_statemachine()
3070 *done = (sshc->state == SSH_STOP); in ssh_multi_statemach()
3087 while((sshc->state != SSH_STOP) && !result) { in ssh_block_statemach()
3358 state(data, SSH_INIT); in ssh_connect()
3386 state(data, SSH_SCP_TRANS_INIT); in scp_perform()
3459 state(data, SSH_SESSION_DISCONNECT); in scp_disconnect()
3497 state(data, SSH_SCP_DONE); in scp_done()
3574 state(data, SSH_SFTP_QUOTE_INIT); in sftp_perform()
3614 state(data, SSH_SFTP_SHUTDOWN); in sftp_disconnect()
3636 state(data, SSH_SFTP_CLOSE); in sftp_done()