summaryrefslogtreecommitdiffstats
path: root/auth2-passwd.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--auth2-passwd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/auth2-passwd.c b/auth2-passwd.c
index cc12cfb..61f98c0 100644
--- a/auth2-passwd.c
+++ b/auth2-passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-passwd.c,v 1.21 2022/05/27 04:29:40 dtucker Exp $ */
+/* $OpenBSD: auth2-passwd.c,v 1.22 2024/05/17 00:30:23 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -47,6 +47,7 @@
/* import */
extern ServerOptions options;
+extern struct authmethod_cfg methodcfg_passwd;
static int
userauth_passwd(struct ssh *ssh, const char *method)
@@ -66,15 +67,13 @@ userauth_passwd(struct ssh *ssh, const char *method)
if (change)
logit("password change not supported");
- else if (PRIVSEP(auth_password(ssh, password)) == 1)
+ else if (mm_auth_password(ssh, password) == 1)
authenticated = 1;
freezero(password, len);
return authenticated;
}
Authmethod method_passwd = {
- "password",
- NULL,
+ &methodcfg_passwd,
userauth_passwd,
- &options.password_authentication
};