diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-12 20:40:43 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-12 20:40:43 +0000 |
commit | da3d665a13e7989a9cf78d07738a92981f6e3486 (patch) | |
tree | d75038a70977204b74b610417379588436001c86 /libssh/wrapper.c | |
parent | fe51f9c7662b7391f80953bedc4fe61b89013913 (diff) | |
download | libssh-da3d665a13e7989a9cf78d07738a92981f6e3486.tar.gz libssh-da3d665a13e7989a9cf78d07738a92981f6e3486.tar.xz libssh-da3d665a13e7989a9cf78d07738a92981f6e3486.zip |
begin fixing the ssh_say everywhere
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@167 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/wrapper.c')
-rw-r--r-- | libssh/wrapper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libssh/wrapper.c b/libssh/wrapper.c index 366455d2..b5906ff6 100644 --- a/libssh/wrapper.c +++ b/libssh/wrapper.c @@ -466,7 +466,7 @@ static int crypt_set_algorithms2(SSH_SESSION *session){ ssh_set_error(session,SSH_FATAL,"Crypt_set_algorithms2 : no crypto algorithm function found for %s",wanted); return SSH_ERROR; } - ssh_say(2,"Set output algorithm %s\n",wanted); + ssh_log(session,SSH_LOG_PACKET,"Set output algorithm %s",wanted); session->next_crypto->out_cipher=cipher_new(i); i=0; /* in */ @@ -477,7 +477,7 @@ static int crypt_set_algorithms2(SSH_SESSION *session){ ssh_set_error(session,SSH_FATAL,"Crypt_set_algorithms : no crypto algorithm function found for %s",wanted); return SSH_ERROR; } - ssh_say(2,"Set input algorithm %s\n",wanted); + ssh_log(session,SSH_LOG_PACKET,"Set input algorithm %s",wanted); session->next_crypto->in_cipher=cipher_new(i); /* compression */ if(strstr(session->client_kex.methods[SSH_COMP_C_S],"zlib")) @@ -524,7 +524,7 @@ int crypt_set_algorithms_server(SSH_SESSION *session){ ssh_set_error(session,SSH_FATAL,"Crypt_set_algorithms_server : no crypto algorithm function found for %s",server); return SSH_ERROR; } - ssh_say(2,"Set output algorithm %s\n",match); + ssh_log(session,SSH_LOG_PACKET,"Set output algorithm %s",match); session->next_crypto->out_cipher=cipher_new(i); i=0; /* in */ @@ -541,14 +541,14 @@ int crypt_set_algorithms_server(SSH_SESSION *session){ ssh_set_error(session,SSH_FATAL,"Crypt_set_algorithms_server : no crypto algorithm function found for %s",server); return SSH_ERROR; } - ssh_say(2,"Set input algorithm %s\n",match); + ssh_log(session,SSH_LOG_PACKET,"Set input algorithm %s",match); session->next_crypto->in_cipher=cipher_new(i); /* compression */ client=session->client_kex.methods[SSH_CRYPT_C_S]; server=session->server_kex.methods[SSH_CRYPT_C_S]; match=ssh_find_matching(client,server); if(match && !strcmp(match,"zlib")){ - ssh_say(2,"enabling C->S compression\n"); + ssh_log(session,SSH_LOG_PACKET,"enabling C->S compression"); session->next_crypto->do_compress_in=1; } @@ -556,7 +556,7 @@ int crypt_set_algorithms_server(SSH_SESSION *session){ server=session->server_kex.methods[SSH_CRYPT_S_C]; match=ssh_find_matching(client,server); if(match && !strcmp(match,"zlib")){ - ssh_say(2,"enabling S->C compression\n"); + ssh_log(session,SSH_LOG_PACKET,"enabling S->C compression\n"); session->next_crypto->do_compress_out=1; } |