summaryrefslogtreecommitdiffstats
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-06 14:26:33 +0300
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-13 14:03:34 +0300
commit7ff80a2666fcdd0ee8dc897ce5ea665a4faed681 (patch)
tree36d3d460ef90810f672d35be846e885988cb46d3 /include/libssh/priv.h
parent480dfd905004bdbba339898d6f134ea70b531367 (diff)
downloadlibssh-7ff80a2666fcdd0ee8dc897ce5ea665a4faed681.tar.gz
libssh-7ff80a2666fcdd0ee8dc897ce5ea665a4faed681.tar.xz
libssh-7ff80a2666fcdd0ee8dc897ce5ea665a4faed681.zip
Add better error detection + EOF request
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 8e1c724..7645c43 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -358,7 +358,8 @@ enum ssh_scp_states {
SSH_SCP_READ_INITED, //Gave our intention to read
SSH_SCP_READ_REQUESTED, //We got a read request
SSH_SCP_READ_READING, //File is opened and reading
- SSH_SCP_ERROR //Something bad happened
+ SSH_SCP_ERROR, //Something bad happened
+ SSH_SCP_TERMINATED //Transfer finished
};
struct ssh_scp_struct {
@@ -866,6 +867,7 @@ int ssh_execute_message_callbacks(SSH_SESSION *session);
int ssh_scp_read_string(ssh_scp scp, char *buffer, size_t len);
int ssh_scp_integer_mode(const char *mode);
char *ssh_scp_string_mode(int mode);
+int ssh_scp_response(ssh_scp scp, char **response);
/* log.c */