aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-01-25 23:23:01 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-01-25 23:23:01 +0100
commite7b74c57f30c097f78c42dde0726825941b906a2 (patch)
treec98fa084f181a9e8bd37b014e834df8b8ab9fb32 /libssh/auth.c
parentcfdd4296a8cec84ee31f4af996126b4a47cb8bc9 (diff)
downloadlibssh-e7b74c57f30c097f78c42dde0726825941b906a2.tar.gz
libssh-e7b74c57f30c097f78c42dde0726825941b906a2.tar.xz
libssh-e7b74c57f30c097f78c42dde0726825941b906a2.zip
Hacked SSH1 to get past authentication
Also resolved some bugs that may impact 0.4. need to check
Diffstat (limited to 'libssh/auth.c')
-rw-r--r--libssh/auth.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index aea7b60b..b89f57d0 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;
}