summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-12Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were toMartin Pieuchot
set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag. Even if the purpose of this flag is questionnable on OpenBSD because DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small step towards the simplification of the autoconf(9) device states. This cleaning is now possible thanks to the work of pirofti@ to convert all the USB drivers to properly use usbd_is_dying(). Discussed many times with deraadt@
2014-07-12Make disabling last cipher work.Philip Guenther
From Thijs Alkemade via OpenSSL trunk ok miod@
2014-07-12essentially mechanical conversion of softraid rebuild fromBret Lambert
workq to taskq ok jsing@
2014-07-12move macppc abtn(4) driver from workq to taskqBret Lambert
thanks to Fred Crowson (fred () crowsons ! net) who was able to make sure his cd would still eject when the button was pushed, and stsp@ who lent me his macppc laptop
2014-07-12Remove incorrect comment about how autoconf(9) works and documentMartin Pieuchot
that usbd_detach() should only be called by the thread doing USB bus exploration to prevent attach/detach races.
2014-07-12Only detach the USB device you disconnected, fix a regression reportedMartin Pieuchot
by guenther@. While here set the dying flag of the disconnected device so that most of the DVACT_ACTIVATE handlers can go.
2014-07-12syncTheo de Raadt
2014-07-12move exports, ftpchroot, hosts.lpd, printcap, and remote to the examplesTheo de Raadt
directory. ok robert
2014-07-12The statdb code has never been complete herePhilip Guenther
2014-07-12Kill never enabled #ifdefsPhilip Guenther
2014-07-12Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42Theo de Raadt
code that catches lots of signals, and then re-enters curses... before exiting.
2014-07-12config-def.h is now unnecessary; merge config-data.h into defs.hPhilip Guenther
2014-07-12Kill os-openbsd.h: we have <paths.h>, _PATH_RSH, and utimes()Philip Guenther
2014-07-12-DOPENSSL_NO_KRB5 is no longer neededTheo de Raadt
ok guenther
2014-07-12Implement checksum offload for divert(4): simply set the checksum flagLawrence Teo
and let the stack take care of the checksums for reinjected outbound packets. Reinjected inbound packets will continue to have their checksums calculated manually but we can now take advantage of in_proto_cksum_out and in6_proto_cksum_out to streamline the way their checksums are done. help from florian@ and henning@, feedback from naddy@ ok florian@ henning@
2014-07-12SETARGS and NEED_HASMNTOPT paths are dead; rshrcmd() and libz stuff arePhilip Guenther
no longer (were never?) used
2014-07-12Deleted unused local prototypes for systems stuffPhilip Guenther
2014-07-12No really, assume POSIX: errno is declared for us and sys/stat.h hasPhilip Guenther
S_IX{USR,GRP,OTH}
2014-07-12Rename 'link' parameter to eliminate shadow warningsPhilip Guenther
2014-07-12Delete unused globalPhilip Guenther
2014-07-12Eliminate some annoying variable shadowingPhilip Guenther
2014-07-12Yes, we have setproctitle(). Delete that and several unused HAVE_* #definesPhilip Guenther
2014-07-12Unused variable from oldrdist cleanupPhilip Guenther
2014-07-12The hosts.lpd file must exist, or no permission is granted. Change theTheo de Raadt
the log messages to clarify the reason for the failure to clarify the condition. ok guenther
2014-07-12Welcome to 1989: assume the compiler support constPhilip Guenther
2014-07-12Per C99, wchar.h has to forward declare struct tmPhilip Guenther
2014-07-12If a constant string needs a name, use a static const array insteadPhilip Guenther
of a pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings.
2014-07-12odds are that some ABI change occured today, no matter how careful everyoneTheo de Raadt
is
2014-07-12enough churn, a crank is advised by guenther..Theo de Raadt
2014-07-12Preread the thermal zone trip points before reading the temperature value.Mike Larkin
This is needed on some (specifically HP) machines to avoid _TMP reporting a bogus temperature value (temperatures > 4,000 degC), which causes acpitz to automatically shut down the machine because it thinks it's floating in lava. Also ensure that we can accept a temperature reading of 0 degC - we were previously interpreting 0 degC as "bad temperature data" and not attaching the thermal zone device. Some machines have ephemeral temperature sensors that come and go (eg in docks) and we want to make sure we attach those even if they report back 0 degC on initialization. Fixes some machines with "failed to read _TMP" errors. ok deraadt, tested and verified by a few folks on tech@ who were seeing the thermal zone shutdown isue.
2014-07-12syncTheo de Raadt
2014-07-12document sendsyslog(2); ok guenther tedu matthewTheo de Raadt
2014-07-12fix the two links on the start pageIngo Schwarze
2014-07-12indent as suggested by deraadt, no functional changeIngo Schwarze
ok sthen@ deraadt@
2014-07-12Initial version of libressl - a library that provides a clean, simple,Joel Sing
consistent and secure-by-default API for SSL clients (and soon servers). This is a long way from complete and the interface will likely change substantially - committing now so that further work can happen in the tree. Initiated by tedu@ and inspired by discussions with tedu@, beck@ and other developers.
2014-07-12Test filtering by methodReyk Floeter
ok bluhm@ benno@
2014-07-12syncTheo de Raadt
2014-07-11use CC when running configureJonathan Gray
matches the behaviour of the other Makefile.bsd-wrapper files ok miod@
2014-07-11Put a license file into the test directories with multiple argumentAlexander Bluhm
files. We do not want to put a license header into each subtest. suggested by reyk@
2014-07-11optimize a FALLTHROUGHSebastian Benoit
implicit ok reyk
2014-07-11As reported by David Ramos, most consumer of ssl_get_message() perform lateMiod Vallat
bounds check, after reading the 2-, 3- or 4-byte size of the next chunk to process. But the size fields themselves are not checked for being entirely contained in the buffer. Since reading past your bounds is bad practice, and may not possible if you are using a secure memory allocator, we need to add the necessary bounds check, at the expense of some readability. As a bonus, a wrong size GOST session key will now trigger an error instead of a printf to stderr and it being handled as if it had the correct size. Creating this diff made my eyes bleed (in the real sense); reviewing it made guenther@'s and beck@'s eyes bleed too (in the literal sense). ok guenther@ beck@
2014-07-11Add OpenBSD RCS id.Alexander Bluhm
2014-07-11Limit HTTP header length to about 8K (based on the default of 4-8K inReyk Floeter
common web servers). Add a related regress test. OK benno@
2014-07-11boot(9): Undo curproc-overriding hacksMasao Uebayashi
Some (not all) boot(9) implementations have ancient hacks which overrides if (curproc == NULL). This was probably made in a hope to forcibly proceed various clean-shutdown related code, including VFS shutdown. Let's clarify that clean-shutdown needs process context; it is impossible to cleanly shutdown VFS from within e.g. a panic in SPL_HIGH. OK kettenis@
2014-07-11Fix on big-endian arches after the inode change.Miod Vallat
2014-07-11Add a test framework for the ospfd routing daemon. For each testAlexander Bluhm
one fresh daemon is started with an individual config. It is talking OSPF via a tun interface. At the process side of the tun device a client is running. This test programm is parsing the OSPF packets and generates new ones. It simulates other OSPF daemons. For now only hello packets are tested. Each test has a task list which drives the ospfd through its interface state machine. The plan is to extend the framework for the other OSPF packet types and state machines. Eventualy the generated kernel routing messages could also be checked. I have developed this test suite together with Florian Riehm.
2014-07-11make http decode linear time. also remove a redundant null check.Ted Unangst
ok schwarze
2014-07-11http headers must end lines with CRLF. ok schwarzeTed Unangst
2014-07-11Let us hurry. There is nothing to fear here.Ted Unangst
That's what scares me.
2014-07-11regenTed Unangst