aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libsshpp.hpp
diff options
context:
space:
mode:
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);