diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-10-04 11:47:26 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-10-04 11:47:26 +0200 |
commit | d7c0270c89777e2ad74ad11a1bac4c0d06d2a940 (patch) | |
tree | 18202db012dbfd02cfe4130e1ccd695429ef2ef8 /libssh/auth1.c | |
parent | 7a37f9faf788897ce7bf44a65f828d4980d19c77 (diff) | |
download | libssh-d7c0270c89777e2ad74ad11a1bac4c0d06d2a940.tar.gz libssh-d7c0270c89777e2ad74ad11a1bac4c0d06d2a940.tar.xz libssh-d7c0270c89777e2ad74ad11a1bac4c0d06d2a940.zip |
Fixed SSHv1 to work with the option changes.
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r-- | libssh/auth1.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c index 36db5b1d..c3d5b3f4 100644 --- a/libssh/auth1.c +++ b/libssh/auth1.c @@ -21,6 +21,8 @@ * MA 02111-1307, USA. */ +#include "config.h" + #include <string.h> #include <stdlib.h> @@ -30,7 +32,6 @@ #include "libssh/packet.h" #include "libssh/session.h" #include "libssh/string.h" -#include "libssh/options.h" #ifdef WITH_SSH1 static int wait_auth1_status(ssh_session session) { @@ -64,11 +65,11 @@ static int send_username(ssh_session session, const char *username) { } if (!username) { - if(!(username = session->options->username)) { - if (ssh_options_set(session->options, SSH_OPTIONS_USER, NULL) < 0) { + if(!(username = session->username)) { + if (ssh_options_set(session, SSH_OPTIONS_USER, NULL) < 0) { return session->auth_service_asked = SSH_AUTH_ERROR; } else { - username = session->options->username; + username = session->username; } } } |