=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lock/lock.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/lock/lock.c 1999/03/06 20:19:19 1.11 +++ src/usr.bin/lock/lock.c 1999/03/06 20:27:40 1.12 @@ -1,4 +1,4 @@ -/* $OpenBSD: lock.c,v 1.11 1999/03/06 20:19:19 millert Exp $ */ +/* $OpenBSD: lock.c,v 1.12 1999/03/06 20:27:40 millert Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* @@ -47,7 +47,7 @@ #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 $"; +static char rcsid[] = "$OpenBSD: lock.c,v 1.12 1999/03/06 20:27:40 millert Exp $"; #endif /* not lint */ /* @@ -71,7 +71,6 @@ #include #include #include -#include #ifdef SKEY #include @@ -104,7 +103,6 @@ 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; @@ -215,18 +213,8 @@ 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;