diff options
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 8 |
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; } |