tedu
dcb96ce7a3
Improve wording in alloca.
1. it's not a bug; it's a caveat.
2. "slightly unsafe" gives me the willies.
3. one .Xr to malloc should suffice
ok deraadt jmc
10 years ago
deraadt
75d428b273
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
10 years ago
deraadt
5b4d0b0e24
Since <netdb.h> soon won't include <sys/param.h>, MAXHOSTNAMELEN may
not be in scope, so hardcode as 256. Other options have more downside.
10 years ago
deraadt
d82c4b0635
Switch to including <sys/types.h> instead of <sys/param.h>
This hides the unavoidably cruddy sys/param.h namespace in some programs.
Little impact, because many programs are cruddy and still get it via
other includes.
ports testing thanks to sthen and naddy
ok guenther millert
10 years ago
tedu
826668e285
we don't have an alloca() symbol anywhere in libc, don't prototype it.
instead, #define to __builtin_alloca. if that doesn't work, you're hosed.
from an old discussion about the perils of alloca. (don't use alloca!)
10 years ago
schwarze
3772d4b01b
remove .Tn; from Jan Stary <hans at stare dot cz>
10 years ago
chl
2c03498197
remove unused variable
ok tedu@
10 years ago
millert
1a5ffaf941
Use explicit_bzero instead of memset in hash Final and End functions.
OK deraadt@ djm@
10 years ago
deraadt
345209bd2a
back in september I did the large abstraction refactoring to allow these
other systems to fit into the same mold, so add copyright
10 years ago
millert
70272b819c
Make strlcpy/strlcat slightly easier to read.
10 years ago
naddy
281ec163e9
Switch drift file format to ppm for compatibility with the ntp.org
daemon.
Old drift files will be interpreted as a minuscule adjustment and
ntpd will proceed to rediscover the drift, like starting from zero
on a newly installed machine.
ok deraadt@
10 years ago
bcook
3f937ba631
bump failure to set the initial time from debug to warning
from Paul B. Henson, ok phessler@
10 years ago
bcook
70297880a3
fix some memory leaks in dns handling.
- Nothing seems to free the result of host_dns(), so add host_dns_free() and
call after each query.
- If imsg_add() fails, it frees buf. Avoid subsequently dereferencing the
freed buf in imsg_close().
ok millert@ deraadt@
10 years ago
bcook
53a61ebe90
prefer sizeof(thing) to sizeof(type)
ok tedu@ deraadt@
10 years ago
millert
1644b19fff
Add fgetwln(3) from FreeBSD and bump libc minor revision.
10 years ago
deraadt
78f9439cae
Due to recent savings with instbin, we can take i386 to one install
floppy. A few drivers are missing, but the world has moved on (the drivers
included are always a work in progress)
Speeds up make release substantially, of course.
10 years ago
tedu
94520ae40e
rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,
nor are they the same size.
10 years ago
tedu
ff1d6653e1
don't check for a return value that host() doesn't return, so future
generations don't try to change any of the values and break the code.
ok deraadt
10 years ago
bcook
d66f723105
revert host() back to correct behavior.
unbreak config file address parsing
10 years ago
bcook
e32816bab7
return -1 on host() address parsing failure, not 1.
Match what parse.y expects it to return.
ok millert@
10 years ago
deraadt
eb02123984
remove excessive/wrong use of sys/param.h
peanuts -- but all work has to start somewhere.
10 years ago
bcook
2c934bd111
log as LOG_DAEMON in log_init again.
I mirrored from smtpd a little too literally.
10 years ago
deraadt
8ab45b8557
missing , found by Dongsheng Song
10 years ago
deraadt
1eaa32d2da
declare a local version of MIN(), call it MINIMUM()
(sorry, my other changes were accidentally premature)
10 years ago
bcook
e69bd15d31
sync log.c from smtpd.
Reduces the number of log.c snowflakes by a little, and gives ntpd a
variadic fatal() function to be used later.
ok deraadt@
10 years ago
deraadt
474792cd61
declare a local version of MIN(), call it MINIMUM()
10 years ago
bcook
950986b2ca
use the correct format string for refid
ok deraadt@
10 years ago
deraadt
c7195d4619
Do not need sys/param.h
10 years ago
tedu
3e66a761e0
stupid me. need errno.h
10 years ago
tedu
f2faceb1ea
set errno = EINVAL for invalid salts and hashes in most functions.
remember to set EACCES in bcrypt_checkpass for hash differences.
the higher level crypt_checkpass function will reset errno to EACCES in
all cases, which is probably the right behavior, but this change gives code
working with the lower level functions the correct errno if they care.
10 years ago
naddy
fb8b85f8dc
5.8 packages key
10 years ago
bcook
bfaebb4169
mix in more virtual memory and process information
10 years ago
deraadt
d06eea4bf5
add 5.8 base key
10 years ago
sthen
dddb521475
firmware key for 5.8
10 years ago
bcook
015bfd5abc
add initial HP-UX getentropy/arc4random support.
patch from Kinichiro Inoguchi, tested on HP-UX 11.31
ok deraadt@
10 years ago
tedu
06084f37f2
rename kern enter/exit macros to malloc enter/leave to better reflect
what's going on.
10 years ago
tedu
6758bf4952
convert clock() to clock_gettime() for improved precision (and accuracy?)
guenther suggested using thread time, which actually may improve accuracy
if somebody puts this in a threaded program.
10 years ago
bcook
f04311c2a3
use MAXIMUM as the canonical local MAX macro.
suggested by deraadt@ re: more general MIN/MAX cleanups
10 years ago
bcook
2b0bc47767
rename sockaddr_un variables from 'sun' to the more common 'sa'.
This avoids a namespace conflict with Solaris build environments.
discussed with deraadt@ and kettenis@
10 years ago
bcook
63d93971e4
don't rely on sys/param.h having a MAX macro.
Switch to local definitions where MAX is needed.
discussed with deraadt@
10 years ago
bcook
1f5712d8d6
Remove the unused dns_pid variable.
Nothing is done with the return value from ntp_dns, and it already calls
fatal() on failure.
ok deraadt@
10 years ago
bcook
d25ace0611
removed unused libevent header and structures in ntpd.h
ok deraadt@ phessler@
10 years ago
bcook
d33f0cc042
Add a missing include for time.h to get the definitions of clock_gettime and strftime.
ok jsing@ phessler@ naddy@
10 years ago
miod
fa37c0f6f5
Fix dow and apply the usual easter egg.
10 years ago
ajacoutot
e5c0d4b303
Fix return code of _rc_quirks().
ok robert@
10 years ago
deraadt
f006c12698
adjust date
10 years ago
ajacoutot
33a3eef999
Add a comment about the default values being duplicated in rcctl(8).
discussed with schwarze@
10 years ago
deraadt
0a2d9a6853
move to 5.7-beta
10 years ago
jasper
56237a5383
add entries for xmpp, mdns and puppet
ok aja@
10 years ago
bluhm
956d45dc9b
Add syslog-tls 6514/tcp to etc/services.
OK jasper
10 years ago