1
1

Avoid usage of deprecated functions and whitespace cleanup

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Этот коммит содержится в:
Jakub Jelen 2022-06-03 12:59:00 +02:00
родитель dd318aa1a1
Коммит 100017982d
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

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