ssh_scp_push_file and ssh_scp_write

still needs tests
This commit is contained in:
Aris Adamantiadis
2009-08-09 22:51:03 +02:00
parent e4da8b99fe
commit f92e12c7b0
5 changed files with 62 additions and 3 deletions

View File

@@ -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
}

View File

@@ -347,6 +347,8 @@ struct ssh_scp_struct {
int mode;
ssh_channel channel;
char *location;
size_t filelen;
size_t processed;
};
struct ssh_message;