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:24:27 +0200 |
commit | 361940a5d77564507d789220cfd60586518bac08 (patch) | |
tree | 78439a53c7a85ce3a0b10af579813aa2d9a5769b | |
parent | 2721cbc8ee297d39ba5f67ded96bf32699194262 (diff) | |
download | libssh-361940a5d77564507d789220cfd60586518bac08.tar.gz libssh-361940a5d77564507d789220cfd60586518bac08.tar.xz libssh-361940a5d77564507d789220cfd60586518bac08.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); } |