diff options
author | 2002-05-17 15:51:06 +0000 | |
---|---|---|
committer | 2002-05-17 15:51:06 +0000 | |
commit | ddf098e00288ee309adb4cc31dabc3a6246400a6 (patch) | |
tree | b774369c2cbec348b9fbe274c69cbec5cb1ffdc9 | |
parent | The standard way to get info on symlinks is -L, not -h; Peter Werner (diff) | |
download | wireguard-openbsd-ddf098e00288ee309adb4cc31dabc3a6246400a6.tar.xz wireguard-openbsd-ddf098e00288ee309adb4cc31dabc3a6246400a6.zip |
Remove skeyzero(), it is no longer needed.
-rw-r--r-- | lib/libskey/skey.3 | 19 | ||||
-rw-r--r-- | lib/libskey/skeylogin.c | 29 |
2 files changed, 3 insertions, 45 deletions
diff --git a/lib/libskey/skey.3 b/lib/libskey/skey.3 index 11540cf1706..b4bcd8fa9c4 100644 --- a/lib/libskey/skey.3 +++ b/lib/libskey/skey.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: skey.3,v 1.4 2002/05/16 03:50:42 millert Exp $ +.\" $OpenBSD: skey.3,v 1.5 2002/05/17 15:51:06 millert Exp $ .\" .\" Copyright (c) 2001 Todd C. Miller <Todd.Miller@courtesan.com> .\" All rights reserved. @@ -53,7 +53,6 @@ .Nm skeygetnext, .Nm skeylookup, .Nm skeyverify, -.Nm skeyzero, .Nm skipspace .Nd S/Key library functions .Sh SYNOPSIS @@ -106,8 +105,6 @@ .Fn skeylookup "struct skey *rec" "char *user" .Ft int .Fn skeyverify "struct skey *rec" "char *response" -.Ft int -.Fn skeyzero "struct skey *" .Ft char * .Fn skipspace "char *" .Sh DESCRIPTION @@ -362,17 +359,6 @@ It returns 0 on success (updating the database), 1 on failure, or -1 if there was an error accessing the database. The database is always closed by a call to .Fn skeyverify . -.Pp -The -.Fn skeyzero -function zeroes out the entry in the S/Key database specified by -.Fa rec . -The -.Fn skeyzero -function returns 0 on success and -1 if there was an error updating -the database. -The S/Key database is always closed by a call to -.Fn skeyzero . .Sh SEE ALSO .Xr skey 1 , .Xr skeyinit 1 @@ -389,7 +375,6 @@ the original Bellcore S/Key distribution: .Fn skey_keyinfo , .Fn skey_passcheck , .Fn skey_set_algorithm , -.Fn skey_unlock , -.Fn skeyzero . +.Fn skey_unlock . .Pp S/Key is a Trademark of Bellcore. 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: |