summaryrefslogtreecommitdiff
path: root/include/pwd.h
AgeCommit message (Collapse)Author
2018-09-13Add uid_from_user() and gid_from_group(), derived from pax's cache.c.Todd C. Miller
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@
2017-03-09As per style.9, prototypes should not have variable names associatedFrederic Cambus
with the types. OK jca@
2015-11-18Add _shadow variants to the two popular getpw functions (uid and nam).Ted Unangst
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
2014-05-16add prototypes for new crypt functionsTed Unangst
2014-05-12no md5cryptTed Unangst
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2008-06-25Add _PW_BUF_LEN define and use it instead of hard-coding 1024 forTodd C. Miller
the buffer size. OK deraadt@
2008-06-24prototypes for getpwnam_r() and getpwuid_r()Theo de Raadt
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2004-07-13passwd.conf has been deprecated since login.conf was imported.Todd C. Miller
Today it finally dies. Based on a diff from Gabriel Kihlman.
2004-04-06prototypes for bcrypt and md5crypt, as described in manpage; ok deraadt@Damien Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-04-22Fix 2 things that should be gid_t. One from Oleg Safiullin, one from me...Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-08-26Change the second arg to pw_mkdb() from a boolean flag to a set ofTodd C. Miller
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.
2001-02-13_PW_NAME_LEN doesn't include the NUL, MAXLOGNAME does.Paul Janzen
2001-01-31move utmp to large format, usernames to 32 chars; downsjTheo de Raadt
2000-11-21Add pw_dup(3), a function to copy 'struct passwd'. It is allocated asTodd C. Miller
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.
1999-09-03proto bcrypt_gensalt()Theo de Raadt
1999-09-01proto bcrypt_gensalt()Theo de Raadt
1998-07-15pw_uid is uid_t, pw_gid is gid_tTodd C. Miller
1997-02-16small cleanupNiels Provos
1997-02-14passwd.conf define.Niels Provos
1996-10-16_PW_YPTOKENJason Downs
1996-05-22libutilTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt