From 45350e83746e958d3ee2a375fb3c9d8f79f61650 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Mon, 6 Aug 2001 20:57:11 +0000 Subject: - 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 | 6 +++++- sshconnect2.c | 18 +++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e61d6c6f..6935e528b 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 @@ -6123,4 +6127,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1429 2001/08/06 20:55:28 mouring Exp $ +$Id: ChangeLog,v 1.1430 2001/08/06 20:57:11 mouring Exp $ diff --git a/sshconnect2.c b/sshconnect2.c index 2e2452801..a86d0036b 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, -- cgit v1.2.3