OpenBSD CVS

CVS log for src/include/pwd.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Thu Sep 13 12:31:15 2018 UTC (5 years, 8 months ago) by millert
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, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Add uid_from_user() and gid_from_group(), derived from pax's cache.c.
It replaces the existing pwcache.c functions user_from_uid(3) and
group_from_gid(3) with the pax equivalents.  Adapted from NetBSD
(mycroft) changes from our own pax's cache.c.  OK guenther@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Mar 9 10:13:03 2017 UTC (7 years, 2 months ago) by fcambus
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
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

As per style.9, prototypes should not have variable names associated
with the types.

OK jca@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Nov 18 16:44:46 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

Add _shadow variants to the two popular getpw functions (uid and nam).
This version of the function will always open the secure/shadow/master
password files. Soon, the regular variants of these functions will not.
(Intermixing shadow and regular gets a little weird; don't do that.)
Not using struct spwd and getspwnam functions to reduce churn in callers.
Should just be a one line diff in most places.
ok deraadt

Revision 1.23 / (download) - annotate - [select for diffs], Fri May 16 21:28:15 2014 UTC (10 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

add prototypes for new crypt functions

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 12 19:13:51 2014 UTC (10 years ago) by tedu
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

no md5crypt

Revision 1.21 / (download) - annotate - [select for diffs], Wed Dec 5 23:19:57 2012 UTC (11 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored)

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 25 14:51:27 2008 UTC (15 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: 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
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Add _PW_BUF_LEN define and use it instead of hard-coding 1024 for
the buffer size.  OK deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 24 14:31:59 2008 UTC (15 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +5 -1 lines
Diff to previous 1.18 (colored)

prototypes for getpwnam_r() and getpwuid_r()

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:22 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: 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
Changes since 1.17: +8 -9 lines
Diff to previous 1.17 (colored)

First step in include files overhaul.  Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE.  Also fix several namespace
pollution issues, including the byte order defines.  OK deraadt@

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

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

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 6 10:59:18 2004 UTC (20 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

prototypes for bcrypt and md5crypt, as described in manpage; ok deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jun 2 19:34:12 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.14: +2 -6 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 22 21:28:49 2002 UTC (22 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Fix 2 things that should be gid_t.  One from Oleg Safiullin, one from me...

Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:17 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.12: +10 -10 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Sun Aug 26 03:28:30 2001 UTC (22 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored)

Change the second arg to pw_mkdb() from a boolean flag to a set of
bit flags ORed together.  Currently the only flags defined are
_PASSWORD_SECUREONLY and _PASSWORD_OMITV7 but this is enough to
cause pw_mkdb() to run pwd_mkdb with the options we want.

With this change we no longer generate the old V7 passwd file when
only the extra fields in master.passwd (or the encrypted password)
have changed.  There are other programs that could probably use
the _PASSWORD_OMITV7 flag; they will be converted at a future date.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Feb 13 14:48:40 2001 UTC (23 years, 3 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

_PW_NAME_LEN doesn't include the NUL, MAXLOGNAME does.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jan 31 17:42:25 2001 UTC (23 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

move utmp to large format, usernames to 32 chars; downsj

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 21 00:49:59 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

Add pw_dup(3), a function to copy 'struct passwd'.  It is allocated as
a single chunk with the strings pointing elsewhere in the buffer so
a simple free() of the struct passwd * is all that is needed to decallocate.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 3 18:13:37 1999 UTC (24 years, 8 months ago) by deraadt
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.7: +2 -2 lines
Diff to previous 1.7 (colored)

proto bcrypt_gensalt()

Revision 1.7 / (download) - annotate - [select for diffs], Wed Sep 1 20:47:58 1999 UTC (24 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

proto bcrypt_gensalt()

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jul 15 00:50:40 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

pw_uid is uid_t, pw_gid is gid_t

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 16 20:54:28 1997 UTC (27 years, 3 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +1 -5 lines
Diff to previous 1.4 (colored)

small cleanup

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

passwd.conf define.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 16 09:08:27 1996 UTC (27 years, 7 months ago) by downsj
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored)

_PW_YPTOKEN

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 22 11:34:44 1996 UTC (28 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

libutil

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