summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-22Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.Kenneth R Westerback
Pointed out by dickman@. ok sthen@ phessler@
2015-01-22syncTheo de Raadt
2015-01-22Use field names in struct initialisers.Joel Sing
No change to generated assembly.
2015-01-22last entry in NAME should not have a trailing comma;Jason McIntyre
2015-01-22Reduce the number of intermediate buffers by pre-allocating DMA buffersMartin Pieuchot
in the report functions instead of letting the stack do it magically for us. Reviewed and tested by David Higgs, thanks!
2015-01-22Use correct error type and remove unused interface pointer.Martin Pieuchot
From Fabian Raetz.
2015-01-22Add MLINK for tls_config_set_ca_mem()Reyk Floeter
2015-01-22LibreSSL now supports loading of CA certificates from memory, replaceReyk Floeter
the internal and long-serving ssl_ctx_load_verify_memory() function with a call to the SSL_CTX_load_verify_mem() API function. The ssl_privsep.c file with hacks for using OpenSSL in privsep'ed processes can now go away; portable versions of smtpd and relayd should start depending on LibreSSL or they have to carry ssl_privsep.c in openbsd-compat to work with legacy OpenSSL. No functional change. Based on previous discussions with gilles@ bluhm@ and many others OK bluhm@ (as part of the libcrypto/libssl/libtls diff)
2015-01-22Allow to to load the CA chain directly from memory instead ofReyk Floeter
specifying a file. This enables CA verification in privsep'ed processes that are running chroot'ed without direct access to the certificate files. With feedback, tests, and OK from bluhm@
2015-01-22Support CA verification in chroot'ed processes without direct fileReyk Floeter
access to the certificates. SSL_CTX_load_verify_mem() is a frontend to the new X509_STORE_load_mem() function that allows to load the CA chain from a memory buffer that is holding the PEM-encoded files. This function allows to handle the verification in privsep'ed code. Adopted for LibreSSL based on older code from relayd (by pyr@ and myself) With feedback and OK bluhm@
2015-01-22Add X509_STORE_load_mem() to load certificates from a memory bufferReyk Floeter
instead of disk. OpenSSL didn't provide a built-in API from loading certificates in a chroot'ed process that doesn't have direct access to the files. X509_STORE_load_mem() provides a new backend that will be used by libssl and libtls to implement such privsep-friendly functionality. Adopted for LibreSSL based on older code from relayd (by pyr@ and myself) With feedback and OK bluhm@
2015-01-22delete annoying white space that annoyTheo de Raadt
2015-01-22Make it obvious which openssl test complained and whether it was expected.Doug Hogan
ok bcook@
2015-01-22Recognise 'F'/'f' constant suffix for single precision floating point.Jonathan Gray
Prevents indent from inserting a space which broke the build of the development version of Mesa. ok millert@ deraadt@
2015-01-22pool_chk_page iterates over a pages free item lists and checks thatDavid Gwynne
the items address is within the page. it does that by masking the item address with the page mask and comparing that to the page address. however, if we're using large pages with external page headers, we dont request that the large page be aligned to its size. eg, on an arch with 4k pages, an 8k large page could be aligned to 4k, so masking bits to get the page address wont work. these incorrect checks were distracting while i was debugging large pages on landisk. this changes it to do range checks to see if the item is within the page. it also checks if the item is on the page before checking if its magic values or poison is right. ok miod@
2015-01-22Assume that the size of a pointer will not change at runtime.Brent Cook
Change the runtime check for whether a long is smaller than a pointer to a compile-time check. Replace the silly hash for LLP64 platforms. ok tedu@
2015-01-22amd's nfs_prot.x file has some tweaks from the standard; automate them with ed.Philip Guenther
Regenerate the amd's NFS RPC stubs with a current rpcgen, automating the post-generation tweaks to the svc stubs. However, do follow the modern naming style where the svc stubs have a _svc suffix. As a side benefit, this eliminates the need to #include <nfs/nfsproto.h> This is all a prelude to updating amd to talk NFSv3 with the kernel for its own "toplvl" mounts, to squash another y2038 issue.
2015-01-22bring back r1.80:David Gwynne
pass the size of the softc to free. this time we only dereference the cfattach structure if we actually need it once the refcount has dropped to 0. tested by krw@ who found the original panic r1.80 was backed out for. putting this in again so i can find out when else will break.
2015-01-22Make syslogd tests more reliable on slow machines. All tests passAlexander Bluhm
on my old sparc64.
2015-01-22Do not need to include <sys/cdefs.h> when headers included above end upTheo de Raadt
doing so.
2015-01-21tweak previous; ok schwarzeJason McIntyre
2015-01-213 different .h files here include ioccom.h. Do not need to include it directlyTheo de Raadt
2015-01-21if_media.c needs net/if_var.h. This fixes the build with IFMEDIA_DEBUG.Theo de Raadt
from Fabian Raetz
2015-01-21complete the circle so all ql pages xref all other ql pagesTed Unangst
2015-01-21Do not need sys/cdefs.hTheo de Raadt
2015-01-21remove #if 0 cdefs.h blocksTheo de Raadt
2015-01-21To satisfy kernel grovellers and bad (but document) sysctlTheo de Raadt
practice, be pragmatic and #include <sys/timeout.h> for struct tcpb (glorious namespace violation) ok kettenis millert sthen
2015-01-21Ooops, no need to include sys/cdefs.h.Reyk Floeter
Pointed out by florian@
2015-01-21httpd is based on relayd and had included many headers that are onlyReyk Floeter
needed by its ancestor. jsg@, include-what-you-use, and some manual review helped to cleanup the headers (take iwyu with a grain of salt). Based on common practice, httpd.h now also includes the necessary headers for itself. OK florian@
2015-01-21Include <netinet/in.h> before <net/pfvar.h>. In a future change whenTheo de Raadt
ports is ready, <net/pfvar.h> will stop including a pile of balony.
2015-01-21Remove the useless variable ifa in rt_getifa().Alexander Bluhm
OK mpi@
2015-01-21Rudimentary implementation of the roff(7) \o escape sequence (overstrike).Ingo Schwarze
This is of some relevance because the pod2man(1) preamble abuses it for the icelandic letter Thorn, instead of simply using \(TP and \(Tp. Missing feature found by sthen@ in DateTime::Locale::is_IS(3p).
2015-01-21By popular demand, put NFS, ipv6 and vlan support in sparc installation media.Miod Vallat
ok deraadt@
2015-01-21Improve overstriking. When overstriking a wider character with aIngo Schwarze
narrower one, center the latter horizontally. After a group of characters printed in the same position, advance by the width of the widest one among them.
2015-01-21Build the argument list for halt/reboot without excessive use ofChristian Weisgerber
the conditional operator. Adapted from NetBSD. ok miod@
2015-01-21Truncate progname to NAME_MAX in the syslog message, to ensure otherTheo de Raadt
information also makes it through. This is a compromise to cope with the absolutely ridiculous setprogname() API. ok various discussions
2015-01-21Use plain "-p" to specify "halt and power down", for consistencyChristian Weisgerber
and compatibility with other BSDs. Adapted from FreeBSD. Still permit the combination "-hp" as requested by many. ok sthen@
2015-01-21Even without BATs memory under ``physmaxaddr'' is mapped 1:1 in theMartin Pieuchot
kernel, so update pmap_extract() accordingly and save a VP lookup. While here unify pted checks after the VP lookups. ok miod@
2015-01-21I don't foresee knowing that my i386 netbook has an AT/286+ bios andTed Unangst
not a PCjr bios will help diagnose any problems. ok deraadt kettenis
2012-07-11bring in a persistent event driven tftp-proxy to replace the libexecDavid Gwynne
one run out of inetd. the libexec tftp-proxy had the same problems as the libexec tftpd, in that it didnt scale as well as we needed. it also had a bunch of interesting races with states and addresses on sockets. manpage is coming. ok deraadt@ sthen@ henning@ matthew@
2015-01-21Do not try to stop and reset endpoints if USB transfers are abortedMartin Pieuchot
because the HC has been shut down (during suspend/hibernate) or removed (PCIe card). In both cases the hardware wont complete the commands, resulting in timeouts. Instead just do the software part of the abort process. Unbreak suspend/resume with USB a device connected to xhci(4) as reported by Fabian Raetz on bugs@.
2015-01-21Ubreak the tree by using "struct ifreq" instead of "struct linux_ifreq".Martin Pieuchot
2015-01-21In options-table.c r1.51 an extra space was added to the default status-right,Stuart Henderson
overrunning status-right-length with long window titles. Allow for the extra space so the last digit of the year isn't lost. ok nicm@
2015-01-21Enable ix(4).Mark Kettenis
2015-01-21carpdev argument is no longer optional.Martin Pieuchot
2015-01-21Remove the code to automagically find a "carpdev".Martin Pieuchot
The half-backed logic to find a parent interface before configuring an address on a carp(4) interface is responsible for too many layers of complexity resulting in various breakages everytime something change in the stack. So make carp(4) a bit less special. It now requires a parent interface like all the other pseudo-devices. ok mikeb@, dlg@, florian@, henning@
2015-01-21Add a comment above the autopad checking.Brad Smith
2015-01-21Use the RL_FLAG_AUTOPAD flag when trying to determine whenBrad Smith
to pad short frames.
2015-01-21Pass times as int64_t and eliminate the (long disabled) mount request.Philip Guenther
ABI change, so roll the RPC protocol version; how about 57 for OpenBSD 5.7?
2015-01-21regenPhilip Guenther