From e7b74c57f30c097f78c42dde0726825941b906a2 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 25 Jan 2010 23:23:01 +0100 Subject: Hacked SSH1 to get past authentication Also resolved some bugs that may impact 0.4. need to check --- libssh/auth.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libssh/auth.c') diff --git a/libssh/auth.c b/libssh/auth.c index aea7b60..b89f57d 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -234,7 +234,11 @@ int ssh_auth_list(ssh_session session) { if (session == NULL) { return -1; } - +#ifdef WITH_SSH1 + if(session->version==1){ + return SSH_AUTH_METHOD_PASSWORD; + } +#endif return session->auth_methods; } @@ -275,7 +279,7 @@ int ssh_userauth_none(ssh_session session, const char *username) { #ifdef WITH_SSH1 if (session->version == 1) { - ssh_userauth1_none(session, username); + rc = ssh_userauth1_none(session, username); leave_function(); return rc; } -- cgit