aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorDavid Wedderwille <davidwe@posteo.de>2019-04-24 11:37:26 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-04-29 13:17:24 +0200
commitcc536377f9711d9883678efe4fcf4cb6449c3b1a (patch)
tree93689a907e5ab9f1af48849922aa692e2f0544c6 /include/libssh
parent643ca67f88817b0176827554cc209033b1d9e35b (diff)
downloadlibssh-cc536377f9711d9883678efe4fcf4cb6449c3b1a.tar.gz
libssh-cc536377f9711d9883678efe4fcf4cb6449c3b1a.tar.xz
libssh-cc536377f9711d9883678efe4fcf4cb6449c3b1a.zip
sftp server: Implementation of sftp_server_free() as counterpart to sftp_server_new()
Fixes T143 Signed-off-by: David Wedderwille <davidwe@posteo.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include/libssh')
-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 3750e0c6..774a4bac 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -853,6 +853,13 @@ LIBSSH_API sftp_session sftp_server_new(ssh_session session, ssh_channel chan);
* @return 0 on success, < 0 on error.
*/
LIBSSH_API int sftp_server_init(sftp_session sftp);
+
+/**
+ * @brief Close and deallocate a sftp server session.
+ *
+ * @param sftp The sftp session handle to free.
+ */
+LIBSSH_API void sftp_server_free(sftp_session sftp);
#endif /* WITH_SERVER */
/* this is not a public interface */