aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Riordan <mriordan@ipswitch.com>2011-04-07 16:40:39 -0500
committerAndreas Schneider <asn@cryptomilk.org>2011-04-15 16:18:26 +0200
commit96d5f13813367a632020846b1f0f3fb1456e03a1 (patch)
tree5af3e961f09f7a6fd05d84cc92f5414a9fc1a337 /include
parent3a77f2aebe7161125f5bad10a7c6a9a71ff471a5 (diff)
downloadlibssh-96d5f13813367a632020846b1f0f3fb1456e03a1.tar.gz
libssh-96d5f13813367a632020846b1f0f3fb1456e03a1.tar.xz
libssh-96d5f13813367a632020846b1f0f3fb1456e03a1.zip
scp: Support huge files by changing size to 64-bit type.
Signed-off-by: Mark Riordan <mriordan@ipswitch.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h3
-rw-r--r--include/libssh/scp.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 3391ed15..5137cbb3 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -430,10 +430,11 @@ LIBSSH_API ssh_scp ssh_scp_new(ssh_session session, int mode, const char *locati
LIBSSH_API int ssh_scp_pull_request(ssh_scp scp);
LIBSSH_API int ssh_scp_push_directory(ssh_scp scp, const char *dirname, int mode);
LIBSSH_API int ssh_scp_push_file(ssh_scp scp, const char *filename, size_t size, int perms);
+LIBSSH_API int ssh_scp_push_file64(ssh_scp scp, const char *filename, uint64_t size, int perms);
LIBSSH_API int ssh_scp_read(ssh_scp scp, void *buffer, size_t size);
LIBSSH_API const char *ssh_scp_request_get_filename(ssh_scp scp);
LIBSSH_API int ssh_scp_request_get_permissions(ssh_scp scp);
-LIBSSH_API size_t ssh_scp_request_get_size(ssh_scp scp);
+LIBSSH_API uint64_t ssh_scp_request_get_size(ssh_scp scp);
LIBSSH_API const char *ssh_scp_request_get_warning(ssh_scp scp);
LIBSSH_API int ssh_scp_write(ssh_scp scp, const void *buffer, size_t len);
LIBSSH_API int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd,
diff --git a/include/libssh/scp.h b/include/libssh/scp.h
index 346c98b6..d4fa42be 100644
--- a/include/libssh/scp.h
+++ b/include/libssh/scp.h
@@ -40,8 +40,8 @@ struct ssh_scp_struct {
ssh_channel channel;
char *location;
enum ssh_scp_states state;
- size_t filelen;
- size_t processed;
+ uint64_t filelen;
+ uint64_t processed;
enum ssh_scp_request_types request_type;
char *request_name;
char *warning;