summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-15The tls_conninfo serial is also unused.Joel Sing
2016-08-15Group conninfo fields by connection and peer cert based information,Joel Sing
sort and remove unused fingerprint.
2016-08-15Fix some style(9) issues.Joel Sing
2016-08-15Allow com(4) to make use of the simplebus address translation.Patrick Wildt
This typically works for every simplebus client, but com(4) did not make use of the supplied bus tag. Instead it references the global a4x bus tag. This is needed as the ARM com(4) controllers use 4-byte spaced registers, while com(4) operates on 1-byte. To be able to make use of the address translation, copy the a4x bus tag and replace the cookie and map function with the one supplied by simplebus. ok kettenis@
2016-08-15Use lowercase 'tls' in debug and log messages for consistency.Joel Sing
Requested by reyk@
2016-08-15Explicitly pass in an SSL_CTX * to the functions that operate on one,Joel Sing
instead of assuming that they should use the one associated with the TLS context. This allows these functions to be used with the additional SSL contexts that are needed to support server-side SNI. Also rename tls_configure_keypair() to tls_configure_ssl_keypair(), so that these functions have a common prefix. ok reyk@
2016-08-15Make httpd stricter with respect to TLS configuration - in particular, doJoel Sing
not allow TLS and non-TLS to be configured on the same port, do not allow TLS options to be specified without a TLS listener and ensure that the TLS options are the same when a server is specified on the same address/port. Currently, these configurations are permitted but do not work as intended. Also factor out and reuse the server matching code, which was previously duplicated. ok reyk@
2016-08-15Move the com(4) fdt attachment driver to a more generic location andPatrick Wildt
rename it to fit the typical scheme of such an attachment driver. ok kettenis@ jsg@
2016-08-15Remove IWM_CMD_SYNC, which expands to zero while all the otherStefan Sperling
IWM_CMD_* values are bit flags. The same was done 2 years ago in Linux git commit a10229271946731959b2269370d0492d88cfab23.
2016-08-15Catch up with the SSH1 code removal and delete all mention ofChristian Weisgerber
protocol 1 particularities, key files and formats, command line options, and configuration keywords from the server documentation and examples. ok jmc@
2016-08-15Remove more SSH1 server code:Christian Weisgerber
* Drop sshd's -k option. * Retire configuration keywords that only apply to protocol 1, as well as the "protocol" keyword. * Remove some related vestiges of protocol 1 support. ok markus@
2016-08-15replace the last uses of m_copym2 with m_dup_pkt.David Gwynne
ok mpi@ visa@
2016-08-15Use pinctrl to configure the pins used by the EMAC.Mark Kettenis
ok jsg@
2016-08-15Use the regulator API to supply power to the target.Mark Kettenis
Tested by Daniel Bolgheroni on a Cubietech Cubieboard2. ok jsg@
2016-08-15Checking for RTF_BROADCAST here makes no sense.Martin Pieuchot
2016-08-15Neuter fuse_vptofh() and fuse_fhtovp(). I implemented those functionsMartin Natano
under the assumption, that fuse_vget() has reasonable semantics, while this is not the case. fusefs_vget() only functions correctly, if the file in questions has recently been accessed and is still in the vnode cache of the userspace daemon associated with the mount point. As a matter of fact the fuse api doesn't feature a reasonable way to map inode numbers to a handle at all (see struct fuse_operations). ok guenther
2016-08-15No need to reset si_selpid after calling selwakeup() the functionMartin Pieuchot
already does it.
2016-08-15add a bit of spacing to previous, to keep the notes about deprecatedJason McIntyre
functions out the way of the main body; ok guenther
2016-08-15Introduce bpf_put() and bpf_get() instead of mixing macro and functionsMartin Pieuchot
for the reference counting. ok dlg@
2016-08-15Check if ``bd_bif'' is NULL inside bpf_catchpacket() to match bpfread()Martin Pieuchot
and bpfwrite(), all of which will need to grabe a lock to protect the buffers. ok dlg@
2016-08-15Merge bpfilter_create() into bpfopen() and make it such that theMartin Pieuchot
descriptor is referenced before it is inserted in the global list. ok dlg@
2016-08-15Drain FIFOs on init same as com(4) does it and reduce the RX FIFO interruptMarcus Glocker
trigger to 1 character. This fixes a hang seen on the allwinner,sun5i-r8 board during boot when the driver switches to interrupts and no terminal is attached. ok kettenis
2016-08-15Trust the login_getcaptime() declaration and don't cast the arguments toPhilip Guenther
their own expected type
2016-08-15Drop -z nocombreloc. It was a rev 1.1 commit like on arm, so not clearPhilip Guenther
why it was needed then; perhaps fixed by the bump in binutils? Removing it enables the full relro layout for ld.so.
2016-08-15syncTheo de Raadt
2016-08-14Reduce qabs() and qdiv() to aliases of llabs() and lldiv().Philip Guenther
Merge the manual pages and call them deprecated there. ok and manpage tweak jmc@, ok natano@
2016-08-14Convert quad_t to long longPhilip Guenther
2016-08-14Convert %q to %llPhilip Guenther
2016-08-14When upcasting to off_t for multiplication, the cast needs to be *before*Philip Guenther
the multiplication to avoid truncation/overflow ok krw@
2016-08-14Convert %q to %ll with long long casts for printf()Philip Guenther
Delete pointless casts to off_t, void*, and uid_t ok krw@
2016-08-14Use int64_t and %ll for CTLTYPE_QUAD nodes.Philip Guenther
Use memcpy() instead of up-casting from char* to long long* ok krw@
2016-08-14Convert %q to %ll and cast opaque system values to long long.Philip Guenther
Use uint64_t for the KERN_INTRCNT_CNT sysctl() ok krw@
2016-08-14Convert %q to %ll. Cast off_t to long long for printf-style args.Philip Guenther
Eliminate pointless casts to void* or off_t ok krw@
2016-08-14Flip 'u_quad_t' fields & variables to uint64_t, and %qu to %llu.Kenneth R Westerback
ok guenther@
2016-08-14Kill '#if defined(DEBUG) && 0' blocks that used %qPhilip Guenther
ok bentley@ on principle
2016-08-14%qd -> %lld for an off_t already being cast to (long long)!Kenneth R Westerback
2016-08-14Another %qd -> %lld + (long long) for off_t's.Kenneth R Westerback
2016-08-14syncTheo de Raadt
2016-08-14%qd -> %lld + (long long) for off_t's.Kenneth R Westerback
ok guenther@ natano@
2016-08-14Don't reinvent rlim_t; when printing it use %llu and cast toPhilip Guenther
unsigned long long ok natano@ tedu@
2016-08-14Don't call sysconf() in a loop conditional when the loop won't affect itPhilip Guenther
ok natano@ tedu@
2016-08-14tweak previous;Jason McIntyre
2016-08-14imxtemp(4)Mark Kettenis
2016-08-14Add imxtemp(4), a temperature sensor for the i.MX6 SoC. Based on code writtenMark Kettenis
by patrick@. ok deraadt@
2016-08-14Drop -z nocombreloc. That's a rev 1.1 commit so not clear why it was neededPhilip Guenther
then; perhaps fixed by the bump in binutils? Anyway, builds seem good without it and that enables the full relro layout for ld.so. ok kettenis@
2016-08-14Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.Philip Guenther
Fix a type mismatch in ftp's "page" command and could make transfers restart at the wrong position. ok and a ull->ll tweak from natano@, ok tedu@
2016-08-14Remove many unnecessary casts. Verified by comparing generated code onPhilip Guenther
both ILP32 and LP64. ok millert@
2016-08-14Refer to /etc/passwd consistently as the "legacy password file" andTheo Buehler
remove some references to differences between versions 6 and 7. ok jmc, millert, tedu
2016-08-14Merge identical amd64 and i386 stanzas.Kenneth R Westerback
Requested & ok jsing@
2016-08-14replace strtoq with strtoll. ok openbsdTed Unangst