From 7e9f0803c52bba4149c0eb1aa52ef3933c95f657 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 10 Aug 2009 22:59:35 +0200 Subject: Latest scp code The sample is now able to scp a file --- include/libssh/priv.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 4d65652..1c8628e 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -342,11 +342,20 @@ struct ssh_keys_struct { const char *publickey; }; +enum ssh_scp_states { + SSH_SCP_NEW, //Data structure just created + SSH_SCP_WRITE_INITED, //Gave our intention to write + SSH_SCP_WRITE_WRITING,//File was opened and currently writing + SSH_SCP_READ_INITED, //Gave our intention to read + SSH_SCP_READ_READING, //File is opened and reading + SSH_SCP_ERROR //Something bad happened +}; struct ssh_scp_struct { ssh_session session; int mode; ssh_channel channel; char *location; + enum ssh_scp_states state; size_t filelen; size_t processed; }; -- cgit