From eced7fb95888143d3307b4d87ab9c1390437907a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 11 Mar 2009 10:30:15 +0000 Subject: Replace ssh_say with ssh_log. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@261 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/server.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libssh') 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) -- cgit v1.2.3