aboutsummaryrefslogtreecommitdiff
path: root/src/legacy.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-01-16 09:06:56 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-01-16 09:13:06 +0100
commit5229253f8684026b01db4cc6cdf3c149a6358984 (patch)
tree221ba7585ac8e2999520b7bbd74325cbc156ee1d /src/legacy.c
parenta1c4fc07d43fb7a7e1e91bfdadbd3dc62b8ce462 (diff)
downloadlibssh-5229253f8684026b01db4cc6cdf3c149a6358984.tar.gz
libssh-5229253f8684026b01db4cc6cdf3c149a6358984.tar.xz
libssh-5229253f8684026b01db4cc6cdf3c149a6358984.zip
channel: Fix the name scheme of the forward functions.
Diffstat (limited to 'src/legacy.c')
-rw-r--r--src/legacy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/legacy.c b/src/legacy.c
index 6e7bfffc..c98f3e0c 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -163,7 +163,7 @@ int channel_change_pty_size(ssh_channel channel,int cols,int rows){
}
ssh_channel channel_forward_accept(ssh_session session, int timeout_ms){
- return ssh_forward_accept(session,timeout_ms);
+ return ssh_channel_accept_forward(session, timeout_ms, NULL);
}
int channel_close(ssh_channel channel){
@@ -171,12 +171,12 @@ int channel_close(ssh_channel channel){
}
int channel_forward_cancel(ssh_session session, const char *address, int port){
- return ssh_forward_cancel(session, address, port);
+ return ssh_channel_cancel_forward(session, address, port);
}
int channel_forward_listen(ssh_session session, const char *address,
int port, int *bound_port){
- return ssh_forward_listen(session, address, port, bound_port);
+ return ssh_channel_listen_forward(session, address, port, bound_port);
}
void channel_free(ssh_channel channel){