diff options
Diffstat (limited to 'libssh/scp.c')
-rw-r--r-- | libssh/scp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh/scp.c b/libssh/scp.c index 9035c44..e4cb348 100644 --- a/libssh/scp.c +++ b/libssh/scp.c @@ -266,3 +266,12 @@ int ssh_scp_write(ssh_scp scp, const void *buffer, size_t len){ } return SSH_OK; } + +ssh_scp_request ssh_scp_request_new(void){ + ssh_scp_request r=malloc(sizeof(struct ssh_scp_request_struct)); + if(r==NULL) + return NULL; + ZERO_STRUCTP(r); + return r; +} + |