From 77603dbc5a5c55ecfa8d583c133db844673fb690 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 16 Jun 2008 23:02:49 +0000 Subject: Big changes : refactoring of the socket class. Now the buffering happens in the socket class. enhanced the logging system. Cleaned up some debugging messages. Verified the working with ssh-1. If this cleanup introduced bugs (it did but corrected the found ones) at least, they will be easier to find also added the (c) and fixed dates for updated files git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@169 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libssh/server.c') diff --git a/libssh/server.c b/libssh/server.c index ee9f6d4a..58fbb615 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -163,7 +163,7 @@ SSH_SESSION *ssh_bind_accept(SSH_BIND *ssh_bind){ session=ssh_new(); session->server=1; session->version=2; - session->socket=ssh_socket_new(); + session->socket=ssh_socket_new(session); ssh_socket_set_fd(session->socket,fd); session->options=ssh_options_copy(ssh_bind->options); session->dsa_key=dsa; @@ -260,7 +260,6 @@ static int dh_handshake_server(SSH_SESSION *session){ free(sign); packet_send(session); free(f); - packet_clear_out(session); buffer_add_u8(session->out_buffer,SSH2_MSG_NEWKEYS); packet_send(session); ssh_say(2,"SSH_MSG_NEWKEYS sent\n"); -- cgit