mickey
3ce549ead6
repair libkern support (again) and add rcsids
20 years ago
jmc
87f49b32c3
update FILES;
fixes pr #3998 ; diff from frank denis, though slightly different fix
committed;
help and ok millert@
20 years ago
jmc
e4864d738c
.{N,O}x fixes;
20 years ago
millert
73909ccd96
Treat EOF at prompt the same as 'n' instead of looping forever.
Noticed by mepch@. OK pedro@ and deraadt@
20 years ago
hshoexer
b4bc6e4e69
knf, no binary change
ok krw@ millert@
20 years ago
hshoexer
a614ba518a
ansi, indentation, etc.
ok markus@ krw@ cloder@ millert@
20 years ago
hshoexer
51c7463ada
kill spaces
ok djm@
20 years ago
jsg
32715ebf87
add some missing $, ok djm@ 'That looks fine to me' millert@
20 years ago
millert
306ca78d1d
Add HISTORY; from Jose Nazario
20 years ago
deraadt
a088bfecd9
label a switch fallthrough
20 years ago
deraadt
2245b99438
avoid aliasing over library symbol
20 years ago
deraadt
3a5df51764
cast not needed
20 years ago
millert
9d799d1171
Fix MD5FileChunk() when passed a 0 length; makes MD5File() work again.
From Peter Galbavy.
20 years ago
otto
ad963acdf7
fix 1099512676352 -> 2.0T; ok miod@
20 years ago
deraadt
efb1c5583a
do the char * to u_char * song and dance back and forth explicitly as
we match API's against each other, fun eh; millert ok
20 years ago
millert
33d1181051
Whoops, ripemd was broken, not ripemd-160.
20 years ago
millert
13266903e8
Collisions have been found for the full versions of MD4, MD5 and RMD160.
20 years ago
jaredy
56c63c4e20
mention strtonum(3)
ok millert jmc pedro
20 years ago
tdeval
80b2c084f6
Back out to brk(2) version.
20 years ago
tdeval
afbf541ae4
- Remove the userland data limit check. It's mmap(2)'s job.
- When malloc_abort==0 (MALLOC_OPTIONS=a), don't abort in wrterror().
fine deraadt@
20 years ago
tdeval
e5a0109c9f
Missing check for NULL.
20 years ago
millert
b6d4073b5f
It's not really possible to make strtonum() deal with unsigned long
long values properly so don't bother trying. This greatly simplifies
the code. tedu@ OK with input from otto@ and others.
20 years ago
tdeval
f2430b4096
After a long gestation period, here comes our custom version of malloc(3)
using mmap(2) instead of sbrk(2).
To make a long story short, using mmap(2) in malloc(3) allows us to draw
all the benefits from our mmap(2)'s randomization feature, closing the
effort we did for returning memory blocks from random addresses.
Tested for a long time by many, thanks to them.
Go for it ! deraadt@
20 years ago
otto
a36fba04b6
Do not forget to test the lower bound if the upper bound > LLONG_MAX.
ok millert@
20 years ago
millert
baad1c3ad7
Avoid comparing unsigned and signed long longs since the signed
one will get implicitly cast to unsigned. Fixes a bug with negative
minval noticed by mjc@. Similar to a diff from miod@. OK miod@.
20 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
marc
059a2dd23c
errno changes, lib major version bumps, and general flag day
To build you must:
cd /usr/src && make obj && make includes
cd lib/libc && make depend && make && NOMAN=1 sudo make install
cd /usr/src && make build
20 years ago
jmc
9ddc3b1129
kill dead .Xr to memory(3);
from kjell@
20 years ago
millert
c90a644274
Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net.
Now passes the regress tests.
20 years ago
jfb
7a1e9128cc
Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
20 years ago
marc
620a3670ec
errno -> err in a structure. OK deraadt@
20 years ago
millert
6c1618adfd
An optional argument cannot start with '-', even if permutation is
disabled. Magne Oestlyngen.
20 years ago
millert
638ec6cc63
In the Final function, move the context zeroing into the digest != NULL
scope so that passing a NULL digest is equivalent to the Pad function
(like it used to be). Fixes skey w/ sha1 as noticed by David Krause.
20 years ago
deraadt
2462bc4b83
knf; otto ok
20 years ago
otto
903036c95c
Add .Xr's to the commands implementing the various digests. ok millert@
20 years ago
millert
6e98a98e41
Simpler byte order flipping. Now the only place we explicitly check
for the host byte order is when we copy the final digest (and that
is just an optimization).
20 years ago
tedu
5435516474
improved man page, with example and error strings, suggested by deraadt@
man help jmc@
20 years ago
deraadt
3452944e6b
typo; sq@oganer.net
20 years ago
millert
9a4115e513
Make the Transform functions match the other hash types and document them.
Use sizeof() in the Init functions where it makes sense.
Use weak aliases instead of wrapper functions.
Probably should have gone in before the major bump but as these are only
used internally by the sha2 functions themselves there should be no problem.
20 years ago
millert
f181b464e0
Make the 2nd arg to SHA1Transform const again and unifdef SHA1HANDSOFF.
It was defined before and there is no need to for this knob...
20 years ago
jmc
eaf41443d6
sort SEE ALSO;
20 years ago
millert
2f87adf68b
Be smarter about signed vs. unsigned (produces better error messages).
OK otto@
20 years ago
millert
3fc0f059df
Missed this in the __strerror() removal.
20 years ago
millert
cb92ad54e0
Sync some prototypes with the headers
20 years ago
millert
ca2cf99d81
Some u_char -> u_int8_t conversion I missed earlier.
20 years ago
millert
80dc37e3c6
Use KNF indentation style and do some u_char -> u_int8_t conversion
I missed earlier.
20 years ago
millert
f788b66522
No longer need __strerror(3) now that we use strerror_r() inside libc.
20 years ago
millert
e2e5c3d50c
Add Pad and FileChunk functions for each family of hash functions.
The Pad function does padding like in Final but does not finish processing.
The FileChunk function creates a digest from a portion of a file.
Also made the length parameters consistent (and size_t).
20 years ago
millert
d3af4c4238
Add _Exit(3) as per C99. Discussed with espie@ some time ago.
20 years ago
tedu
55adc08842
typo spotted by grange
20 years ago