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:
Jakub Jelen 2022-06-03 12:59:00 +02:00
parent dd318aa1a1
commit 100017982d
3 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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;

View File

@ -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){