aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/sftp.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-08-26 16:04:49 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-08-26 16:04:49 +0000
commitc76e6e496d6065b8cb61c5ea25df6a38619cfdf4 (patch)
treecbd81a88b36e773c3dcf9f93e03e1f910afb50e3 /include/libssh/sftp.h
parent6fd3760797d74d0e4886029ac4f1c2d5a6369d35 (diff)
downloadlibssh-c76e6e496d6065b8cb61c5ea25df6a38619cfdf4.tar.gz
libssh-c76e6e496d6065b8cb61c5ea25df6a38619cfdf4.tar.xz
libssh-c76e6e496d6065b8cb61c5ea25df6a38619cfdf4.zip
file opening/reading works :).
I fixed the "longname" part of a stat (which makes the output for ls into openssh's sftp) it's possible to browse and open abritrary files. but no ACL yet git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@19 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/sftp.h')
-rw-r--r--include/libssh/sftp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index d4ac388e..e017b974 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -168,7 +168,7 @@ SFTP_PACKET *sftp_packet_read(SFTP_SESSION *sftp);
int sftp_packet_write(SFTP_SESSION *sftp,u8 type, BUFFER *payload);
void sftp_packet_free(SFTP_PACKET *packet);
void buffer_add_attributes(BUFFER *buffer, SFTP_ATTRIBUTES *attr);
-
+SFTP_ATTRIBUTES *sftp_parse_attr(SFTP_SESSION *session, BUFFER *buf,int expectname);
/* sftpserver.c */
SFTP_CLIENT_MESSAGE *sftp_get_client_message(SFTP_SESSION *sftp);
@@ -182,6 +182,7 @@ int sftp_reply_status(SFTP_CLIENT_MESSAGE *msg, u32 status, char *message);
int sftp_reply_names_add(SFTP_CLIENT_MESSAGE *msg, char *file, char *longname,
SFTP_ATTRIBUTES *attr);
int sftp_reply_names(SFTP_CLIENT_MESSAGE *msg);
+int sftp_reply_data(SFTP_CLIENT_MESSAGE *msg, void *data, int len);
void sftp_handle_remove(SFTP_SESSION *sftp, void *handle);
/* SFTP commands and constants */