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@
11 years ago
martynas
b74edb3b39
Don't pull <math.h> just because it can return HUGE_VAL in the
corner cases. OK millert@.
11 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
guenther
b4d2adfe76
Per POSIX, fix raise() and abort() to send the signal to the current thread.
Should make coredumps from abort() easier to debug too.
ok kurt@
12 years ago
djm
83081452a3
Add a new malloc option 'U' => "Free unmap" that does the guarding/
unmapping of freed allocations without disabling chunk randomisation
like the "Freeguard" ('F') option does. Make security 'S' option
use 'U' and not 'F'.
Rationale: guarding with no chunk randomisation is great for debugging
use-after-free, but chunk randomisation offers better defence against
"heap feng shui" style attacks that depend on carefully constructing a
particular heap layout so we should leave this enabled when requesting
security options.
12 years ago
jmc
532680836e
struct buf -> ibuf; from Sunil Nimmagadda
12 years ago
jmc
7d2f083b01
last stage of rfc changes, using consistent Rs/Re blocks, and moving the
references into a STANDARDS section;
12 years ago
jeremy
803376ceaa
Make setenv(3) consistent with unsetenv(3), giving EINVAL if passed
an empty name, NULL pointer, or a name containing an '=' character.
OK millert@, guenther@
12 years ago
jmc
4834096ac0
remove some wacky Xo/Xc;
12 years ago
miod
da46ccb0c3
remove tahoe-specific makefile machinery, no such hardware is known to be
in working condition anymore (assuming there would be interest in running on
it).
12 years ago
martynas
1954aa198d
Document that strtod functions accept INF, NAN, NAN(). From Michal Mazurek.
12 years ago
deraadt
9dace0b0af
specify the bounds of the dst to strlcat (both values were static and
equal, but it is more correct)
from Michal Mazurek
12 years ago
pirofti
336a8ca4d4
Fix precedence bug (& has lower precedence than !=).
Okay otto@.
Found by Michal Mazurek <akfaew at jasminek dot net>, thanks!
12 years ago
matthew
ddc0736e18
Use "unsigned int" instead of BSD "u_int" in <util.h> so that it can
be included in source files that specify POSIX source. libutil isn't
a standard POSIX library, but no need to be gratuitously incompatible.
Fixes x11/st.
ok tedu, guenther, kettenis
12 years ago
tedu
c450e6bc8f
add const where missing
12 years ago
jmc
b9881c9c7b
various fixes;
12 years ago
matthew
79fe643d61
Move the commented out test program in pkcs5_pbkdf2.c into a proper
regress test.
12 years ago
tedu
d87c08ca59
some better phrasing, mostly via jsing
12 years ago
tedu
d5bb407472
move pkcs5_pbkdf5 function to libutil so everybody can play with it
ok deraadt jsing matthew
12 years ago
tedu
1156cf94ba
arc4random_buf is the easy way to fill a buffer now. ok deraadt
12 years ago
okan
143bb47cdd
remove lint leftovers; ok guenther@
12 years ago
miod
e3aae9f755
Remove landisk gcc 3 compiler workaround. Reminded by martynas@ and brad
12 years ago
jmc
0eaeba173f
within Rs/Re reference blocks, use %U instead of %O (or any other
variants) for URLs, allowing mandoc -Thtml to properly generate links;
(sendmail.8 changes are simply using Lk, which i somehow missed in previous)
ingo reminded me to verify that gnu groff recognises %U: 1.20.1 does not,
but 1.21 does;
12 years ago
okan
068b7390b9
remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.
ok guenther@
12 years ago
naddy
dc3b42db1e
remove reference to no longer existing description of nonexistent devices;
ok deraadt@ tedu@, wording tweaks jmc@
12 years ago
naddy
2cc386be9a
fix an off-by-one error where the return value would point to the
character after the '\0'; ok guenther@
12 years ago
nicm
f6f6cc630f
ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) in
util.h.
ok guenther
12 years ago
deraadt
99a773bc80
use PAGE_SHIFT instead of PGSHIFT, in preperation for future
param.h symbol reduction.
ok guenther
12 years ago
guenther
de1260708b
Zap extra spaces from function pointer arguments
Pointed out by Joachim Schipper (joachim at joachimschipper.nl)
12 years ago
guenther
0de5d83a35
Describe tdelete()'s return value correctly and update the related CAVEAT
Based on a note from Steffen Daode Nurpmeso (sdaoden at googlemail.com)
ok jmc@
12 years ago