Commit Graph

70528 Commits

Author SHA1 Message Date
sommerfeld abff7e84fd If FORMAT_AUDIT is set, and WFORMAT is set and > 1, turn on
-Wnetbsd-format-audit for extra-stringent format checking.
WFORMAT belongs in individual makefiles and/or Makefile.inc files.
FORMAT_AUDIT should go in mk.conf if you're doing format-string auditing.
(set WFORMAT=1 in individual makefiles if a program is
not security critical and is doing bizarre things with
format strings which would be even uglier if rewritten)
FORMAT_AUDIT may go away in time (i.e., default to on)
2000-10-04 19:27:45 +00:00
mjl 9ff98d4d50 Un-__P and ANSIfy. 2000-10-04 19:24:59 +00:00
sommerfeld ad8aa5a492 Enhanced format string checking.
If -Wformat is enabled, try harder to chase down compile-time constant
format strings.. capable of catching things like:
	const char foo[]="%s %d";
	printf(foo, 1, "2");

If the new option -Wnetbsd-format-audit (no, I don't like the name,
either) is enabled, complain about non-constant format strings we
can't verify.  In particular, for *v*printf-like functions (i.e.,
non-variadic functions which are passed a va_list), insist that the
format string come from a parameter declared as a format string
argument, so that functions which should be declared as printflike are
caught at compile time.
2000-10-04 19:21:28 +00:00
mjl 277079480a Correct typo in comment.
Use errx instead of printf/exit.
Sort headers alphabetically.
2000-10-04 19:14:53 +00:00
mjl 7627a9213f Un-__P and ANSIfy. 2000-10-04 18:52:50 +00:00
tsutsui cc135eb39f Add MI mk48txx. 2000-10-04 18:44:24 +00:00
mjl e88c38cfda No \n in syslog messages.
_exit(-1) -> _exit(1).
2000-10-04 18:24:03 +00:00
itojun 779fc41d88 enable rnd(4) 2000-10-04 18:14:35 +00:00
sommerfeld 934ef16427 Format size mismatch 2000-10-04 18:12:01 +00:00
itojun 194446c648 plug possible printf string format issue. seen on openbsd mailing list 2000-10-04 17:58:44 +00:00
sommerfeld 12c2f5bd9a Add format checking 2000-10-04 17:12:01 +00:00
tsutsui d11ef545cd Enable sanity checks in mk48txx_gettime().
(Many news68k have dead NVRAM.)
2000-10-04 17:00:45 +00:00
tsutsui 39787038e9 Switch to MI mk48txx driver.
XXX All config files should be updated since now clock address does not
XXX contain clock register offset in NVRAM.
2000-10-04 16:35:43 +00:00
tsutsui 3f1232147d Initial bus_space(9) support for news68k. From hp300. 2000-10-04 16:26:43 +00:00
sommerfeld 8aefd97377 Format string audit cleanup (increase format checking) 2000-10-04 16:24:49 +00:00
sommerfeld acf589519a format string audit (silence warnings, save space) 2000-10-04 16:21:39 +00:00
sommerfeld f9d3ae0fbb format-string audit cleanups 2000-10-04 16:11:27 +00:00
hubertf 037fd8a74e Make even more silent, only spit out stuff if -v is given.
Found during a post-install of a fresh machine:
1. setenv PKG_PATH ftp://smaug.fh-regensburg.de/pub/NetBSD/arch/i386ELF/All
2. pkg_add tcsh ssh XF86Config
3. Run XF86Config
4. pkg_add kde
5. Be done.

We should do this from /etc/rc.local on first boot... :-)
2000-10-04 16:01:50 +00:00
sommerfeld 4c38fc5aac Varargsify dprintf to allow for format string checking 2000-10-04 14:56:24 +00:00
sommerfeld 76a009b2be Avoid compile-time variable format string (format audit) 2000-10-04 14:52:27 +00:00
sommerfeld ae42ec1652 Avoid run-time construction of format string we can build at compile time 2000-10-04 14:46:23 +00:00
uch 478ab76ca3 experimental power management support for TX3912/TX3922 based model. 2000-10-04 13:53:54 +00:00
jdolecek a93350bb37 document output format, so that users would know exact meaning
of printed statistics
2000-10-04 11:40:51 +00:00
jdolecek cf8b00f58b setup(): use calloc() for blockmap allocation, instead of malloc() followed
by bzero(); the net result is that the test for allocation failure
is actually sensible now
2000-10-04 11:37:54 +00:00
bouyer a2c02690af only VT82C586A rev >= 6 supports Ultra-DMA. From OpenBSD. 2000-10-04 09:34:09 +00:00
itojun 5774bbe1fb describe crypto_{idea,rc5} 2000-10-04 09:10:34 +00:00
toshii aeeb938ec6 Wrap __cmsg_alignbytes in __BEGIN_DECLS ... __END_DECLS. 2000-10-04 08:59:16 +00:00
nisimura 8d263719b9 Merge exception return path of SystemCall and UserGenException into
proc_trampoline.
2000-10-04 08:46:21 +00:00
itojun 982906430e honor behavior of warn(NULL). 2000-10-04 08:40:49 +00:00
itojun 58b3b7a40a plug warn() call with variable only, just in case - honor behavior of warn(NULL) 2000-10-04 08:38:09 +00:00
tsubai 9fa9ef4716 Add rnd. 2000-10-04 08:26:42 +00:00
itojun 4b7b1d8d36 more change name to meet the filename 2000-10-04 07:22:56 +00:00
itojun f434bd4ff6 change name to meet the filename 2000-10-04 07:21:22 +00:00
itojun d3e00e4496 move ssl(4) to ssl(3). sorry for the mess. 2000-10-04 07:15:06 +00:00
enami d86752997f Free mbuf when dropping VLAN frame due to no configured vlan interface. 2000-10-04 07:01:52 +00:00
itojun 23a6673513 modify some chapters 2000-10-04 06:52:11 +00:00
enami b817ce40cb Cosmetic changes. 2000-10-04 06:51:12 +00:00
itojun 818f52495c avoid RCS tags 2000-10-04 06:46:13 +00:00
enami bc50cb2cae Remove redundant assignment. 2000-10-04 06:20:05 +00:00
itojun 5ca577ee77 add manpages for libcrypto. still need to review contents. 2000-10-04 05:58:15 +00:00
itojun a20f489194 add manpages generated by pod2man. need fixes here and there. 2000-10-04 05:41:25 +00:00
itojun 57e22c0d8a a clean target.
move config.5 to openssl.cnf.5.
2000-10-04 05:39:08 +00:00
itojun 6e50408d00 Makefile for generating manpage (require perl, should be used offline) 2000-10-04 05:34:15 +00:00
simonb 6fe5a2b27e Return failure in krb_get_lrealm() if no config files are found, rather
than then searching for a default realm.

Fixes PR lib/11010 from David Brownlee.  Patch from Jason Thorpe.
2000-10-04 04:08:30 +00:00
itojun 70875bf54c add new cipher DOI # including AES.
add CR payload decoder.  fix ID payload decode.
have __attribute__((__packed__)) for align picky arch
(tcpdump.org code has better fix with lots of memcpy, however,
tcpdump.org version needs more verfication).

basically, sync with kame tree.
2000-10-04 03:53:24 +00:00
itojun 37a8d23037 improve error message on rnd(4) failure. the old text made reference
to ssl(4), which is openssl specific (talks about plugin RSA library).
2000-10-04 03:43:57 +00:00
itojun 9e47af8814 enable rnd device. they are now mandatory for ssh/sshd support,
so it makes more sense to enable it.
please disable them if there's any issues, but in that case, in-tree
ssh/sshd won't work.
2000-10-04 03:35:53 +00:00
sato 832204750a fix mistake of sigmarion cmdmap. 2000-10-04 03:31:14 +00:00
itojun 6b9793517d need opt_inet.h for #ifdef INET 2000-10-04 02:51:18 +00:00
augustss 5d4d9ec965 Update with uscanner.c 2000-10-04 02:45:07 +00:00