diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-18 10:08:20 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-18 10:08:20 +0000 |
commit | 56602ca031726a7682de3164b8f7f3da4881f7bb (patch) | |
tree | c524a0bec36899fda5c0ce90345ec8acab62a15c /libssh/sftp.c | |
parent | f730d3b361f717135786bddb3c949bfae213bbff (diff) | |
download | libssh-56602ca031726a7682de3164b8f7f3da4881f7bb.tar.gz libssh-56602ca031726a7682de3164b8f7f3da4881f7bb.tar.xz libssh-56602ca031726a7682de3164b8f7f3da4881f7bb.zip |
More work on the server side and sftp.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@9 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r-- | libssh/sftp.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c index 4135e5bc..8e293e19 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -2,7 +2,7 @@ /* don't look further if you believe this is just FTP over some tunnel. It IS different */ /* This file contains code written by Nick Zitzmann */ /* -Copyright 2003 Aris Adamantiadis +Copyright 2003-2005 Aris Adamantiadis This file is part of the SSH Library @@ -60,6 +60,16 @@ SFTP_SESSION *sftp_new(SSH_SESSION *session){ return sftp; } +#ifndef NO_SERVER +SFTP_SESSION *sftp_server_new(SSH_SESSION *session, CHANNEL *chan){ + SFTP_SESSION *sftp=malloc(sizeof(SFTP_SESSION)); + memset(sftp,0,sizeof(SFTP_SESSION)); + sftp->session=session; + sftp->channel=chan; + return sftp; +} +#endif + void sftp_free(SFTP_SESSION *sftp){ struct request_queue *ptr; channel_send_eof(sftp->channel); |