aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-14 13:34:29 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-14 13:35:25 +0200
commite3b4f27aa999515727c64e5e78bc2eaccf93077f (patch)
tree268417c4e145ca53bf51d14b16a6a37b93d816e7 /examples
parentc64ec43eef8ec5a8b8a8f4c4c3216043aea8e08a (diff)
downloadlibssh-e3b4f27aa999515727c64e5e78bc2eaccf93077f.tar.gz
libssh-e3b4f27aa999515727c64e5e78bc2eaccf93077f.tar.xz
libssh-e3b4f27aa999515727c64e5e78bc2eaccf93077f.zip
examples: Remove ssh_log from ssh client example.
Diffstat (limited to 'examples')
-rw-r--r--examples/sample.c15
-rw-r--r--examples/sshnetcat.c8
2 files changed, 0 insertions, 23 deletions
diff --git a/examples/sample.c b/examples/sample.c
index 93634d80..1fd96364 100644
--- a/examples/sample.c
+++ b/examples/sample.c
@@ -229,8 +229,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
// we already looked for input from stdin. Now, we are looking for input from the channel
if(channel && ssh_channel_is_closed(channel)){
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
-
ssh_channel_free(channel);
channel=NULL;
channels[0]=NULL;
@@ -244,9 +242,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
return;
}
if(lus==0){
- ssh_log(session,SSH_LOG_RARE,"EOF received");
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
-
ssh_channel_free(channel);
channel=channels[0]=NULL;
} else
@@ -263,8 +258,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
return;
}
if(lus==0){
- ssh_log(session,SSH_LOG_RARE,"EOF received");
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
ssh_channel_free(channel);
channel=channels[0]=NULL;
} else
@@ -322,8 +315,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
}
}
if(channel && ssh_channel_is_closed(channel)){
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
-
ssh_channel_free(channel);
channel=NULL;
channels[0]=NULL;
@@ -337,9 +328,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
return;
}
if(lus==0){
- ssh_log(session,SSH_LOG_RARE,"EOF received");
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
-
ssh_channel_free(channel);
channel=channels[0]=NULL;
} else
@@ -356,8 +344,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
return;
}
if(lus==0){
- ssh_log(session,SSH_LOG_RARE,"EOF received");
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
ssh_channel_free(channel);
channel=channels[0]=NULL;
} else
@@ -461,7 +447,6 @@ static int client(ssh_session session){
if(auth != SSH_AUTH_SUCCESS){
return -1;
}
- ssh_log(session, SSH_LOG_FUNCTIONS, "Authentication success");
if(!cmds[0])
shell(session);
else
diff --git a/examples/sshnetcat.c b/examples/sshnetcat.c
index cad777bb..19f6500a 100644
--- a/examples/sshnetcat.c
+++ b/examples/sshnetcat.c
@@ -105,8 +105,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
}
}
if(channel && channel_is_closed(channel)){
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",channel_get_exit_status(channel));
-
channel_free(channel);
channel=NULL;
channels[0]=NULL;
@@ -120,9 +118,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
return;
}
if(lus==0){
- ssh_log(session,SSH_LOG_RARE,"EOF received\n");
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",channel_get_exit_status(channel));
-
channel_free(channel);
channel=channels[0]=NULL;
} else {
@@ -142,8 +137,6 @@ static void select_loop(ssh_session session,ssh_channel channel){
return;
}
if(lus==0){
- ssh_log(session,SSH_LOG_RARE,"EOF received\n");
- ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",channel_get_exit_status(channel));
channel_free(channel);
channel=channels[0]=NULL;
} else
@@ -202,7 +195,6 @@ static int client(ssh_session session){
if(auth != SSH_AUTH_SUCCESS){
return -1;
}
- ssh_log(session, SSH_LOG_FUNCTIONS, "Authentication success");
forwarding(session);
return 0;
}