aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-03-11 10:30:15 +0000
committerAndreas Schneider <mail@cynapses.org>2009-03-11 10:30:15 +0000
commiteced7fb95888143d3307b4d87ab9c1390437907a (patch)
tree59ab2f56709e1d10c1c822632e7e9333477920eb
parent1486d844e7054b446a5f1882f123e05e291d5dd1 (diff)
downloadlibssh-eced7fb95888143d3307b4d87ab9c1390437907a.tar.gz
libssh-eced7fb95888143d3307b4d87ab9c1390437907a.tar.xz
libssh-eced7fb95888143d3307b4d87ab9c1390437907a.zip
Replace ssh_say with ssh_log.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@261 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r--libssh/server.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libssh/server.c b/libssh/server.c
index 5000118c..6b34be36 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -144,7 +144,6 @@ SSH_SESSION *ssh_bind_accept(SSH_BIND *ssh_bind){
dsa=_privatekey_from_file(ssh_bind,ssh_bind->options->dsakey,TYPE_DSS);
if(!dsa)
return NULL;
- ssh_say(2,"Dsa private key read successfuly\n");
}
if(ssh_bind->options->rsakey){
rsa=_privatekey_from_file(ssh_bind,ssh_bind->options->rsakey,TYPE_RSA);
@@ -153,7 +152,6 @@ SSH_SESSION *ssh_bind_accept(SSH_BIND *ssh_bind){
private_key_free(dsa);
return NULL;
}
- ssh_say(2,"RSA private key read successfuly\n");
}
fd = accept(ssh_bind->bindfd, NULL, NULL);
if(fd<0){
@@ -271,10 +269,10 @@ static int dh_handshake_server(SSH_SESSION *session){
free(f);
buffer_add_u8(session->out_buffer,SSH2_MSG_NEWKEYS);
packet_send(session);
- ssh_say(2,"SSH_MSG_NEWKEYS sent\n");
+ ssh_log(session, SSH_LOG_PACKET, "SSH_MSG_NEWKEYS sent");
packet_wait(session,SSH2_MSG_NEWKEYS,1);
- ssh_say(2,"Got SSH_MSG_NEWKEYS\n");
+ ssh_log(session, SSH_LOG_PACKET, "Got SSH_MSG_NEWKEYS");
generate_session_keys(session);
/* once we got SSH2_MSG_NEWKEYS we can switch next_crypto and current_crypto */
if(session->current_crypto)