diff options
author | Chris Townsend <christopher.townsend@canonical.com> | 2018-09-05 10:51:38 -0500 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-09-20 16:35:13 +0200 |
commit | 6c56c1e0d72670da274f3e77c51a7b4e078d59c6 (patch) | |
tree | 5b345b383fac177e07d5a383ca90fddd6c90ce43 /include/libssh/sftp.h | |
parent | e4711c469f1247c26e069d9d25f1669cb051bd27 (diff) | |
download | libssh-6c56c1e0d72670da274f3e77c51a7b4e078d59c6.tar.gz libssh-6c56c1e0d72670da274f3e77c51a7b4e078d59c6.tar.xz libssh-6c56c1e0d72670da274f3e77c51a7b4e078d59c6.zip |
sftpserver: Support some openssh extensions
Add support for "hardlink@openssh.com" and
"posix-rename@openssh.com" extensions.
Signed-off-by: Chris Townsend <christopher.townsend@canonical.com>
Signed-off-by: Alberto Aguirre <albaguirre@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/sftp.h')
-rw-r--r-- | include/libssh/sftp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index eeb4e615..b18bdc48 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -135,6 +135,7 @@ struct sftp_client_message_struct { ssh_string data; /* can be newpath of rename() */ ssh_buffer complete_message; /* complete message in case of retransmission*/ char *str_data; /* cstring version of data */ + char *submessage; /* for extended messages */ }; struct sftp_request_queue_struct { @@ -863,6 +864,7 @@ LIBSSH_API const char *sftp_client_message_get_filename(sftp_client_message msg) LIBSSH_API void sftp_client_message_set_filename(sftp_client_message msg, const char *newname); LIBSSH_API const char *sftp_client_message_get_data(sftp_client_message msg); LIBSSH_API uint32_t sftp_client_message_get_flags(sftp_client_message msg); +LIBSSH_API const char *sftp_client_message_get_submessage(sftp_client_message msg); LIBSSH_API int sftp_send_client_message(sftp_session sftp, sftp_client_message msg); LIBSSH_API int sftp_reply_name(sftp_client_message msg, const char *name, sftp_attributes attr); @@ -1012,6 +1014,7 @@ LIBSSH_API void sftp_handle_remove(sftp_session sftp, void *handle); #define SFTP_RENAME SSH_FXP_RENAME #define SFTP_READLINK SSH_FXP_READLINK #define SFTP_SYMLINK SSH_FXP_SYMLINK +#define SFTP_EXTENDED SSH_FXP_EXTENDED /* openssh flags */ #define SSH_FXE_STATVFS_ST_RDONLY 0x1 /* read-only */ |