diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-07-23 09:06:29 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-07-23 09:06:29 +0000 |
commit | 3e605c46d6cd506ae661a7549eb98c5107598cca (patch) | |
tree | 8b56dc9f22af061daf265be88486dc5494560927 /usr.bin/ssh/sshconnect2.c | |
parent | 648b01807d14ae4fefb3ea44a0061bf4187d9850 (diff) |
reorder default sequence of userauth methods to match ssh behaviour:
hostbased,publickey,keyboard-interactive,password
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index 2e2452801c6..a86d0036b70 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect2.c,v 1.80 2001/06/26 20:14:11 markus Exp $"); +RCSID("$OpenBSD: sshconnect2.c,v 1.81 2001/07/23 09:06:28 markus Exp $"); #include <openssl/bn.h> #include <openssl/md5.h> @@ -195,22 +195,22 @@ static Authmethod *authmethod_lookup(const char *name); static char *authmethods_get(void); Authmethod authmethods[] = { - {"publickey", - userauth_pubkey, - &options.pubkey_authentication, - NULL}, {"hostbased", userauth_hostbased, &options.hostbased_authentication, NULL}, - {"password", - userauth_passwd, - &options.password_authentication, - &options.batch_mode}, + {"publickey", + userauth_pubkey, + &options.pubkey_authentication, + NULL}, {"keyboard-interactive", userauth_kbdint, &options.kbd_interactive_authentication, &options.batch_mode}, + {"password", + userauth_passwd, + &options.password_authentication, + &options.batch_mode}, {"none", userauth_none, NULL, |