[sshconnect2.c]
     reorder default sequence of userauth methods to match ssh behaviour:
     hostbased,publickey,keyboard-interactive,password
This commit is contained in:
Ben Lindstrom 2001-08-06 20:57:11 +00:00
parent c8e29ceb68
commit 45350e8374
2 changed files with 14 additions and 10 deletions

View File

@ -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 $

View File

@ -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,