1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Sanitize libssh namespace + legacy wrappers

This commit is contained in:
Aris Adamantiadis
2010-05-14 00:51:08 +02:00
parent 46b249f5ce
commit b23b3f1d99
40 changed files with 1636 additions and 1311 deletions

View File

@@ -174,11 +174,11 @@ private:
class Channel {
public:
Channel(Session &session){
channel=channel_new(session.getCSession());
channel=ssh_channel_new(session.getCSession());
this->session=&session;
}
~Channel(){
channel_free(channel);
ssh_channel_free(channel);
channel=NULL;
}
int acceptX11(int timeout_ms);
@@ -223,7 +223,7 @@ public:
if(is_stderr){
ret=channel_write_stderr(channel,data,len);
} else {
ret=channel_write(channel,data,len);
ret=ssh_channel_write(channel,data,len);
}
if(ret==SSH_ERROR)
ssh_throw(ret);