OpenBSD CVS

CVS log for src/usr.bin/skeyinit/skeyinit.c


[BACK] Up to [local] / src / usr.bin / skeyinit

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.75 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:03 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Jan 25 00:19:26 2019 UTC (5 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

I am retiring my old email address;  replace it with my OpenBSD one.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Apr 26 12:42:51 2018 UTC (6 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.72: +2 -4 lines
Diff to previous 1.72 (colored)

Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.

ok deraadt@ krw@

Revision 1.72 / (download) - annotate - [select for diffs], Tue May 17 23:36:29 2016 UTC (8 years ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.71: +27 -28 lines
Diff to previous 1.71 (colored)

Refactor the handling of pledge and the optional user string: The three
way pledge introduced by millert@ in -r1.70 is now a two way pledge, one
for non-root and one for root.  This also ensures that root drops the
id promise in all cases early on.

This disentangling of the bits for root and non-root simplifies the code
paths in all cases.

ok millert@

Revision 1.71 / (download) - annotate - [select for diffs], Tue May 17 23:07:47 2016 UTC (8 years ago) by tb
Branch: MAIN
Changes since 1.70: +14 -14 lines
Diff to previous 1.70 (colored)

Move the code block that builds up a default seed further down in order
to reduce the noise in the next commit.  While there, fix the indent
level of a bit introduced in the previous commit.

ok millert@

Revision 1.70 / (download) - annotate - [select for diffs], Tue May 17 20:54:07 2016 UTC (8 years ago) by millert
Branch: MAIN
Changes since 1.69: +25 -7 lines
Diff to previous 1.69 (colored)

Fix "skeyinit username" run as root.  Also reduce the pledge
promise when run as root since we don't need proc or exec as
root.  OK tb@, earlier version OK deraadt@

Revision 1.69 / (download) - annotate - [select for diffs], Sun Feb 21 22:53:40 2016 UTC (8 years, 2 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.68: +20 -20 lines
Diff to previous 1.68 (colored)

Fix skeyinit -E by hoisting argument parsing and the call to enable_db()
above the calls to pledge(): /etc/skey wants to have its sticky bit.

ok deraadt@

Revision 1.68 / (download) - annotate - [select for diffs], Sun Nov 29 19:10:44 2015 UTC (8 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.67: +3 -2 lines
Diff to previous 1.67 (colored)

wrap long line

Revision 1.67 / (download) - annotate - [select for diffs], Sun Nov 29 14:51:35 2015 UTC (8 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.66: +5 -2 lines
Diff to previous 1.66 (colored)

Drop pledge proc exec getpw after authenticating.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Nov 29 14:44:20 2015 UTC (8 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.65: +1 -4 lines
Diff to previous 1.65 (colored)

Remove useless getpwnam() call after getpwuid().  Noticed by deraadt@

Revision 1.65 / (download) - annotate - [select for diffs], Sun Nov 29 03:09:31 2015 UTC (8 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.64: +1 -1 lines
Diff to previous 1.64 (colored)

skeyinit needs pledge proc and exec to use BSD auth.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Nov 29 03:08:43 2015 UTC (8 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.63: +20 -17 lines
Diff to previous 1.63 (colored)

Allow the -n flag to work in -s mode.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Nov 29 03:08:10 2015 UTC (8 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored)

Add missing rip() before the call to strtonum().  Otherwise, strtonum
errors out due to the newline.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Nov 20 20:57:48 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.61: +4 -1 lines
Diff to previous 1.61 (colored)

pledge "stdio rpath wpath cpath fattr flock tty"
ok millert

Revision 1.61 / (download) - annotate - [select for diffs], Fri Oct 9 21:59:34 2015 UTC (8 years, 7 months ago) by tim
Branch: MAIN
Changes since 1.60: +1 -7 lines
Diff to previous 1.60 (colored)

Remove telnet warnings. Civilization has reached a point where they are no
longer relevant.

OK millert@

Revision 1.60 / (download) - annotate - [select for diffs], Tue Oct 6 15:09:08 2015 UTC (8 years, 7 months ago) by tim
Branch: MAIN
Changes since 1.59: +8 -86 lines
Diff to previous 1.59 (colored)

Remove the -C option that converts an S/Key database to the new format. It has
been 13 years since the new format was introduced.

OK millert@

Revision 1.59 / (download) - annotate - [select for diffs], Sat Oct 3 13:10:47 2015 UTC (8 years, 7 months ago) by tim
Branch: MAIN
Changes since 1.58: +8 -16 lines
Diff to previous 1.58 (colored)

- Simplify use of ctype functions.
- Replace arc4random with arc4random_uniform.
- Replace memset with explicit_bzero.

OK millert@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:42 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.57 / (download) - annotate - [select for diffs], Sat Apr 18 18:28:38 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.56: +13 -7 lines
Diff to previous 1.56 (colored)

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert

Revision 1.56 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:11 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.55 / (download) - annotate - [select for diffs], Tue May 20 01:25:23 2014 UTC (10 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.54: +8 -11 lines
Diff to previous 1.54 (colored)

Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

ok jsing@ krw@ millert@

Revision 1.54 / (download) - annotate - [select for diffs], Wed Apr 23 18:24:23 2014 UTC (10 years ago) by ajacoutot
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Remove more Kerberos cruft.

ok jca@ jmc@

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 20 20:39:13 2014 UTC (10 years, 2 months ago) by naddy
Branch: MAIN
Changes since 1.52: +7 -8 lines
Diff to previous 1.52 (colored)

Remove the (non-default) MD4 hash algorithm from S/Key.
ok millert, man pages ok jmc@

Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 28 18:24:55 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.51: +19 -17 lines
Diff to previous 1.51 (colored)

unsigned char for ctype
ok krw okan

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jul 6 22:15:11 2005 UTC (18 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (colored)

- tidy up SYNOPSIS
- sort options
- sync usage()
- more minor tweaks

Revision 1.50 / (download) - annotate - [select for diffs], Mon Dec 27 23:37:49 2004 UTC (19 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

spacing

Revision 1.49 / (download) - annotate - [select for diffs], Tue Sep 14 22:58:57 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +1 -11 lines
Diff to previous 1.48 (colored)

delete unused function

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jun 7 19:28:03 2004 UTC (19 years, 11 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored)

Allow -a to specify an alternative auth method, even if secure mode
is used. Only bail out if the user has no skey entry and requests
secure mode without specifying an alternative auth method.

ok hshoexer@ millert@

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jun 6 11:24:13 2004 UTC (19 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

First sequence number should be 100, as promised by man page.

ok hshoexer@ millert@

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jun 4 18:18:20 2004 UTC (19 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Consistently use "secret passphrase" for the passphrase made up by the user
and "one-time password" for the generated passwords.
ok jmc@ millert@

Revision 1.45 / (download) - annotate - [select for diffs], Wed Nov 26 00:05:27 2003 UTC (20 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.44: +8 -8 lines
Diff to previous 1.44 (colored)

multi-line literals are not ANSI C.  And gcc3 complains about them.

Revision 1.44 / (download) - annotate - [select for diffs], Wed May 7 20:39:29 2003 UTC (21 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.43: +6 -5 lines
Diff to previous 1.43 (colored)

bounds were sizeof(pointer) rather than size of the object; found with
anil's gcc bounds checker mod

Revision 1.43 / (download) - annotate - [select for diffs], Mon Apr 7 21:13:54 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.42: +6 -4 lines
Diff to previous 1.42 (colored)

replace strcpy calls that got inlined by gcc; Hans-Joerg.Hoexer@yerbouti.franken.de

Revision 1.42 / (download) - annotate - [select for diffs], Sun Apr 6 21:07:38 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

strlcpy; ok millert

Revision 1.41 / (download) - annotate - [select for diffs], Sat Nov 16 23:05:36 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.40: +29 -6 lines
Diff to previous 1.40 (colored)

Give a sensible error message when a user who has no entry in /etc/skey
specifies the -s flag.  Also improve the error message when S/Key is disabled.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jun 23 03:07:22 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

uid_t and gid_t are unsigned

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 7 21:53:43 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.38: +8 -2 lines
Diff to previous 1.38 (colored)

The code to append the last 5 digits of the time in Unix format to
the default seed was lost in the flat file -> directory structure
conversion.  Instead of reinstating that, use arc4random() to get
some noise and append the last 5 digits to the seed.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jun 7 21:35:26 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.37: +43 -38 lines
Diff to previous 1.37 (colored)

Instead of passing seed and defaultseed to normal_mode() and
secure_mode() just pass in a single default seed.  Only secure_mode()
needs to actually change the seed and it can use its own temporary
buffer.

Fix zeroing of the secrete passphrase.  Instead of useing multiple
password buffers, crunch the key each time and compare the crunched
values.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 6 20:56:02 2002 UTC (21 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.36: +6 -2 lines
Diff to previous 1.36 (colored)

Zero out memory filled in by readpassphrase(3). Also fix a spelling error;
markus@ ok.

Revision 1.36 / (download) - annotate - [select for diffs], Sun May 19 02:09:28 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.35: +24 -36 lines
Diff to previous 1.35 (colored)

 o Fix some fallout from argv handling changes.
 o Use ANSI function headers
 o When creating a new user record cope with the fact that there may be
   an existing zero-length userrecord.
 o Replace -z with -r in usage()

Revision 1.35 / (download) - annotate - [select for diffs], Fri May 17 15:54:13 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.34: +21 -10 lines
Diff to previous 1.34 (colored)

Replace -z option (zero) with -r option (remove).

Revision 1.34 / (download) - annotate - [select for diffs], Fri May 17 00:55:54 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.33: +9 -11 lines
Diff to previous 1.33 (colored)

Call enable_db() from convert_db() so the dir creation as well as
mode/user/group setting is done in one place.

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 16 17:54:34 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Add missing chown(2) call.

Revision 1.32 / (download) - annotate - [select for diffs], Thu May 16 03:50:42 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.31: +164 -134 lines
Diff to previous 1.31 (colored)

Change S/Key stuff from using a flat file (/etc/skeykeys) to a directory
where each user gets their own file, which is owned by that user.

An old S/Key database may be converted by running "skeyinit -C" as root.

Programs that need to access the S/Key database no longer need to be
setuid root.  They must now be setgid auth instead.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:52 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Nov 1 18:26:58 2001 UTC (22 years, 6 months ago) by miod
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29 (colored)

printf() format string fix.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jun 23 22:29:14 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

skeyzero() now takes 1 arg

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 20 22:25:08 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.27: +284 -161 lines
Diff to previous 1.27 (colored)

o When converting from a different hash type, if there is room on the line
  we don't need to comment out the existing entry since the key almost
  never takes up as much room as is allocated for it.
o Do per-record locking (and timeout) now that libskey does.
o Rearrange the code into functions.
o Use readpassphrase()

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jan 26 16:27:04 2001 UTC (23 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

It is pronounced S/Key

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jan 26 16:25:34 2001 UTC (23 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Fix stupid bug in last commit that caused the hostname not to
be used as part of the seed for first time users.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 16 15:15:58 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.24: +26 -6 lines
Diff to previous 1.24 (colored)

When building default seed from the hostname, only use alphanumeric
characters and make things lower case.  Also sanity check the
existing seed in skeykeys since we can't be sure it is completely
sane.  Problem noted by wozz@wookie.net

Revision 1.24 / (download) - annotate - [select for diffs], Fri Sep 10 10:09:28 1999 UTC (24 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

Don't unlock the skeykeys file before the fclose since stdio may still have some data buffered.  Closing the file is enough to unlock it.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 2 21:55:53 1999 UTC (25 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

do not crash if -n has no arg; spotted by weingart

Revision 1.22 / (download) - annotate - [select for diffs], Sat Aug 22 19:29:46 1998 UTC (25 years, 9 months ago) by dgregor
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Changed warning message from "... keyinit -s" to "... skeyinit -s".

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 9 17:04:00 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.20: +6 -2 lines
Diff to previous 1.20 (colored)

say "s/key disabled" if skeykeys file does not exist.  I thought I committed this ages ago.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 27 21:36:05 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.19: +23 -5 lines
Diff to previous 1.19 (colored)

- Do coarse locking on /etc/skeykeys so we don't clobber
  an entry that is being updated.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jul 25 00:27:30 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.18: +15 -7 lines
Diff to previous 1.18 (colored)

Protect users from themselves.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 17 05:48:41 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Add RIPEMD-160 (rmd160) support to OTP (s/key).

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 3 18:57:46 1996 UTC (27 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.16: +36 -34 lines
Diff to previous 1.16 (colored)

Use new length/size macros.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 23 18:09:27 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.15: +13 -8 lines
Diff to previous 1.15 (colored)

Allow root to add entry for login that does not exist.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 14 03:10:07 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

Fixed a bug in skeylookup() so no need for extra skey_set_algorithm.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Oct 8 16:31:45 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

reset hash type after zeroing when changing hash type, from dm.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 2 18:11:30 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.12: +15 -4 lines
Diff to previous 1.12 (colored)

When changing hash algorithms comment out the old entry so we
don't overflow the old fixed length record.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Oct 2 03:49:34 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.11: +12 -5 lines
Diff to previous 1.11 (colored)

Fix a bug wrt handling of old md4 entries.  Now don't save a type with md4
so we don't go over the record size and munge other entries.  Don't export
symbols we don't need to in put.c.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 30 18:49:55 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Fixed up docs and improved skeyinit's passwd prompt.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 30 06:30:43 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.9: +42 -20 lines
Diff to previous 1.9 (colored)

In -s mode, now checks that seed is pure alphanum and converts chars
to lowercase.  Also fixed prompt in -s mode to be rfc1938 compliant.
You may now enter "s/key" as the password and get in via an s/key
challenge, the lack of which was pointed out by dm.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 29 23:11:04 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

RFC 1938 says min passwd len is 10...

Revision 1.8 / (download) - annotate - [select for diffs], Sun Sep 29 21:28:42 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.7: +37 -34 lines
Diff to previous 1.7 (colored)

Works with new libskey and supports SHA.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Sep 29 04:34:08 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.6: +19 -5 lines
Diff to previous 1.6 (colored)

Added support for MD4/MD5 as an argument.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 28 17:35:25 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

strings for username are of size UT_NAMESIZE

Revision 1.5 / (download) - annotate - [select for diffs], Sat Sep 28 00:04:44 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

Less easily guessed seed.  From logdaemon package.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 27 15:49:04 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.3: +138 -112 lines
Diff to previous 1.3 (colored)

Now can deal with both MD4 and MD5 s/key's.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:39:24 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 20 09:48:15 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +18 -8 lines
Diff to previous 1.1 (colored)

add ability to zero out entry; from millert@cs.colorado.edu; netbsd pr#1851
also add a prototype for skeyzero()

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:08 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:08 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.