diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-16 23:02:49 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-16 23:02:49 +0000 |
commit | 77603dbc5a5c55ecfa8d583c133db844673fb690 (patch) | |
tree | 96c4ad653c74e1d53791f4a73c49d43cdcb58359 /libssh/auth1.c | |
parent | 5367581ce1d52518343bb8ede60738f4035e033a (diff) | |
download | libssh-77603dbc5a5c55ecfa8d583c133db844673fb690.tar.gz libssh-77603dbc5a5c55ecfa8d583c133db844673fb690.tar.xz libssh-77603dbc5a5c55ecfa8d583c133db844673fb690.zip |
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
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r-- | libssh/auth1.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c index 865f2257..7844d9ba 100644 --- a/libssh/auth1.c +++ b/libssh/auth1.c @@ -1,6 +1,6 @@ /* auth1.c deals with authentication with SSH-1 protocol */ /* -Copyright 2005 Aris Adamantiadis +Copyright (c) 2005-2008 Aris Adamantiadis This file is part of the SSH Library @@ -52,7 +52,6 @@ static int send_username(SSH_SESSION *session, char *username){ /* returns SSH_AUTH_SUCCESS or SSH_AUTH_DENIED */ if(session->auth_service_asked) return session->auth_service_asked; - packet_clear_out(session); buffer_add_u8(session->out_buffer,SSH_CMSG_USER); if(!username) if(!(username=session->options->username)){ @@ -192,7 +191,6 @@ int ssh_userauth1_password(SSH_SESSION *session,char *username,char *password){ strcpy((char *)password_s->string,password); } - packet_clear_out(session); buffer_add_u8(session->out_buffer,SSH_CMSG_AUTH_PASSWORD); buffer_add_ssh_string(session->out_buffer,password_s); string_burn(password_s); |