mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-24 19:37:48 +03:00
Avoid usage of deprecated functions and whitespace cleanup
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
@@ -189,7 +189,7 @@ int web_server(ssh_session session)
|
||||
return rc;
|
||||
}
|
||||
|
||||
channel = ssh_channel_open_forward_port(session, 60000, &port,
|
||||
channel = ssh_channel_open_forward_port(session, 60000, &port,
|
||||
&peer_address, &peer_port);
|
||||
if (channel == NULL)
|
||||
{
|
||||
|
||||
@@ -669,7 +669,7 @@ private:
|
||||
|
||||
inline Channel *Session::acceptForward(int timeout_ms){
|
||||
ssh_channel forward =
|
||||
ssh_channel_accept_forward(c_session, timeout_ms, NULL);
|
||||
ssh_channel_open_forward_port(c_session, timeout_ms, NULL, NULL, NULL);
|
||||
ssh_throw_null(c_session,forward);
|
||||
Channel *newchan = new Channel(*this,forward);
|
||||
return newchan;
|
||||
|
||||
@@ -164,7 +164,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_channel_accept_forward(session, timeout_ms, NULL);
|
||||
return ssh_channel_open_forward_port(session, timeout_ms, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
int channel_close(ssh_channel channel){
|
||||
|
||||
Reference in New Issue
Block a user