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
093859655c
Make ndbm match POSIX. A datum consists of a void *dptr and a size_t dsize.
Also make the open functions take a mode_t, not int. OK deraadt@
20 years ago
millert
5fd6059fd1
XPG specifies bsd_signal(3) so make it an alias for signal(3); OK deraadt@
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
tedu
0ad4710abb
strtonum, a nicer version of strtoll, by millert and myself.
ok deraadt@ millert@
20 years ago
drahn
429915f6ba
Remove OpenBSD/pegaos, this has been announced before but delayed until
the tree was stable. No point in code supporting a company which screws
its employees being in the OpenBSD tree.
20 years ago
millert
45868bb9af
Do a better job of documenting strerror_r() and add an ERRORS section.
20 years ago
espie
075eca378d
build the error message in strerror_r.c directly, avoiding one copy there.
handle a few subtle details caught by the regression tests: correct
termination, non copying if buffer length == 0, errno setting.
let all former users of __strerror go through strerror_r.
Work by Todd Miller and I. Okay millert@.
20 years ago
millert
83cba58ed3
Rev 1.4 was bogus (committed from the wrong tree), this repairs it.
20 years ago
millert
a3e8d914af
some minor KNF
20 years ago
miod
2321142202
Install /etc/wsconsctl.conf on luna88k.
20 years ago
espie
5d22c77bac
let __strerror fill precisely the part of the buffer it can.
okay millert@
20 years ago
deraadt
74e643a7e1
rbootd privsep uid/gid
20 years ago
espie
bb84af69e3
Let __strerror work by fixing a number of problems. Work by tholo and I,
okay millert@.
- atoi was bogus.
- atoi was not reentrant.
- there's no reason to cast stuff to unsigned int.
20 years ago
jmc
4b37372268
oops, this was a reference to the local delivery agent - correct it
to /usr/libexec/mail.local;
from millert@
20 years ago
jmc
3f4d230022
the mail command lives in /usr/bin, not /bin;
ok xsa@ henning@
20 years ago
frantzen
5547b93a93
reminder to set net.inet.ip.forwarding/net.inet6.ip6.forwarding in sysctl.conf
ok cedric@ mcbride@
20 years ago
millert
18f2266550
Sync with md5.c rev. 1.4
20 years ago
millert
31a77154fb
Changes inspired by Markus's rmd160 implementation:
o Make MD5Update() more readable
o Simplify padding in MD5Final()
o Do copy + byte flip in MD5Transform() instead of in the caller
The result is a faster md5 and the byte order foo is kept to a minimum.
20 years ago
millert
29064d763b
Undo some recent prototype changes; it is legal to pass the helper
functions can take a NULL buf pointer. They will malloc memory as
needed in this case.
20 years ago
millert
c71980a843
The data pointer passed to the transform function may not be properly
aligned so copy it in a way that a) is endian indepenent and b) does
not rely on alignment. Problem found and solution tested by hshoexer@
20 years ago
jmc
fc7f44a3cc
typo in SEE ALSO;
20 years ago
millert
1e36196ad9
more KNF
20 years ago
millert
224ee4053e
Some KNF
20 years ago
millert
6766bb800e
KNF: function names should be at column 0 for easier grepping.
20 years ago
millert
ed861eb432
Pass sizeof(*pointer) not sizeof(point) to memset. Karsten Desler.
20 years ago
millert
9eef84d714
Don't build lib/libc/md, build md[45] in lib/libc/hash instead.
20 years ago
millert
93807fbee0
md[45] man page
20 years ago
millert
dbbc112215
Xr sha2(3)
20 years ago
millert
6a5149bdf9
PD md4 code derived from Colin Plumb's md5 routines.
20 years ago
millert
2ee8a23109
Rename members of struct MD5Context to match other hash routines.
Add constants for buffer lengths and use them.
Make bit count 64bit based on changes by niklas@ long ago.
Conver htole32n() to macros and unroll loops.
20 years ago
millert
95118666b1
PD version of md5(3) based on code written by Colin Plumb.
20 years ago
deraadt
a32eb59352
spacing
20 years ago
henning
5085be96f6
add /etc/isakmpd/pubkeys/{fqdn,ipv4,ipv6,ufqdn}, theo markus ok
20 years ago
markus
7cb9289915
generate a isakmpd (host) key; ok henning, deraadt, cedric
20 years ago
millert
14ad1886b5
Add __bounded__ attributes like the other hash functions have.
With help from avsm@
20 years ago
millert
dc5a1f903b
Make the bit count u_int64_t instead of two u_int32_t. Adapted from
changes Niklas made to the md5 code long ago. OK hshoexer@
20 years ago
mcbride
51f5b17de1
Fix typo in ifstated.conf. Reported by matthew zeier, then forgotten...
re-reported by Jan Filipovsky.
20 years ago
millert
9b2dd21027
Use a common source file for all the hash helper functions that
previously lived in foohl.c. The foohl.c files are now generated
via sed, though perhaps cpp could be used in the future.
Use u_int8_t instead of unsigned char for the buffers struct fooContext.
Add constants for buffer lengths and use them in function prototypes
and the man pages.
This is basically cosmetic surgery; there should be no functional changes.
OK deraadt@
20 years ago
deraadt
7bcb432182
double check that the carp* interfaces exist before knocking them down,
mcbride and i think this diff looks good but do not feel like doing the
250 meter walk to go test it
20 years ago
beck
a319435c75
add spamd.conf to /etc/changelist and mtree/special
from Dmitry Medvedev, ok deraadt@
20 years ago
miod
ef1e45b2f7
Regen
20 years ago
miod
0637018130
Populate /etc for luna88k
20 years ago
miod
d562f4e5e4
Add luna88k related directories and information to the build infrastructure.
ok deraadt@, millert@, krw@ - mdoc ok jmc@
20 years ago
jmc
35fc1dffbe
kill whitespace at eol;
20 years ago
millert
fb3c830539
Adapt to new pw_copy() API, closes PR 3698.
20 years ago
millert
d0d2e5a2ff
Change pw_copy(3) to take a 3rd arguement, the existing passwd entry.
This allows an application to only update a password entry if it is
in the state it expects. Additionally, if the old passwd struct
is specified the new one may have a different pw_name field since
matching is done on the original. Adapted from FreeBSD.
20 years ago