From 6a04b43a45896822732dedec1a4a2d972fbb9b80 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 23 Aug 2009 15:23:48 +0200 Subject: added ssh_scp_request_new,ssh_scp_request_struct --- libssh/scp.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libssh') 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; +} + -- cgit