diff options
author | Mike DePaulo <mikedep333@gmail.com> | 2015-05-15 22:22:13 -0400 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2015-05-29 11:23:31 +0200 |
commit | 8a4a22d7b7ff02e920b207f5bd519d83677470f2 (patch) | |
tree | 7aa417d0fb0aaca74062886e38c74f35d95e9892 | |
parent | 5eb7a6ca3869f28d41a410b4e5b16975679ca47f (diff) | |
download | libssh-8a4a22d7b7ff02e920b207f5bd519d83677470f2.tar.gz libssh-8a4a22d7b7ff02e920b207f5bd519d83677470f2.tar.xz libssh-8a4a22d7b7ff02e920b207f5bd519d83677470f2.zip |
Reintroduce ssh_forward_listen() (Fixes: #194)
Signed-off-by: Aris Adamantiadis <aris@badcode.be>
-rw-r--r-- | src/channels.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/channels.c b/src/channels.c index 7a4e71fe..db5f83a1 100644 --- a/src/channels.c +++ b/src/channels.c @@ -2206,6 +2206,11 @@ error: } /* DEPRECATED */ +int ssh_forward_listen(ssh_session session, const char *address, int port, int *bound_port) { + return ssh_channel_listen_forward(session, address, port, bound_port); +} + +/* DEPRECATED */ ssh_channel ssh_forward_accept(ssh_session session, int timeout_ms) { return ssh_channel_accept(session, SSH_CHANNEL_FORWARDED_TCPIP, timeout_ms, NULL); } |