tedu
0b9e1f8234
solar's testsuite revealed insufficient validation of invalid input hashes.
add a more complete check for the rounds parameter. ok deraadt
11 years ago
schwarze
0f060ca5c4
in HISTORY, say where this actually came from;
ok deraadt@ bentley@
11 years ago
tedu
d1419f7b10
remove redundant test
11 years ago
tedu
ddd68ca1c6
sticking strlen into a char leads to wraparound at 256. fix this and
introduce a new 'b' hash minor. still generate 'a' minors for now.
reported by solar designer. diff by some combination of solar and jca.
ok deraadt
11 years ago
stsp
8c495fa1f9
Remove unnecessary stdio.h include.
Patch by Jean-Philippe Ouellet ; ok krw@
11 years ago
jmc
8d7315b175
add explicit_bzero to NAME;
11 years ago
tedu
2beb8f104d
add explicit_bzero to libc. implementation subject to change, but start
the ball rolling. ok deraadt.
11 years ago
deraadt
425e578efb
Ouch... recommend arc4random, not random.
spotted by tedu
11 years ago
schwarze
fbd81370eb
obvious .Pa fixes; found with mandocdb(8)
11 years ago
schwarze
938b39d868
Fix an obvious .Fn/.Fa typo, found while testing mandocdb(8).
11 years ago
schwarze
7227c1c1df
Usually, you don't want macros in the .Nd line, so remove instances of .Tn
marking up words that are not trademarks (ASCII, I/O, NFS, TCP, TELNET).
While here, remove .Tn markup from the same words in the body
of these pages, too.
11 years ago
schwarze
e2b8a435dc
Punctuation after macro arguments needs to be in a separate argument.
Found while testing mandocdb(8).
11 years ago
tedu
9bdaa18357
calling HashFinal with a null digest should crash, not be silently ignored
11 years ago
deraadt
b66e338b72
rename SHA256_ONLY to SHA2_SMALL; changing things so that sha512 support
is also pulled in
11 years ago
kettenis
b612c6c4a1
Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass the
right __dso_handle and have dlopen'ed shared objects run their atexit handlers
when they get unloaded. This is what Linux does, and several ports depend on
this behaviour (and will crash upon exit without this chang).
Based on an earlier diff from matthew@
Tested by ajacoutot@
ok deraadt@
11 years ago
tedu
d8bf2218c6
remove unneeded check for null context. ok deraadt gilles millert
11 years ago
jmc
097b4e760e
fix double word error;
11 years ago
millert
d14d049245
Split out strncpy and strncat from strcpy and strcat manuals.
Requested by deraadt@
11 years ago
deraadt
bc8778bde6
pseudo-code corrections from Solar Designer <solar@openwall.com>
11 years ago
jmc
7197069ae1
no more regexp(3), so point to regex(3);
as advised by deraadt
11 years ago
deraadt
a728e0155c
avoid arithetic on void *
ok guenther otto
11 years ago
guenther
9c2ecb2a8e
Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directly
ok deraadt@
11 years ago
jmc
2816715b10
tweak previous;
11 years ago
deraadt
f175a3d5be
delete extra words; Henri Kemppainen
11 years ago
deraadt
8ed545139e
update documentation for these functions. They now state the case regarding
pthreads and chroot, and safe initialization without /dev/random and such
junk. If you are in control of an arc4random in another library, please look
at these pages and get caught up.
ok various
11 years ago
deraadt
0fc3ded4b5
Remove arc4random_stir() and arc4random_addrandom(), which none should
be using directly. Well, a few rare people cloned it upstream and it
will take a bit of time for them to learn.
ok various
11 years ago
guenther
0442f09344
Missed the file renames for the string functions when committing the
DIST_LIB/DIST_OBJ/*.do changes
11 years ago
djm
4e97084c58
a couple of warning fixes and an RCS marker; ok markus@
11 years ago
markus
19636afcee
replace rc4 with ChaCha20; inspired by Nick Mathewson's work on libottery;
feedback and ok djm@
11 years ago
millert
afbd6e72e2
Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
11 years ago
millert
fb3c12e47e
Add examples to show why this is a terrible API. OK jmc@ henning@
11 years ago
millert
0f37c5c11d
According to POSIX, if the src and dst strings overlap, the behavior
is undefined. Add a warning to that effect. OK deraadt@ jmc@
11 years ago
jmc
002e0f6e70
no longer any need to quote macro lines with >9 args;
From: Jan Stary
11 years ago
kettenis
9a1134ebb6
Add linker warnings for rand() and random() and various related functions.
ok deraadt@
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
3d36d226ed
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
11 years ago
deraadt
8d8738cfc7
remove some incredible lies about overlapping buffers
ok guenther
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
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
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