summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2015-02-05The pf table process should die if the pipe to the dhcpd process isKenneth R Westerback
closed. e.g. dhcpd has been killed. ok henning@
2015-02-04potential double free in while-loopHenning Brauer
Benjamin Baier <ben at netzbasis dot de>
2015-02-04Fix potentional double free in do-while-loop.Alexander Bluhm
Found by Benjamin Baier with llvm/scan-build; OK florian@
2015-02-03fix odd error recovery (noticed by kili@): fw_update -d with !installedMarc Espie
driver should just say it's not installed and not try to install it.
2015-02-03merge back a part of rev 1.15Brad Smith
2015-02-03merge conflictsBrad Smith
2015-02-03zap scp urls from quirks update for fw_updateMarc Espie
2015-02-03update to NSD 4.1.1, ok sthen@Brad Smith
2015-02-03document the one non-intuitive test there, as I spent 5 mn looking at itMarc Espie
wondering... :)
2015-02-03Fix -aMarc Espie
2015-02-02As a result of the recommendations in RFC 5424, 5425, 5426 set theAlexander Bluhm
maximum syslog message size to 8192 octets. Restrict UDP sending to 1180 octets payload to avoid fragmentation. This is more than the 1024 we supported before. Also truncate the line in printline() to exactly 8192 bytes regardless of visual encoding. That is a more predictable behavior and makes testing easier. Although syslog(3) does not support long messages yet, make sure that /dev/log can receive them. OK deraadt@
2015-01-31Merge in a commit from upstream..Brad Smith
- Fix 0x20 capsforid fallback to omit gratuitous NS and additional section changes. ok sthen@
2015-01-31The error buffer in syslogd might be too small for the TLS errors.Alexander Bluhm
Increase it to 256 bytes and call it ebuf everywhere. OK sthen@
2015-01-30Document the syslogd certificate validation options.Alexander Bluhm
OK jmc@
2015-01-30Start TLS after the TCP connect has finished. Call the TLS connectAlexander Bluhm
callback when the connected socket is writable. This avoids calling a NULL error callback. OK deraadt@
2015-01-30Fix the default interactive level to install the "default" dependencies.Marc Espie
Actually testing it caused me to write correct (and simpler) code...
2015-01-29Fix a regression that removed support for using service names insteadReyk Floeter
of ports. It is now possible to use "listen on * port www" again. Found by ajacoutot@ OK ajacoutot@ blambert@
2015-01-28When comparing the LSA with the Ack, also check the age field. ThisAlexander Bluhm
ensures that a LSA withdrawal is not acked by a previous update. From Florian Riehm; OK claudio@
2015-01-28If not explicitly disabled, syslogd verifies the x509 certificateAlexander Bluhm
and hostname of the TLS server before sending any messages to it. Per default /etc/ssl/cert.pem is used as CA file. OK deraadt@
2015-01-28Remove ssl_by_mem_ctrl() and x509_mem_lookup to unbreak the build. ItReyk Floeter
caused a conflict with a new function in LibreSSL but wasn't even used by ldapd. No functional change. OK deraadt@
2015-01-28jcs found another remnant of cool running modeTed Unangst
2015-01-27fix messages of FwUpdateMarc Espie
2015-01-26Merge in a commit from upstream..Brad Smith
- Synthesize CNAMEs with same TTL as DNAME. ok sthen@
2015-01-23braces to open a function go on their own line like god intendedTed Unangst
2015-01-23delete some code that doesn't (and shouldn't) run. ok deraadt millertTed Unangst
2015-01-23Remove now-unused DebugFlags.Todd C. Miller
2015-01-23Killing my darling. Functionality and binary name moved to pkg_* andAlexander Hall
friends. So long and thanks for all the fish. ok deraadt@
2015-01-23Remove the OK and ERR macros. They obfuscate the code and don'tTed Unangst
help legibility. (unix system calls use 0 for ok, but hundreds of other projects use 1 to indicate success.) Despite the name, many system calls (e.g., open) also return not OK values for success. It also cleans up some weird code like int crontab_fd = OK - 1; This diff is mechanical in nature. Later I will fix the bugs it reveals. ok deraadt
2015-01-23minor debug removal cleanupTed Unangst
2015-01-23remove debug code.Ted Unangst
I think the level of debug code in cron is excessive for a program that has reached feature complete. If cron needs to provide more information to the user about its operational status, I think syslog would be more appropriate. (The debug flags also disable forking into the background, so they aren't even that useful for debugging a live system.) ok deraadt millert
2015-01-22delete useless casts. ok deraadt guenther millertTed Unangst
2015-01-22remove a stupid -Wstrict-prototype warning by making the hash functionTed Unangst
static. noticed by florian riehm
2015-01-22Clean up includes, while here fix a white space which lead to a falseFlorian Obser
positive during grep'ing. OK reyk
2015-01-22Clean up the relayd headers with help of include-what-you-use and someReyk Floeter
manual review. Based on common practice, relayd.h now includes the necessary headers for itself. OK benno@
2015-01-22spacingReyk Floeter
2015-01-22spacingReyk Floeter
2015-01-22wrap long lines; spacing.Reyk Floeter
Repeat after me: "Lines are not longer than 80 characters long" and "mg(1) is the only true editor, I'll use ESC-q to wrap the lines".
2015-01-22Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.Kenneth R Westerback
Pointed out by dickman@. ok sthen@ phessler@
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-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-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.
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-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
2015-01-21Remove all references to the amd -M option (it was disabled long ago) andPhilip Guenther
correct the texinfo validation errors, then re-enable validation
2015-01-21Regenerate the amq RPC stubs with a -current rpcgen, with somePhilip Guenther
post-processing of the server stub to match previous local changes. This corrects the type handling of mt_mounttime, so "amq /mountpoint" doesn't segv trying to treat a time_t as a pointer. With the file (re)generation fixed, we can more easily update the protocol to support 64bit time_t...
2015-01-21amq doesn't use anything from misc_rpc.cPhilip Guenther
2015-01-21Fix deferred host DNS lookups.Brent Cook
If the network is unreachable when ntpd starts and host_dns fails, be sure that we still close the HOST_DNS imsg. Thanks to Paul de Weerd <weerd at weirdnet dot nl> for reporting this. ok beck@