summaryrefslogtreecommitdiffstats
path: root/include/libssh/libsshpp.hpp
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-14 00:51:08 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-14 00:51:08 +0200
commitb23b3f1d9951df3ea7cc074de40db04bdf0d3a1c (patch)
treed4fe8f4c4aa71c6cebe7d1d92dc25ea145d98cd1 /include/libssh/libsshpp.hpp
parent46b249f5ce552bba2e0a170cb0b8052b1419924b (diff)
downloadlibssh-b23b3f1d9951df3ea7cc074de40db04bdf0d3a1c.tar.gz
libssh-b23b3f1d9951df3ea7cc074de40db04bdf0d3a1c.tar.xz
libssh-b23b3f1d9951df3ea7cc074de40db04bdf0d3a1c.zip
Sanitize libssh namespace + legacy wrappers
Diffstat (limited to 'include/libssh/libsshpp.hpp')
-rw-r--r--include/libssh/libsshpp.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp
index 086e8e2..c3d93e2 100644
--- a/include/libssh/libsshpp.hpp
+++ b/include/libssh/libsshpp.hpp
@@ -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);