From f92e12c7b0950666fbbe8a8fabc7258a831dbab1 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 9 Aug 2009 22:51:03 +0200 Subject: ssh_scp_push_file and ssh_scp_write still needs tests --- include/libssh/libssh.h | 3 ++- include/libssh/priv.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index b86eaf26..bf984448 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -436,7 +436,8 @@ ssh_scp ssh_scp_new(ssh_session session, int mode, const char *location); int ssh_scp_init(ssh_scp scp); int ssh_scp_close(ssh_scp scp); void ssh_scp_free(ssh_scp scp); - +int ssh_scp_push_file(ssh_scp scp, const char *filename, size_t size, const char *perms); +int ssh_scp_write(ssh_scp scp, const void *buffer, size_t len); #ifdef __cplusplus } diff --git a/include/libssh/priv.h b/include/libssh/priv.h index e5c102a8..4d65652d 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -347,6 +347,8 @@ struct ssh_scp_struct { int mode; ssh_channel channel; char *location; + size_t filelen; + size_t processed; }; struct ssh_message; -- cgit