Lines Matching refs:state

224 #define state(x,y) mystate(x,y)  macro
226 #define state(x,y) mystate(x,y, __LINE__) macro
307 if(sshc->state != nowstate) { in mystate()
309 (void *) sshc, names[sshc->state], names[nowstate], in mystate()
314 sshc->state = nowstate; in mystate()
551 state(data, SSH_SESSION_DISCONNECT); \
557 state(data, SSH_SFTP_CLOSE); \
566 state(data, SSH_AUTH_PASS_INIT); \
576 state(data, SSH_AUTH_KEY_INIT); \
586 state(data, SSH_AUTH_GSSAPI); \
678 switch(sshc->state) { in myssh_statemach_act()
692 state(data, SSH_S_STARTUP); in myssh_statemach_act()
710 state(data, SSH_HOSTKEY); in myssh_statemach_act()
721 state(data, SSH_AUTHLIST); in myssh_statemach_act()
735 state(data, SSH_AUTH_DONE); in myssh_statemach_act()
756 state(data, SSH_AUTH_PKEY_INIT); in myssh_statemach_act()
760 state(data, SSH_AUTH_GSSAPI); in myssh_statemach_act()
763 state(data, SSH_AUTH_KEY_INIT); in myssh_statemach_act()
766 state(data, SSH_AUTH_PASS_INIT); in myssh_statemach_act()
809 state(data, SSH_AUTH_PKEY); in myssh_statemach_act()
824 state(data, SSH_AUTH_DONE); in myssh_statemach_act()
841 state(data, SSH_AUTH_DONE); in myssh_statemach_act()
866 state(data, SSH_AUTH_DONE); in myssh_statemach_act()
875 state(data, SSH_AUTH_KEY); in myssh_statemach_act()
891 state(data, SSH_AUTH_DONE); in myssh_statemach_act()
903 state(data, SSH_AUTH_PASS); in myssh_statemach_act()
916 state(data, SSH_AUTH_DONE); in myssh_statemach_act()
941 state(data, SSH_SFTP_INIT); in myssh_statemach_act()
945 state(data, SSH_STOP); in myssh_statemach_act()
966 state(data, SSH_SFTP_REALPATH); in myssh_statemach_act()
977 data->state.most_recent_ftp_entrypath = sshc->homedir; in myssh_statemach_act()
984 state(data, SSH_STOP); in myssh_statemach_act()
991 state(data, SSH_STOP); in myssh_statemach_act()
998 state(data, SSH_SFTP_QUOTE); in myssh_statemach_act()
1001 state(data, SSH_SFTP_GETINFO); in myssh_statemach_act()
1009 state(data, SSH_SFTP_QUOTE); in myssh_statemach_act()
1012 state(data, SSH_STOP); in myssh_statemach_act()
1028 state(data, SSH_SFTP_QUOTE); in myssh_statemach_act()
1032 state(data, sshc->nextstate); in myssh_statemach_act()
1036 state(data, SSH_SFTP_GETINFO); in myssh_statemach_act()
1053 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1061 state(data, SSH_SFTP_NEXT_QUOTE); in myssh_statemach_act()
1072 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1077 state(data, SSH_SFTP_NEXT_QUOTE); in myssh_statemach_act()
1087 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1092 state(data, SSH_SFTP_NEXT_QUOTE); in myssh_statemach_act()
1103 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1108 state(data, SSH_SFTP_NEXT_QUOTE); in myssh_statemach_act()
1117 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1122 state(data, SSH_SFTP_NEXT_QUOTE); in myssh_statemach_act()
1131 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1136 state(data, SSH_SFTP_NEXT_QUOTE); in myssh_statemach_act()
1148 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1181 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1189 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1194 state(data, SSH_SFTP_NEXT_QUOTE); in myssh_statemach_act()
1200 state(data, SSH_SFTP_FILETIME); in myssh_statemach_act()
1203 state(data, SSH_SFTP_TRANS_INIT); in myssh_statemach_act()
1217 state(data, SSH_SFTP_TRANS_INIT); in myssh_statemach_act()
1222 if(data->state.upload) in myssh_statemach_act()
1223 state(data, SSH_SFTP_UPLOAD_INIT); in myssh_statemach_act()
1226 state(data, SSH_SFTP_READDIR_INIT); in myssh_statemach_act()
1228 state(data, SSH_SFTP_DOWNLOAD_INIT); in myssh_statemach_act()
1236 if(data->state.resume_from) { in myssh_statemach_act()
1239 if(data->state.resume_from < 0) { in myssh_statemach_act()
1248 data->state.resume_from = attrs->size; in myssh_statemach_act()
1253 data->state.resume_from = 0; in myssh_statemach_act()
1261 else if(data->state.resume_from > 0) in myssh_statemach_act()
1283 state(data, SSH_SFTP_CREATE_DIRS_INIT); in myssh_statemach_act()
1294 if(data->state.resume_from > 0) { in myssh_statemach_act()
1299 data->state.resume_from, SEEK_SET); in myssh_statemach_act()
1314 (data->state.resume_from - passed > in myssh_statemach_act()
1316 sizeof(scratch) : curlx_sotouz(data->state.resume_from - passed); in myssh_statemach_act()
1319 data->state.fread_func(scratch, 1, in myssh_statemach_act()
1320 readthisamountnow, data->state.in); in myssh_statemach_act()
1330 } while(passed < data->state.resume_from); in myssh_statemach_act()
1336 if(data->state.infilesize > 0) { in myssh_statemach_act()
1337 data->state.infilesize -= data->state.resume_from; in myssh_statemach_act()
1338 data->req.size = data->state.infilesize; in myssh_statemach_act()
1339 Curl_pgrsSetUploadSize(data, data->state.infilesize); in myssh_statemach_act()
1342 rc = sftp_seek64(sshc->sftp_file, data->state.resume_from); in myssh_statemach_act()
1348 if(data->state.infilesize > 0) { in myssh_statemach_act()
1349 data->req.size = data->state.infilesize; in myssh_statemach_act()
1350 Curl_pgrsSetUploadSize(data, data->state.infilesize); in myssh_statemach_act()
1365 data->state.select_bits = CURL_CSELECT_OUT; in myssh_statemach_act()
1372 state(data, SSH_STOP); in myssh_statemach_act()
1379 state(data, SSH_SFTP_CREATE_DIRS); in myssh_statemach_act()
1382 state(data, SSH_SFTP_UPLOAD_INIT); in myssh_statemach_act()
1392 state(data, SSH_SFTP_CREATE_DIRS_MKDIR); in myssh_statemach_act()
1395 state(data, SSH_SFTP_UPLOAD_INIT); in myssh_statemach_act()
1419 state(data, SSH_SFTP_CREATE_DIRS); in myssh_statemach_act()
1425 state(data, SSH_STOP); in myssh_statemach_act()
1441 state(data, SSH_SFTP_READDIR); in myssh_statemach_act()
1460 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1469 state(data, SSH_STOP); in myssh_statemach_act()
1477 state(data, SSH_STOP); in myssh_statemach_act()
1488 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1493 state(data, SSH_SFTP_READDIR_LINK); in myssh_statemach_act()
1496 state(data, SSH_SFTP_READDIR_BOTTOM); in myssh_statemach_act()
1501 state(data, SSH_SFTP_READDIR_DONE); in myssh_statemach_act()
1554 state(data, SSH_SFTP_READDIR_BOTTOM); in myssh_statemach_act()
1568 state(data, SSH_STOP); in myssh_statemach_act()
1571 state(data, SSH_SFTP_READDIR); in myssh_statemach_act()
1580 state(data, SSH_STOP); in myssh_statemach_act()
1600 state(data, SSH_SFTP_DOWNLOAD_STAT); in myssh_statemach_act()
1632 if(data->state.use_range) { in myssh_statemach_act()
1639 from_t = curlx_strtoofft(data->state.range, &ptr, 10, &from); in myssh_statemach_act()
1685 if(data->state.resume_from) { in myssh_statemach_act()
1686 if(data->state.resume_from < 0) { in myssh_statemach_act()
1688 if((curl_off_t)size < -data->state.resume_from) { in myssh_statemach_act()
1690 FMT_OFF_T ")", data->state.resume_from, size); in myssh_statemach_act()
1694 data->state.resume_from += size; in myssh_statemach_act()
1697 if((curl_off_t)size < data->state.resume_from) { in myssh_statemach_act()
1700 data->state.resume_from, size); in myssh_statemach_act()
1705 data->req.size = size - data->state.resume_from; in myssh_statemach_act()
1706 data->req.maxdownload = size - data->state.resume_from; in myssh_statemach_act()
1708 size - data->state.resume_from); in myssh_statemach_act()
1710 rc = sftp_seek64(sshc->sftp_file, data->state.resume_from); in myssh_statemach_act()
1723 state(data, SSH_STOP); in myssh_statemach_act()
1734 data->state.select_bits = CURL_CSELECT_IN; in myssh_statemach_act()
1739 state(data, SSH_SFTP_CLOSE); in myssh_statemach_act()
1744 state(data, SSH_STOP); in myssh_statemach_act()
1762 state(data, sshc->nextstate); in myssh_statemach_act()
1766 state(data, SSH_STOP); in myssh_statemach_act()
1787 data->state.most_recent_ftp_entrypath = NULL; in myssh_statemach_act()
1789 state(data, SSH_SESSION_DISCONNECT); in myssh_statemach_act()
1796 state(data, SSH_STOP); in myssh_statemach_act()
1803 if(data->state.upload) { in myssh_statemach_act()
1804 if(data->state.infilesize < 0) { in myssh_statemach_act()
1813 state(data, SSH_SCP_UPLOAD_INIT); in myssh_statemach_act()
1818 state(data, SSH_SCP_DOWNLOAD_INIT); in myssh_statemach_act()
1840 data->state.infilesize, in myssh_statemach_act()
1862 data->state.select_bits = CURL_CSELECT_OUT; in myssh_statemach_act()
1864 state(data, SSH_STOP); in myssh_statemach_act()
1877 state(data, SSH_SCP_DOWNLOAD); in myssh_statemach_act()
1902 data->state.select_bits = CURL_CSELECT_IN; in myssh_statemach_act()
1904 state(data, SSH_STOP); in myssh_statemach_act()
1908 if(data->state.upload) in myssh_statemach_act()
1909 state(data, SSH_SCP_SEND_EOF); in myssh_statemach_act()
1911 state(data, SSH_SCP_CHANNEL_FREE); in myssh_statemach_act()
1929 state(data, SSH_SCP_CHANNEL_FREE); in myssh_statemach_act()
1941 state(data, SSH_SESSION_DISCONNECT); in myssh_statemach_act()
1962 data->state.most_recent_ftp_entrypath = NULL; in myssh_statemach_act()
1964 state(data, SSH_SESSION_FREE); in myssh_statemach_act()
2010 sshc->state = SSH_SESSION_FREE; /* current */ in myssh_statemach_act()
2012 state(data, SSH_STOP); in myssh_statemach_act()
2019 state(data, SSH_STOP); in myssh_statemach_act()
2023 } while(!rc && (sshc->state != SSH_STOP)); in myssh_statemach_act()
2088 *done = (sshc->state == SSH_STOP) ? TRUE : FALSE; in myssh_multi_statemach()
2101 while((sshc->state != SSH_STOP) && !result) { in myssh_block_statemach()
2264 state(data, SSH_INIT); in myssh_connect()
2304 state(data, SSH_SCP_TRANS_INIT); in scp_perform()
2359 state(data, SSH_SESSION_DISCONNECT); in scp_disconnect()
2397 state(data, SSH_SCP_DONE); in scp_done()
2485 state(data, SSH_SFTP_QUOTE_INIT); in sftp_perform()
2524 state(data, SSH_SFTP_SHUTDOWN); in sftp_disconnect()
2546 state(data, SSH_SFTP_CLOSE); in sftp_done()
2667 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2680 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2685 state(data, SSH_SFTP_NEXT_QUOTE); in sftp_quote()
2696 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2712 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2741 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2747 state(data, SSH_SFTP_QUOTE_STAT); in sftp_quote()
2762 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2767 state(data, SSH_SFTP_QUOTE_SYMLINK); in sftp_quote()
2772 state(data, SSH_SFTP_QUOTE_MKDIR); in sftp_quote()
2786 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2791 state(data, SSH_SFTP_QUOTE_RENAME); in sftp_quote()
2796 state(data, SSH_SFTP_QUOTE_RMDIR); in sftp_quote()
2800 state(data, SSH_SFTP_QUOTE_UNLINK); in sftp_quote()
2805 state(data, SSH_SFTP_QUOTE_STATVFS); in sftp_quote()
2813 state(data, SSH_SFTP_CLOSE); in sftp_quote()
2848 state(data, SSH_SFTP_CLOSE); in sftp_quote_stat()
2862 state(data, SSH_SFTP_CLOSE); in sftp_quote_stat()
2877 state(data, SSH_SFTP_CLOSE); in sftp_quote_stat()
2892 state(data, SSH_SFTP_CLOSE); in sftp_quote_stat()
2916 state(data, SSH_SFTP_CLOSE); in sftp_quote_stat()
2930 state(data, SSH_SFTP_QUOTE_SETSTAT); in sftp_quote_stat()