diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-17 15:51:07 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-17 15:51:07 +0000 |
commit | 329136e076f780d858995169f42ba96fa351841f (patch) | |
tree | 4daa3585261c1adb94c74e4cec8521fb079ac32b /lib/libskey/skeylogin.c | |
parent | 6be8eda367204d1911e1cc36151140e569f60dc7 (diff) |
Remove skeyzero(), it is no longer needed.
Diffstat (limited to 'lib/libskey/skeylogin.c')
-rw-r--r-- | lib/libskey/skeylogin.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/lib/libskey/skeylogin.c b/lib/libskey/skeylogin.c index 05a7e6c7b29..10252db5c8d 100644 --- a/lib/libskey/skeylogin.c +++ b/lib/libskey/skeylogin.c @@ -10,7 +10,7 @@ * * S/Key verification check, lookups, and authentication. * - * $OpenBSD: skeylogin.c,v 1.43 2002/05/16 17:09:01 millert Exp $ + * $OpenBSD: skeylogin.c,v 1.44 2002/05/17 15:51:06 millert Exp $ */ #include <sys/param.h> @@ -561,33 +561,6 @@ skey_authenticate(username) } /* - * Comment out user's entry in the S/Key database - * - * Return codes: - * -1: Write error; database unchanged - * 0: Database updated - * - * The database file is always closed by this call. - * XXX - do we still need this function? - */ -int -skeyzero(mp) - struct skey *mp; -{ - int rval; - - /* - * We truncate the file rather than unlinking it since we - * may not have write perms on the directory. - */ - fflush(mp->keyfile); - rval = ftruncate(fileno(mp->keyfile), (off_t)0); - (void)fclose(mp->keyfile); - mp->keyfile = NULL; - return (rval); -} - -/* * Unlock current entry in the One-time Password database. * * Return codes: |