aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/sftp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/sftp.h')
-rw-r--r--include/libssh/sftp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index 22960e2c..428737f9 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -30,6 +30,7 @@ typedef struct sftp_session_struct {
SSH_SESSION *session;
CHANNEL *channel;
int server_version;
+ int client_version;
struct request_queue *queue;
u32 id_counter;
} SFTP_SESSION ;
@@ -138,6 +139,12 @@ int sftp_rename(SFTP_SESSION *sftp, char *original, char *newname);
int sftp_setstat(SFTP_SESSION *sftp, char *file, SFTP_ATTRIBUTES *attr);
char *sftp_canonicalize_path(SFTP_SESSION *sftp, char *path);
+#ifndef NO_SERVER
+SFTP_SESSION *sftp_server_new(SSH_SESSION *session, CHANNEL *chan);
+int sftp_server_init(SFTP_SESSION *sftp);
+#endif
+
+
/* SFTP commands and constants */
#define SSH_FXP_INIT 1
#define SSH_FXP_VERSION 2