From 9f37c0afa6bd739bac1b3785c900685dc5f27f52 Mon Sep 17 00:00:00 2001 From: mouring Date: Mon, 6 Aug 2001 20:57:11 +0000 Subject: [PATCH] - markus@cvs.openbsd.org 2001/07/23 09:06:28 [sshconnect2.c] reorder default sequence of userauth methods to match ssh behaviour: hostbased,publickey,keyboard-interactive,password --- ChangeLog | 4 ++++ sshconnect2.c | 18 +++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2a3824c4..c85b44fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,10 @@ - markus@cvs.openbsd.org 2001/07/22 22:24:16 [sshd.8] Xr login.conf + - markus@cvs.openbsd.org 2001/07/23 09:06:28 + [sshconnect2.c] + reorder default sequence of userauth methods to match ssh behaviour: + hostbased,publickey,keyboard-interactive,password 20010803 - (djm) Fix interrupted read in entropy gatherer. Spotted by markus@ on diff --git a/sshconnect2.c b/sshconnect2.c index 2e245280..a86d0036 100644 --- a/sshconnect2.c +++ b/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 #include @@ -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, -- 2.45.2