=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lock/lock.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/lock/lock.c 1997/07/27 21:47:07 1.10 --- src/usr.bin/lock/lock.c 1999/03/06 20:19:19 1.11 *************** *** 1,4 **** ! /* $OpenBSD: lock.c,v 1.10 1997/07/27 21:47:07 millert Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: lock.c,v 1.11 1999/03/06 20:19:19 millert Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* *************** *** 47,53 **** #if 0 static char sccsid[] = "@(#)lock.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: lock.c,v 1.10 1997/07/27 21:47:07 millert Exp $"; #endif /* not lint */ /* --- 47,53 ---- #if 0 static char sccsid[] = "@(#)lock.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: lock.c,v 1.11 1999/03/06 20:19:19 millert Exp $"; #endif /* not lint */ /* *************** *** 71,76 **** --- 71,77 ---- #include #include #include + #include #ifdef SKEY #include *************** *** 103,108 **** --- 104,110 ---- int ch, sectimeout, usemine; char *ap, *mypw, *ttynam, *tzn; char hostname[MAXHOSTNAMELEN], s[BUFSIZ], s1[BUFSIZ]; + login_cap_t *lc = NULL; sectimeout = TIMEOUT; mypw = NULL; *************** *** 213,220 **** --- 215,232 ---- break; } #endif + #if 0 if (!strcmp(mypw, crypt(s, mypw))) break; + #else + lc = login_getpwclass(pw); + if (lc->lc_style == NULL) + lc->lc_style = login_getstyle(lc, NULL, "login"); + if ((ch = auth_response(pw->pw_name, lc->lc_class, + lc->lc_style, "response", NULL, "", s)) > 0) + break; + warnx("auth_response returned %d", ch); + #endif } else if (!strcmp(s, s1)) break;