aboutsummaryrefslogtreecommitdiff
path: root/libssh/wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/wrapper.c')
-rw-r--r--libssh/wrapper.c12
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;
}