History log of /openbsd/include/pwd.h (Results 1 – 25 of 26)
Revision Date Author Comments
# 5a122e6e 13-Sep-2018 millert <millert@openbsd.org>

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 NetBS

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@

show more ...


# 15afe4d6 09-Mar-2017 fcambus <fcambus@openbsd.org>

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

OK jca@


# 8a63353a 18-Nov-2015 tedu <tedu@openbsd.org>

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 funct

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

show more ...


# 5f712945 16-May-2014 tedu <tedu@openbsd.org>

add prototypes for new crypt functions


# c0e6b18c 12-May-2014 tedu <tedu@openbsd.org>

no md5crypt


# 4a39ccd0 05-Dec-2012 deraadt <deraadt@openbsd.org>

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


# c39c6ccc 25-Jun-2008 millert <millert@openbsd.org>

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


# 9eb309bb 24-Jun-2008 deraadt <deraadt@openbsd.org>

prototypes for getpwnam_r() and getpwuid_r()


# 52a0e603 13-Dec-2005 millert <millert@openbsd.org>

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 deraad

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@

show more ...


# 0608549d 13-Jul-2004 millert <millert@openbsd.org>

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


# f8acaf4d 06-Apr-2004 djm <djm@openbsd.org>

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


# e33d3bd3 02-Jun-2003 millert <millert@openbsd.org>

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


# 3a4d0b15 22-Apr-2002 millert <millert@openbsd.org>

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


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

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 don

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.

show more ...


# 00ca34bf 26-Aug-2001 millert <millert@openbsd.org>

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

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.

show more ...


# 18ddd217 13-Feb-2001 pjanzen <pjanzen@openbsd.org>

_PW_NAME_LEN doesn't include the NUL, MAXLOGNAME does.


# c264c362 31-Jan-2001 deraadt <deraadt@openbsd.org>

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


# 9a234f2d 21-Nov-2000 millert <millert@openbsd.org>

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

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.

show more ...


# 0f32e7e4 03-Sep-1999 deraadt <deraadt@openbsd.org>

proto bcrypt_gensalt()


# 085a1971 01-Sep-1999 deraadt <deraadt@openbsd.org>

proto bcrypt_gensalt()


# 5883413a 15-Jul-1998 millert <millert@openbsd.org>

pw_uid is uid_t, pw_gid is gid_t


# a37f7092 16-Feb-1997 provos <provos@openbsd.org>

small cleanup


# f84c86fd 14-Feb-1997 provos <provos@openbsd.org>

passwd.conf define.


# d77ce7d6 16-Oct-1996 downsj <downsj@openbsd.org>

_PW_YPTOKEN


# 4b826ba8 22-May-1996 deraadt <deraadt@openbsd.org>

libutil


12