=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-passwd.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/ssh/auth2-passwd.c 2002/05/25 18:51:07 1.1 +++ src/usr.bin/ssh/auth2-passwd.c 2002/05/31 11:35:15 1.2 @@ -23,15 +23,19 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth2-passwd.c,v 1.1 2002/05/25 18:51:07 markus Exp $"); +RCSID("$OpenBSD: auth2-passwd.c,v 1.2 2002/05/31 11:35:15 markus Exp $"); #include "xmalloc.h" #include "packet.h" #include "log.h" #include "auth.h" #include "monitor_wrap.h" +#include "servconf.h" -int +/* import */ +extern ServerOptions options; + +static int userauth_passwd(Authctxt *authctxt) { char *password; @@ -50,3 +54,9 @@ xfree(password); return authenticated; } + +Authmethod method_passwd = { + "password", + userauth_passwd, + &options.password_authentication +};