1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-04 23:35:36 -08:00
Commit Graph

26 Commits

Author SHA1 Message Date
millert
5a122e6e86 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@
2018-09-13 12:31:15 +00:00
fcambus
15afe4d600 As per style.9, prototypes should not have variable names associated
with the types.

OK jca@
2017-03-09 10:13:03 +00:00
tedu
8a63353a77 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
2015-11-18 16:44:46 +00:00
tedu
5f7129452b add prototypes for new crypt functions 2014-05-16 21:28:15 +00:00
tedu
c0e6b18c7f no md5crypt 2014-05-12 19:13:51 +00:00
deraadt
4a39ccd02c Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
2012-12-05 23:19:48 +00:00
millert
c39c6cccd9 Add _PW_BUF_LEN define and use it instead of hard-coding 1024 for
the buffer size.  OK deraadt@
2008-06-25 14:51:27 +00:00
deraadt
9eb309bbb4 prototypes for getpwnam_r() and getpwuid_r() 2008-06-24 14:31:59 +00:00
millert
52a0e6034e 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@
2005-12-13 00:35:22 +00:00
millert
0608549df4 passwd.conf has been deprecated since login.conf was imported.
Today it finally dies.  Based on a diff from Gabriel Kihlman.
2004-07-13 21:09:47 +00:00
djm
f8acaf4d01 prototypes for bcrypt and md5crypt, as described in manpage; ok deraadt@ 2004-04-06 10:59:18 +00:00
millert
e33d3bd3b8 Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.
2003-06-02 19:34:12 +00:00
millert
3a4d0b151c Fix 2 things that should be gid_t. One from Oleg Safiullin, one from me... 2002-04-22 21:28:49 +00:00
millert
c72b5b24e1 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. 2002-02-16 21:27:05 +00:00
millert
00ca34bf62 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.
2001-08-26 03:28:30 +00:00
pjanzen
18ddd2175e _PW_NAME_LEN doesn't include the NUL, MAXLOGNAME does. 2001-02-13 14:48:40 +00:00
deraadt
c264c362c6 move utmp to large format, usernames to 32 chars; downsj 2001-01-31 17:42:25 +00:00
millert
9a234f2d41 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.
2000-11-21 00:49:58 +00:00
deraadt
0f32e7e499 proto bcrypt_gensalt() 1999-09-03 18:13:37 +00:00
deraadt
085a1971c6 proto bcrypt_gensalt() 1999-09-01 20:47:58 +00:00
millert
5883413a5a pw_uid is uid_t, pw_gid is gid_t 1998-07-15 00:50:40 +00:00
provos
a37f7092ed small cleanup 1997-02-16 20:54:26 +00:00
provos
f84c86fd4f passwd.conf define. 1997-02-14 23:28:47 +00:00
downsj
d77ce7d689 _PW_YPTOKEN 1996-10-16 09:08:27 +00:00
deraadt
4b826ba8ef libutil 1996-05-22 11:34:43 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00