aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOleksandr Shneyder <o.shneyder@phoca-gmbh.de>2014-01-11 00:33:33 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-01-16 09:13:57 +0100
commit634671db11a3144f1abd900ee30231d7c9a51064 (patch)
tree1a52c2ce741bdd119965eb9dc09f8a23f652e038 /include
parent1f689261eca006dfe11d7fd220218209a8d4d190 (diff)
downloadlibssh-634671db11a3144f1abd900ee30231d7c9a51064.tar.gz
libssh-634671db11a3144f1abd900ee30231d7c9a51064.tar.xz
libssh-634671db11a3144f1abd900ee30231d7c9a51064.zip
channel: Add ssh_channel_accept_forward().
This works same way as ssh_forward_accept() but can return a destination port of the channel (useful if SSH connection forwarding several TCP/IP ports). Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 46aafae1..2b125f23 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -406,6 +406,7 @@ LIBSSH_API void ssh_disconnect(ssh_session session);
LIBSSH_API char *ssh_dirname (const char *path);
LIBSSH_API int ssh_finalize(void);
LIBSSH_API ssh_channel ssh_forward_accept(ssh_session session, int timeout_ms);
+LIBSSH_API ssh_channel ssh_channel_accept_forward(ssh_session session, int timeout_ms, int *destination_port);
LIBSSH_API int ssh_forward_cancel(ssh_session session, const char *address, int port);
LIBSSH_API int ssh_forward_listen(ssh_session session, const char *address, int port, int *bound_port);
LIBSSH_API void ssh_free(ssh_session session);