millert
b5fa8ad952
When writing a new record in pw_copy() print the uid and gid as
unsigned, just like we do the existing records. OK deraadt@
11 years ago
kettenis
9a1134ebb6
Add linker warnings for rand() and random() and various related functions.
ok deraadt@
11 years ago
tedu
c86cc50f44
fix a colossal cockup due to pointer/array confusion.
code isn't used yet, thankfully.
first observed by djm running regress. ok deraadt djm
11 years ago
schwarze
951df98fb8
HISTORY; tweaks and ok sobrado@ jmc@
11 years ago
schwarze
dd7aa95190
more library history
facts checked by sobrado@
style tweaks and ok jmc@
11 years ago
schwarze
c5c3b8f6ac
use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@
11 years ago
deraadt
e50c9fd9da
spacing
11 years ago
millert
e8e815fedd
Fix parsing of ambiguous options, the whole loop must be processed.
From FreeBSD. OK miod@
11 years ago
guenther
c2e0eb431a
Move _Exit() from the exit() manpage to the _exit() manpage, as it's
just an alias of the latter.
ok matthew@ tedu@
11 years ago
tedu
730e7b8c19
i copied .Fd just like everybody else. use .In
11 years ago
tedu
4ec5da8bd2
use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarze
11 years ago
tedu
3d36d226ed
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
11 years ago
tedu
c2b93759b2
revert. check is < 1, not < 0.
11 years ago
tedu
277ec73d81
oops, rounds is unsigned now
11 years ago
jmc
15dc842a8d
\-1;
11 years ago
deraadt
8d8738cfc7
remove some incredible lies about overlapping buffers
ok guenther
11 years ago
tedu
476a7e68d4
not much use for sha1 .Xr
11 years ago
tedu
64a805d564
Add bcrypt_pbkdf, a password based key derivation function using bcrypt.
Technically, it's a slight variant of bcrypt better suited for use as a
pluggable hash with PKCS #5 PBKDF2.
ok djm
(also tweak pkcs5_pbkdf2() prototype to have consistent types.)
11 years ago
matthew
541be88fbc
Two small cleanups to atexit: remove unneeded __atexit_invalid, and
move the call_depth decrement so it happens unconditionally and can
still return to 0 when called with dso!=NULL.
ok millert
11 years ago
stsp
09f858d25d
Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.
Catalogs had an arbitrary character set which was used regardless of locale.
Add UTF-8-encoded catalogs for libc error messages, and rename existing ones
to indicate their character sets. catopen(3) now chooses a catalog which
matches the locale's encoding, if available.
help & ok matthew, man page bits ok jmc, input from naddy and bluhm
11 years ago
ajacoutot
007d5eb116
Remove useless include.
ok millert@
11 years ago
matthew
c01980f9dc
Fix pty descriptor leak if fork() fails.
ok millert
11 years ago
ajacoutot
29e7601c1a
typo: compare len against null needle, not haystack
from Alf Schlichting
ok millert@
11 years ago
ajacoutot
479d5fd1ec
Add an implementation of memmem() -- from FreeBSD with some tweaks.
Requires a libc minor bump, committing now so that we have up-to-date
snapshots for the upcoming hackathon.
joint work with millert@
man page bits ok jmc@
input and ok millert@, guenther@, deraadt@
11 years ago
okan
179b4ca76f
use FD_CLOEXEC instead of 1; from David Hill
ok otto
11 years ago
okan
0b316e60e4
use O_CLOEXEC with open() instead of open/fcntl; from David Hill
ok otto
11 years ago
tedu
0973ffaaef
tweak a few comments
11 years ago
tedu
8004c4ec56
this man page is mostly about password hashing now (you really don't
want to be using DES) and some of the notes about the export controls
are no longer so relevant. ok deraadt jmc
11 years ago
tedu
c356b39b66
Xr encrypt(1) to give people a hint if they just want a password string
11 years ago
tedu
b359b9cba3
surround the error strings with quotes to clarify exactly which strings
the function is going to return.
11 years ago
tedu
a7f87548b0
the tiniest of style tweaks
11 years ago
tedu
b30c509647
add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.
11 years ago
millert
e648dc1623
SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in a
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@
11 years ago
kurt
179c63bba1
- Add comments regarding copies of these files also in libexec/ld.so
okay guenther@
11 years ago
guenther
8fda669e99
Update a comment about standards requirements
11 years ago
martynas
bdad368f75
Switch libc and libm to use strong aliases rather than weak aliases
where appropriate. Among other things makes the symbols consistent
across all architectures (notably where ldbl mantissa is 53 bits).
While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there
to trick lint into recording the right prototypes for aliased
functions. Most of the work done at the awesome n2k13 hackathon.
Agreed by kettenis@, guenther@, matthew@.
11 years ago
tedu
181aae0056
threadsafe random().
reported by ajacoutot and (much earlier, sorry) by Alexey Suslikov
11 years ago
gilles
b8be040212
fix memleak in imsg_read() when hitting the fd reserve check
ok millert@, mikeb@, lteo@
12 years ago
martynas
b74edb3b39
Don't pull <math.h> just because it can return HUGE_VAL in the
corner cases. OK millert@.
12 years ago
otto
09a0be7c23
Fix bug in random offset introduced in rev 1.143; random range was
expanded, but not enough due to precedence error. Spotted by Thorsten Glaser.
12 years ago
reyk
d1b4498645
Fix a purely theoretical NULL-pointer dereference in the case that we
would be able to receive multiple SCM_RIGHTS messages.
ok claudio@ gilles@
12 years ago
deraadt
f0e9631687
Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
12 years ago
jmc
d90446f777
no need for .Pp before lists;
12 years ago
millert
3e820c77a4
Rewritten posix_openpt manual that doesn't include any of the POSIX
text. OK deraadt@
12 years ago
millert
f9cb15e68c
Use "path name" not "pathname".
12 years ago
millert
4606f10eb9
Simple emulation of POSIX pty APIs posix_openpt(), ptsname(),
grantpt() and unlockpt() using /dev/ptm. Man pages from FreeBSD.
OK kettenis@ deraadt@ beck@ ajacoutot@ naddy@
12 years ago
stsp
352d8c5bf0
Document a known bug in the DES crypt cipher implementation which we're
not going to fix in order to stay compatible with legacy password data.
Nobody should use DES crypt anyway these days.
See http://www.freebsd.org/security/advisories/FreeBSD-SA-12:02.crypt.asc
for details about this bug.
Discussed with deraadt and beck about half a year ago (I'm pruning Ms
from my tree).
12 years ago
jsing
e4f9596649
Ensure that the base provided to strtol(3) is between 2 and 36 inclusive,
or the special value of 0.
ok deraadt@ otto@
12 years ago
krw
6a2bde7908
imsg_get() returns ssize_t, not size_t.
12 years ago
halex
fcf6db6614
make scan_scaled set errno to EINVAL rather than ERANGE if it encounters
an invalid multiplier, like the man page says it should
"looks sensible" deraadt@, ok ian@
12 years ago