OpenBSD CVS

CVS log for src/usr.bin/passwd/Attic/yp_passwd.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38, Thu Nov 26 19:01:47 2015 UTC (8 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.37: +1 -1 lines
FILE REMOVED

Delete YP password related code.  As a result, these can also be
pledged.  Keep an eye out for regressions, because they could be
uncomfortable.
ok beck semarie

Revision 1.37 / (download) - annotate - [select for diffs], Sun Oct 25 08:39:26 2015 UTC (8 years, 6 months ago) by ajacoutot
Branch: MAIN
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (colored)

No need to declare pwd_gensalt; it's unused and gone.
ok tedu@

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

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

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:10 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Fri Nov 21 05:13:44 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.33: +5 -3 lines
Diff to previous 1.33 (colored)

change prototype for crypt_newhash. the login_cap_t is a holdover from its
pwd_gensalt origins, but a string argument works equally work and is more
friendly to consumers beyond local user accounts.
ok deraadt

Revision 1.33 / (download) - annotate - [select for diffs], Thu Nov 20 14:53:15 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.32: +9 -8 lines
Diff to previous 1.32 (colored)

switch to using crypt_newhash interface. ok deraadt

Revision 1.32 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:41 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, 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
Changes since 1.31: +1 -5 lines
Diff to previous 1.31 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 6 05:35:56 2008 UTC (15 years, 6 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.30: +19 -17 lines
Diff to previous 1.30 (colored)

-Wall -Wshadow clean, no binary change

Revision 1.30 / (download) - annotate - [select for diffs], Tue Aug 14 13:30:45 2007 UTC (16 years, 9 months ago) by aanriot
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.29: +12 -9 lines
Diff to previous 1.29 (colored)

error out, instead of producing a warning and displaying that the YP
password has changed, when the rpc.yppasswdd daemon is unreachable.

ok deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 30 21:06:29 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.28: +4 -5 lines
Diff to previous 1.28 (colored)

minimal lint happiness, round 1

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jul 13 21:09:48 2004 UTC (19 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.27: +8 -8 lines
Diff to previous 1.27 (colored)

passwd.conf has been deprecated since login.conf was imported.
Today it finally dies.  Based on a diff from Gabriel Kihlman.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 12 22:59:28 2004 UTC (20 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.26: +4 -7 lines
Diff to previous 1.26 (colored)

Remove pw_abort() added in last commit and use the local verson of
pw_error() instead.  OK deraadt@ otto@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 10 21:23:17 2004 UTC (20 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.25: +9 -6 lines
Diff to previous 1.25 (colored)

Check getpass() return value for NULL.  Closes Pr 3706.
With help and OK from otto@.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Feb 20 21:24:57 2004 UTC (20 years, 3 months ago) by maja
Branch: MAIN
Changes since 1.24: +22 -11 lines
Diff to previous 1.24 (colored)

Make passwd understand master.passwd.byname so it can work in a secure
environment.

Patch from llx at hitech dot ch, modified by me. -moj ok henning@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:14 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +3 -7 lines
Diff to previous 1.23 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jun 28 22:28:17 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.22: +21 -30 lines
Diff to previous 1.22 (colored)

various cleanups; ok millert

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 4 00:09:08 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

spelling; raj@cerias.purdue.edu

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 16 11:54:25 2002 UTC (22 years ago) by fgsch
Branch: MAIN
Changes since 1.20: +46 -39 lines
Diff to previous 1.20 (colored)

- mimic pw_error() behavior from libutil when name is NULL.
- while i'm here some style, as well as spaces/tabs removal.

deraadt@ ok

Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:50 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Fri Dec 7 04:15:08 2001 UTC (22 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.18: +10 -2 lines
Diff to previous 1.18 (colored)

Catch SIGINT and SIGQUIT via the kbintr() signal handler in ypgetnewpasswd()
too.  Restore old signal handler at the end of ypgetnewpasswd() and
getnewpasswd().

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 7 00:10:49 2001 UTC (22 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

quiet some -Wall warnings for login_{l,}chpass

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 18 21:09:24 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.16: +18 -11 lines
Diff to previous 1.16 (colored)

o move passwd.conf variables into login.conf
o no longer install passwd.conf (but it is used if it exists and the
  needed info is not in login.conf)
o added passwordtime and minpasswordlen login.conf variables

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 10 20:11:30 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.15: +10 -3 lines
Diff to previous 1.15 (colored)

handle malloc() failures

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 12 02:19:59 2000 UTC (23 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.14: +24 -26 lines
Diff to previous 1.14 (colored)

Minor interface changes to allow code reuse in login_chpass(8) and
login_lchpass(8)

Revision 1.12.8.1 / (download) - annotate - [select for diffs], Fri Oct 6 20:20:59 2000 UTC (23 years, 7 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Pull in patch from current:
Fix (millert):
warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant).  These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).

Revision 1.14 / (download) - annotate - [select for diffs], Tue Aug 1 22:27:51 2000 UTC (23 years, 9 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.13: +11 -13 lines
Diff to previous 1.13 (colored)

integrate password quality checking, disallow all digit passwords motivated
by Solar Designer.  External password checking program can be spawned now,
number of password trials configurable.  work by me and Bob Beck.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 30 16:00:20 2000 UTC (23 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant).  These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jul 13 02:15:01 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Branch point for: OPENBSD_2_7
Changes since 1.11: +6 -4 lines
Diff to previous 1.11 (colored)

excessive paranoia

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jul 12 18:05:15 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

fix printing glitch

Revision 1.10 / (download) - annotate - [select for diffs], Tue Feb 24 20:46:17 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.9: +6 -2 lines
Diff to previous 1.9 (colored)

catch special password "s/key" and refuse it

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 12 04:12:53 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.8: +5 -4 lines
Diff to previous 1.8 (colored)

Kill extra newline in err()/warn().

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 27 00:30:55 1997 UTC (27 years, 1 month ago) by weingart
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.7: +21 -35 lines
Diff to previous 1.7 (colored)

Slight cleanup, more needed

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 17 10:34:41 1997 UTC (27 years, 3 months ago) by provos
Branch: MAIN
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored)

free what was allocated by strdup

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 16 20:09:00 1997 UTC (27 years, 3 months ago) by provos
Branch: MAIN
Changes since 1.5: +7 -4 lines
Diff to previous 1.5 (colored)

cleaned up, moved pw_getconf to libutil, removed _'s in option names

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 14 23:27:31 1997 UTC (27 years, 3 months ago) by provos
Branch: MAIN
Changes since 1.4: +5 -12 lines
Diff to previous 1.4 (colored)

include blowfish cipher - free config of which cipher to use

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 30 13:37:53 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.3: +9 -5 lines
Diff to previous 1.3 (colored)

of course, the same bug as in chpass shows up here too...

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 22 03:53:21 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +23 -21 lines
Diff to previous 1.2 (colored)

finally half-readable

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

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:54 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:45:54 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.