millert
1588579869
Add _PW_BUF_LEN define and use it instead of hard-coding 1024 for
the buffer size. OK deraadt@
16 years ago
deraadt
2f1bd14d3d
prototypes for getpwnam_r() and getpwuid_r()
16 years ago
millert
5acf200b2a
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@
19 years ago
millert
20709cb14a
passwd.conf has been deprecated since login.conf was imported.
Today it finally dies. Based on a diff from Gabriel Kihlman.
20 years ago
djm
47a42edf4e
prototypes for bcrypt and md5crypt, as described in manpage; ok deraadt@
21 years ago
millert
cc6797b16c
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
21 years ago
millert
9a4c1a43e1
Fix 2 things that should be gid_t. One from Oleg Safiullin, one from me...
23 years ago
millert
b68c09e067
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.
23 years ago
millert
dc64978377
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.
23 years ago
pjanzen
a49f25b6d8
_PW_NAME_LEN doesn't include the NUL, MAXLOGNAME does.
24 years ago
deraadt
71a95aef09
move utmp to large format, usernames to 32 chars; downsj
24 years ago
millert
518931599f
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.
24 years ago
deraadt
35b85f848f
proto bcrypt_gensalt()
25 years ago
deraadt
ed9e4a1a48
proto bcrypt_gensalt()
25 years ago
millert
5bc0b9f5dc
pw_uid is uid_t, pw_gid is gid_t
26 years ago
provos
2855a033e2
small cleanup
28 years ago
provos
9d96438fd6
passwd.conf define.
28 years ago
downsj
0346da1a49
_PW_YPTOKEN
28 years ago
deraadt
a5010d31aa
libutil
29 years ago
deraadt
47b73ff83c
initial import of NetBSD tree
29 years ago