openbsd
9 years agoBreak cmdq_continue inner loop into a helper function.
nicm [Wed, 17 Jun 2015 17:02:15 +0000 (17:02 +0000)]
Break cmdq_continue inner loop into a helper function.

9 years agoMove the shuffle code from new-window -a into a function and add a -a
nicm [Wed, 17 Jun 2015 16:50:28 +0000 (16:50 +0000)]
Move the shuffle code from new-window -a into a function and add a -a
flag for move-window too. From Thomas Adam.

9 years agoUse an explicit job state instead of avoid closing our side of the
nicm [Wed, 17 Jun 2015 16:44:49 +0000 (16:44 +0000)]
Use an explicit job state instead of avoid closing our side of the
socketpair and setting it to -1 to mark when the other side is
closed. This avoids closing it while the libevent bufferevent still has
it (it could try to add it to the polled set which some mechanisms don't
like). Fixes part a problem reported by Bruno Sutic.

9 years agoadd DST Root CA X3 certificate, already present in most browser cert stores.
sthen [Wed, 17 Jun 2015 15:06:28 +0000 (15:06 +0000)]
add DST Root CA X3 certificate, already present in most browser cert stores.
"O=Digital Signature Trust Co., CN=DST Root CA X3". This CA is cross signing
the issuing intermediates for letsencrypt.org so is expected to be important
for at least ports distfile fetching in the future. ok ajacoutot@ juanfra@

9 years agoClean up alert codes and add references.
jsing [Wed, 17 Jun 2015 14:30:39 +0000 (14:30 +0000)]
Clean up alert codes and add references.

9 years agoKeep alerts sorted by alert code.
jsing [Wed, 17 Jun 2015 14:27:56 +0000 (14:27 +0000)]
Keep alerts sorted by alert code.

9 years agoRemove pointless comments.
jsing [Wed, 17 Jun 2015 14:14:20 +0000 (14:14 +0000)]
Remove pointless comments.

9 years agoFour new sensors, from David Higgs.
mpi [Wed, 17 Jun 2015 08:31:55 +0000 (08:31 +0000)]
Four new sensors, from David Higgs.

9 years agoRemove NULL check before free; Fritjof Bornebusch.
nicm [Wed, 17 Jun 2015 08:13:31 +0000 (08:13 +0000)]
Remove NULL check before free; Fritjof Bornebusch.

9 years agoConvert ssl_next_proto_validate to CBS.
doug [Wed, 17 Jun 2015 07:52:22 +0000 (07:52 +0000)]
Convert ssl_next_proto_validate to CBS.

ok miod@, tweak + ok jsing@

9 years agoReally make daemon_class read-only; it's set to "daemon" of a matching
ajacoutot [Wed, 17 Jun 2015 07:50:38 +0000 (07:50 +0000)]
Really make daemon_class read-only; it's set to "daemon" of a matching
login class.

9 years agoConvert tls1_check_curve to CBS.
doug [Wed, 17 Jun 2015 07:36:30 +0000 (07:36 +0000)]
Convert tls1_check_curve to CBS.

ok miod@ jsing@

9 years agoKNF whitespace.
doug [Wed, 17 Jun 2015 07:29:33 +0000 (07:29 +0000)]
KNF whitespace.

ok miod@ jsing@

9 years agoUse explicit int in bs_cbs.c.
doug [Wed, 17 Jun 2015 07:25:56 +0000 (07:25 +0000)]
Use explicit int in bs_cbs.c.

ok miod@ jsing@

9 years agoUse explicit int in bs_ber.c.
doug [Wed, 17 Jun 2015 07:20:39 +0000 (07:20 +0000)]
Use explicit int in bs_ber.c.

ok miod@ jsing@

9 years agoAdd tests for CBS_offset() and CBS_write_bytes().
doug [Wed, 17 Jun 2015 07:15:52 +0000 (07:15 +0000)]
Add tests for CBS_offset() and CBS_write_bytes().

"no problem" miod@, tweak + ok jsing@

9 years agoAdd CBS_write_bytes() to copy the remaining CBS bytes to the caller.
doug [Wed, 17 Jun 2015 07:06:22 +0000 (07:06 +0000)]
Add CBS_write_bytes() to copy the remaining CBS bytes to the caller.

This is a common operation when dealing with CBS.

ok miod@ jsing@

9 years agoAdd a new function CBS_offset() to report the current offset in the data.
doug [Wed, 17 Jun 2015 07:00:22 +0000 (07:00 +0000)]
Add a new function CBS_offset() to report the current offset in the data.

"why not" miod@, sure jsing@

9 years agoCleanup SSL_OP_* compat flags in ssl.h.
doug [Wed, 17 Jun 2015 06:49:27 +0000 (06:49 +0000)]
Cleanup SSL_OP_* compat flags in ssl.h.

These were recently removed and are now set to 0:

SSL_OP_NETSCAPE_CA_DN_BUG
SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG
SSL_OP_SSLEAY_080_CLIENT_DH_BUG

The code associated with these was deleted in the past at some point
and these are also now 0:

SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION
SSL_OP_EPHEMERAL_RSA
SSL_OP_MICROSOFT_SESS_ID_BUG
SSL_OP_NETSCAPE_CHALLENGE_BUG
SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG

The SSL_OP_ALL macro has been updated to reflect the removals.

ok miod@ jsing@

9 years agoMove mbuf_list and mbuf_queue documentation in their own manual.
mpi [Wed, 17 Jun 2015 06:24:46 +0000 (06:24 +0000)]
Move mbuf_list and mbuf_queue documentation in their own manual.

ok jmc@, deraadt@, dlg@

9 years agostray char jumped in
deraadt [Wed, 17 Jun 2015 03:59:12 +0000 (03:59 +0000)]
stray char jumped in

9 years agodelete completely bogus (floating? was there an old variable decl
deraadt [Wed, 17 Jun 2015 03:49:29 +0000 (03:49 +0000)]
delete completely bogus (floating?  was there an old variable decl
in the past?) comment about FILEC
noted by Peter Brottveit Bock

9 years agoremove -DFILEC; code does not compile for the -UFILEC case, and anyways,
deraadt [Wed, 17 Jun 2015 03:48:21 +0000 (03:48 +0000)]
remove -DFILEC; code does not compile for the -UFILEC case, and anyways,
who wants csh without FILEC??
from Peter Brottveit Bock, but redone using unifdef

9 years agoSet FUNC symbol sizes of auto-generated and hand-written syscall wrappers.
uebayasi [Wed, 17 Jun 2015 03:04:50 +0000 (03:04 +0000)]
Set FUNC symbol sizes of auto-generated and hand-written syscall wrappers.

Original diff from guenther@, adjusted by me.

OK guenther@

9 years agoTypos in comments; Ville Valkonen
miod [Tue, 16 Jun 2015 20:30:24 +0000 (20:30 +0000)]
Typos in comments; Ville Valkonen

9 years agoDo not provide extra _fdata and __data_start symbols; nothing in the non-mips32
miod [Tue, 16 Jun 2015 20:25:35 +0000 (20:25 +0000)]
Do not provide extra _fdata and __data_start symbols; nothing in the non-mips32
world uses them.

9 years agoalloc_contiguous_pages() is supposed to round the allocation size to a page
miod [Tue, 16 Jun 2015 18:28:51 +0000 (18:28 +0000)]
alloc_contiguous_pages() is supposed to round the allocation size to a page
boundary, not to an u area boundary. Oops.

9 years agoClear the PIC `write request' memory at initialization time. There is
miod [Tue, 16 Jun 2015 18:24:38 +0000 (18:24 +0000)]
Clear the PIC `write request' memory at initialization time. There is
apparently a risk of spurious parity errors if we don't.

9 years agoSync with recent changes.
mpi [Tue, 16 Jun 2015 11:17:02 +0000 (11:17 +0000)]
Sync with recent changes.

9 years agoStore a unique ID, an interface index, rather than a pointer to the
mpi [Tue, 16 Jun 2015 11:09:39 +0000 (11:09 +0000)]
Store a unique ID, an interface index, rather than a pointer to the
receiving interface in the packet header of every mbuf.

The interface pointer should now be retrieved when necessary with
if_get().  If a NULL pointer is returned by if_get(), the interface
has probably been destroy/removed and the mbuf should be freed.

Such mechanism will simplify garbage collection of mbufs and limit
problems with dangling ifp pointers.

Tested by jmatthew@ and krw@, discussed with many.

ok mikeb@, bluhm@, dlg@

9 years agoBe more strict about BER and DER terminology.
doug [Tue, 16 Jun 2015 06:37:58 +0000 (06:37 +0000)]
Be more strict about BER and DER terminology.

bs_ber.c does not convert BER to DER.  It's a hack to convert a DER-like
encoding with one violation (indefinite form) to strict DER.  Rename
the functions to reflect this.

ok miod@ jsing@

9 years agoSimplify cbs_get_any_asn1_element_internal based on comments from jsing@
doug [Tue, 16 Jun 2015 06:11:39 +0000 (06:11 +0000)]
Simplify cbs_get_any_asn1_element_internal based on comments from jsing@

9 years agoAdd a uslcom id for the Netgear M7100 console from Andrew Daugherity.
jsg [Tue, 16 Jun 2015 05:08:55 +0000 (05:08 +0000)]
Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.
Add some additional uslcom ids found in the Linux driver while here.

9 years agoregen
jsg [Tue, 16 Jun 2015 05:07:54 +0000 (05:07 +0000)]
regen

9 years agoAdd a uslcom id for the Netgear M7100 console from Andrew Daugherity.
jsg [Tue, 16 Jun 2015 05:07:25 +0000 (05:07 +0000)]
Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.
Add some additional uslcom ids found in the Linux driver while here.

9 years agoAdd support for OPTION_DISCARD.
doug [Tue, 16 Jun 2015 02:27:24 +0000 (02:27 +0000)]
Add support for OPTION_DISCARD.

ok jsing@

9 years agoput -F before -f in the options list;
jmc [Mon, 15 Jun 2015 22:39:14 +0000 (22:39 +0000)]
put -F before -f in the options list;

9 years agoRework how fstat and ktrace pattern are specified in the test
bluhm [Mon, 15 Jun 2015 21:44:57 +0000 (21:44 +0000)]
Rework how fstat and ktrace pattern are specified in the test
arguments.  Add tests to check wether syslogd privsep works.  This
is done for debug and foreground and daemon mode.  Fstat is checked
for chroot and sockets.  Ktrace dump is grepped for setting uid and
gid.

9 years agoImplement a -F switch, that tells syslogd to stay in foreground.
bluhm [Mon, 15 Jun 2015 21:42:15 +0000 (21:42 +0000)]
Implement a -F switch, that tells syslogd to stay in foreground.
OK benno@; input millert@; no objections deraadt@

9 years agoIf AuthorizedPrincipalsCommand is specified, however
jsing [Mon, 15 Jun 2015 18:44:22 +0000 (18:44 +0000)]
If AuthorizedPrincipalsCommand is specified, however
AuthorizedPrincipalsFile is not (or is set to "none"), authentication will
potentially fail due to key_cert_check_authority() failing to locate a
principal that matches the username, even though an authorized principal
has already been matched in the output of the subprocess. Fix this by using
the same logic to determine if pw->pw_name should be passed, as is used to
determine if a authorized principal must be matched earlier on.

ok djm@

9 years agoMake the arguments to match_principals_command() similar to
jsing [Mon, 15 Jun 2015 18:42:19 +0000 (18:42 +0000)]
Make the arguments to match_principals_command() similar to
match_principals_file(), by changing the last argument a
struct sshkey_cert * and dereferencing key->cert in the caller.

No functional change.

ok djm@

9 years agoDon't error out when an existing typedef is redefined with the same definition;
miod [Mon, 15 Jun 2015 17:01:04 +0000 (17:01 +0000)]
Don't error out when an existing typedef is redefined with the same definition;
this is allowed in C11 and 3rd-party software is relying upon this to be
accepted by the compiler.
Nevertheless warn about this if -pedantic.
ok ajacoutot@ deraadt@ millert@

9 years agoBring back r1.78 and r1.79, now that ajactouto@'s regression has
mpi [Mon, 15 Jun 2015 16:46:21 +0000 (16:46 +0000)]
Bring back r1.78 and r1.79, now that ajactouto@'s regression has
been found: it was a hardware failure.

When a bus is explored, do not probe the ports which status hasn't
changed.  This saves a lot of I/O when attaching/detaching devices
and might help with some timing related problems.

9 years agoFix a double free in the destroy path triggered when a second process,
mpi [Mon, 15 Jun 2015 15:55:08 +0000 (15:55 +0000)]
Fix a double free in the destroy path triggered when a second process,
in my case dhclient(8), races with ifconfig(8) to free the descriptors
of the joined multicast groups.

While here reduce the difference with carp(4).

ok dms@

9 years agoSet the length of isochronous transfers as the sum of the frames lengths.
mpi [Mon, 15 Jun 2015 15:45:28 +0000 (15:45 +0000)]
Set the length of isochronous transfers as the sum of the frames lengths.

This reduces differences between non-isoch and isoch transfers submissions,
makes the generic DMA buffer overrun check work with isoch transfers and
will allow some code simplifications in HC drivers.

Since short-transfers were never checked for isoch transfers, we now need to
pass the USBD_SHORT_XFER_OK flag to not change this behavior.  This might be
revisited later.

ok ratchov@

9 years agoUpdate to tzdata2015e from ftp.iana.org
millert [Mon, 15 Jun 2015 15:38:04 +0000 (15:38 +0000)]
Update to tzdata2015e from ftp.iana.org

9 years agoget_val() already frees the buffer passed to it so we don't need to
millert [Mon, 15 Jun 2015 14:29:52 +0000 (14:29 +0000)]
get_val() already frees the buffer passed to it so we don't need to
do it in the caller.

9 years agoUse proper argument type for crp_callback functions; no functional change.
mikeb [Mon, 15 Jun 2015 13:26:48 +0000 (13:26 +0000)]
Use proper argument type for crp_callback functions; no functional change.

9 years agoNo need for an extra local variable; no functional change.
mikeb [Mon, 15 Jun 2015 12:59:37 +0000 (12:59 +0000)]
No need for an extra local variable;  no functional change.

9 years agoUse proper argument type for crp_callback functions; no functional change.
mikeb [Mon, 15 Jun 2015 12:37:37 +0000 (12:37 +0000)]
Use proper argument type for crp_callback functions; no functional change.

9 years agoAdd window_activity format, from Thomas Adam based on a diff originally
nicm [Mon, 15 Jun 2015 10:58:01 +0000 (10:58 +0000)]
Add window_activity format, from Thomas Adam based on a diff originally
from propos6 at gmail dot com.

9 years agohook up chmod
florian [Mon, 15 Jun 2015 09:25:22 +0000 (09:25 +0000)]
hook up chmod

9 years agooops
florian [Mon, 15 Jun 2015 09:24:49 +0000 (09:24 +0000)]
oops

9 years agoFirst stab at regression test for chmod (and chflags, chgrp and chown
florian [Mon, 15 Jun 2015 09:23:12 +0000 (09:23 +0000)]
First stab at regression test for chmod (and chflags, chgrp and chown
which are the same binary). This is supposed to exercise all syscalls
paths through those tools and not a comprehensive regression test.

9 years agodocument pfctl -ss -R <rule>, ok mikeb@
sthen [Mon, 15 Jun 2015 08:48:23 +0000 (08:48 +0000)]
document pfctl -ss -R <rule>, ok mikeb@

9 years agoRemove comments referring to Linux iwlwifi source filenames from iwm(4).
stsp [Mon, 15 Jun 2015 08:06:11 +0000 (08:06 +0000)]
Remove comments referring to Linux iwlwifi source filenames from iwm(4).
Linux is a moving target so these comments provide little value.
Discussed with kettenis and deraadt.

9 years agoMake the wifi LED work with iwm(4).
stsp [Mon, 15 Jun 2015 07:50:44 +0000 (07:50 +0000)]
Make the wifi LED work with iwm(4).

The bad news: Many laptops sold with iwm(4) cards don't have a wifi LED :-(
The good news: Laptops with LEDs and no wifi device white-list in BIOS
actually exist! Tested in one such machine.

ok kettenis@ deraadt@

9 years agoMake CBS_get_any_asn1_element() more compliant with DER encoding.
doug [Mon, 15 Jun 2015 07:35:49 +0000 (07:35 +0000)]
Make CBS_get_any_asn1_element() more compliant with DER encoding.

CBS_get_any_asn1_element violates DER encoding by allowing indefinite
form.  All callers except bs_ber.c expect DER encoding.  The callers
must check to see if it was indefinite or not.

Rather than exposing all callers to this behavior,
cbs_get_any_asn1_element_internal() allows specifying whether you want to
allow the normally forbidden indefinite form.  This is used by
CBS_get_any_asn1_element() for strict DER encoding and by a new static
function in bs_ber.c for the relaxed version.

While I was here, I added comments to differentiate between ASN.1
restrictions and CBS limitations.

ok miod@

9 years agoturn SSH1 back on to match src/usr.bin/ssh being tested
djm [Mon, 15 Jun 2015 06:38:50 +0000 (06:38 +0000)]
turn SSH1 back on to match src/usr.bin/ssh being tested

9 years agoRemove ancient SSL_OP_NETSCAPE_CA_DN_BUG from SSLeay days.
doug [Mon, 15 Jun 2015 05:32:58 +0000 (05:32 +0000)]
Remove ancient SSL_OP_NETSCAPE_CA_DN_BUG from SSLeay days.

This commit matches the OpenSSL removal in commit
3c33c6f6b10864355553961e638514a6d1bb00f6.

ok deraadt@

9 years agoRemove ancient compat hack SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG.
doug [Mon, 15 Jun 2015 05:16:56 +0000 (05:16 +0000)]
Remove ancient compat hack SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG.

This was imported into OpenSSL from SSLeay.  It was recently deleted
in OpenSSL commit 7a4dadc3a6a487db92619622b820eb4f7be512c9

9 years agoRemove 1997's compat hack SSL_OP_SSLEAY_080_CLIENT_DH_BUG.
doug [Mon, 15 Jun 2015 03:32:59 +0000 (03:32 +0000)]
Remove 1997's compat hack SSL_OP_SSLEAY_080_CLIENT_DH_BUG.

This is a hack for an old version of SSLeay which predates OpenSSL.

9 years agoUpdate SSL_OP_* to remove ancient hacks that are no longer enabled.
doug [Mon, 15 Jun 2015 02:57:05 +0000 (02:57 +0000)]
Update SSL_OP_* to remove ancient hacks that are no longer enabled.

9 years agoreturn failure on RSA signature error; reported by Albert S
djm [Mon, 15 Jun 2015 01:32:50 +0000 (01:32 +0000)]
return failure on RSA signature error; reported by Albert S

9 years agofix regress fallout due to CFLAGS vs CXXFLAGS
deraadt [Mon, 15 Jun 2015 01:10:19 +0000 (01:10 +0000)]
fix regress fallout due to CFLAGS vs CXXFLAGS

9 years agosync
deraadt [Sun, 14 Jun 2015 21:50:43 +0000 (21:50 +0000)]
sync

9 years agoBring a few routines from libkern in order to avoid linking against libgcc.
miod [Sun, 14 Jun 2015 19:37:11 +0000 (19:37 +0000)]
Bring a few routines from libkern in order to avoid linking against libgcc.

9 years agoBuild required bits from libkern rather than importing them from libgcc.
miod [Sun, 14 Jun 2015 19:08:59 +0000 (19:08 +0000)]
Build required bits from libkern rather than importing them from libgcc.

9 years agoBuild __moddi3, __muldi3 and __qdivrem from libkern, and built no-pie, instead
miod [Sun, 14 Jun 2015 18:33:53 +0000 (18:33 +0000)]
Build __moddi3, __muldi3 and __qdivrem from libkern, and built no-pie, instead
of getting them from libgcc.a, built pie.
This repairs boot blocks operation on sparc, as found the hard way by sebastia@

9 years agoadd some initial vexpress man pages
jsg [Sun, 14 Jun 2015 13:53:49 +0000 (13:53 +0000)]
add some initial vexpress man pages

9 years agoFix 1.26; kdoprnt() should not attempt to invoke va_end() at all, it's the
miod [Sun, 14 Jun 2015 10:55:50 +0000 (10:55 +0000)]
Fix 1.26; kdoprnt() should not attempt to invoke va_end() at all, it's the
caller's responsibility to do so.

9 years agoAdd a format for client PID (client_pid) and server PID (pid). Diff for
nicm [Sun, 14 Jun 2015 10:07:44 +0000 (10:07 +0000)]
Add a format for client PID (client_pid) and server PID (pid). Diff for
client_pid from Thomas Adam.

9 years agoImplement IQ calibration support for rtwn(4). Lots of black magic involved.
stsp [Sun, 14 Jun 2015 08:02:47 +0000 (08:02 +0000)]
Implement IQ calibration support for rtwn(4). Lots of black magic involved.

9 years agocorrect the uart irq numbers
jsg [Sun, 14 Jun 2015 07:34:57 +0000 (07:34 +0000)]
correct the uart irq numbers
ok bmercer@

9 years agoadd a driver for the ARM PrimeCell PL031 RTC
jsg [Sun, 14 Jun 2015 05:01:31 +0000 (05:01 +0000)]
add a driver for the ARM PrimeCell PL031 RTC

9 years agoParse _CST objects and use the C-states they describe when they're sane.
guenther [Sat, 13 Jun 2015 21:41:42 +0000 (21:41 +0000)]
Parse _CST objects and use the C-states they describe when they're sane.

testing by many, particularly krw@ and jcs@
tweaks by kettenis@
ok deraadt@

9 years agoBusy-wait a short while after sending a command to rtwn(4) firmware.
stsp [Sat, 13 Jun 2015 21:15:23 +0000 (21:15 +0000)]
Busy-wait a short while after sending a command to rtwn(4) firmware.
Fixes selection of initial TX rate. We're not stuck at 1Mbit/s anymore.

9 years agoConvert xfree to free. From Fritjof Bornebusch. ok deraadt
nicm [Sat, 13 Jun 2015 20:15:21 +0000 (20:15 +0000)]
Convert xfree to free. From Fritjof Bornebusch. ok deraadt

9 years agoadd miniroot to MDEXT
jasper [Sat, 13 Jun 2015 18:22:57 +0000 (18:22 +0000)]
add miniroot to MDEXT

9 years agoin glob() initialize the glob_t before the first failure check.
deraadt [Sat, 13 Jun 2015 16:57:04 +0000 (16:57 +0000)]
in glob() initialize the glob_t before the first failure check.
from j@pureftpd.org
ok millert stsp

9 years agoAdd more encodings of options for the armv7 barrier instructions and
jsg [Sat, 13 Jun 2015 09:37:13 +0000 (09:37 +0000)]
Add more encodings of options for the armv7 barrier instructions and
allow non "sy"/0xf options for dmb.  This omits the *ld options
available in armv8 running in a32 mode.  Similiar changes made in
freebsd.

ok miod@

9 years agoSplit up the logic in CBB_flush to separately handle the lengths.
doug [Sat, 13 Jun 2015 09:24:12 +0000 (09:24 +0000)]
Split up the logic in CBB_flush to separately handle the lengths.

Also, add comments about assuming short-form.

ok miod@, tweak + ok jsing@

9 years agoExplain the ASN.1 restriction that requires extra logic for encoding.
doug [Sat, 13 Jun 2015 09:16:42 +0000 (09:16 +0000)]
Explain the ASN.1 restriction that requires extra logic for encoding.

ok miod@ jsing@

9 years agoWhen initial capacity is 0, always use NULL buffer.
doug [Sat, 13 Jun 2015 09:11:57 +0000 (09:11 +0000)]
When initial capacity is 0, always use NULL buffer.

malloc(0) is implementation defined and there's no reason to introduce
that ambiguity here.  Added a few cosmetic changes in sizeof and free.

ok miod@ jsing@

9 years agoAdd comments about how the CBS constants are constructed.
doug [Sat, 13 Jun 2015 09:02:45 +0000 (09:02 +0000)]
Add comments about how the CBS constants are constructed.

Also, introduce a few more #defines to make it obvious.

ok miod@ jsing@

9 years agoReject long-form tags in CBS_peek_asn1_tag.
doug [Sat, 13 Jun 2015 08:46:00 +0000 (08:46 +0000)]
Reject long-form tags in CBS_peek_asn1_tag.

Currently, CBS only handles short-form tags.

ok miod@ jsing@

9 years agoFix bad indenting in LibreSSL.
doug [Sat, 13 Jun 2015 08:38:10 +0000 (08:38 +0000)]
Fix bad indenting in LibreSSL.

jsg@ noticed that some of the lines in libssl and libcrypto are not
indented properly.  At a quick glance, it looks like it has a different
control flow than it really does.  I checked the history in our tree and
in OpenSSL to make sure these were simple mistakes.

ok miod@ jsing@

9 years agoWhen investigating an uninitialised variable in the armv7 resettodr()
jsg [Sat, 13 Jun 2015 07:16:36 +0000 (07:16 +0000)]
When investigating an uninitialised variable in the armv7 resettodr()
miod pointed out that time_second should be compared to 1 not 0 in the
md resettodr() functions as it is initialised to 1.

ok miod@ deraadt@

9 years agoRemove unneeded sys/sysctl.h on linux.
bcook [Sat, 13 Jun 2015 02:33:58 +0000 (02:33 +0000)]
Remove unneeded sys/sysctl.h on linux.

This only provides the sysctl wrapper in glibc, which we do not use and is not available in other libc implementations for Linux. Thanks to ncopa from github.

9 years agoAdd a missing .An macro.
schwarze [Fri, 12 Jun 2015 20:33:06 +0000 (20:33 +0000)]
Add a missing .An macro.
Found by Enrico <Camarda at amnz dot org>
during the BSDCan Doc Sprint.

9 years agoClose the lock pipe before dupping /dev/null to stdio.
bluhm [Fri, 12 Jun 2015 19:20:43 +0000 (19:20 +0000)]
Close the lock pipe before dupping /dev/null to stdio.
This works even if the file descriptor is 0 or 1 or 2.
input and OK millert@

9 years agoAllow rule ID filter to be specified for show states output
mikeb [Fri, 12 Jun 2015 16:10:43 +0000 (16:10 +0000)]
Allow rule ID filter to be specified for show states output

Tweak pfctl to respect the rule ID parameter (-R) specified
along with the show states (-s states) option to filter out
states that are not associated with a given rule from the
output.

ok sthen, benno

9 years agoOnly match devices with a valid configuration.
mpi [Fri, 12 Jun 2015 15:47:31 +0000 (15:47 +0000)]
Only match devices with a valid configuration.

Most of the WiFi/Ethernet USB adapter only have one configuration and always
use its first interface.  In order to improve USB descriptors parsing start
by reducing the number of places where a configuration is set.

Tests & ok stsp@

9 years agoRemove superfluous splnet() protection.
mpi [Fri, 12 Jun 2015 15:40:06 +0000 (15:40 +0000)]
Remove superfluous splnet() protection.

ok lteo@

9 years agoTo match relayd's style, use an explicit enum with prefixed names for
reyk [Fri, 12 Jun 2015 14:40:55 +0000 (14:40 +0000)]
To match relayd's style, use an explicit enum with prefixed names for
the states that Claudio introduced.  No functional change.

OK claudio@ benno@

9 years agoPerform a copy with a memmove for potentially overlapping regions.
mikeb [Fri, 12 Jun 2015 14:18:25 +0000 (14:18 +0000)]
Perform a copy with a memmove for potentially overlapping regions.

Reported and fixed by Sergey Ryazanov <ryazanov ! s ! a at gmail ! com>,
thanks!

9 years agoActually trigger iwm_init_task() from iwm_watchdog() as intended to give
stsp [Fri, 12 Jun 2015 13:11:27 +0000 (13:11 +0000)]
Actually trigger iwm_init_task() from iwm_watchdog() as intended to give
recovery after device timeout a chance. Don't mess with the IFF_UP flag
in the watchdog since this isn't done anywhere except intel wifi drivers
which probably copied this pattern amongst each other.
ok kettenis@

9 years agoFix rtwn(4) wifi LED support. Tested with rtwn(4) device in Thinkpad X220.
stsp [Fri, 12 Jun 2015 09:30:05 +0000 (09:30 +0000)]
Fix rtwn(4) wifi LED support. Tested with rtwn(4) device in Thinkpad X220.

9 years agoReuse SYSENTRY_HIDDEN() in SYSENTRY(); no functional changes.
uebayasi [Fri, 12 Jun 2015 09:26:05 +0000 (09:26 +0000)]
Reuse SYSENTRY_HIDDEN() in SYSENTRY(); no functional changes.

9 years agoKill trailing blank; no text change.
schwarze [Fri, 12 Jun 2015 04:51:08 +0000 (04:51 +0000)]
Kill trailing blank; no text change.
Issue found by Tony Sim <y2s1982 at gmail dot com>
during today's BSDCan Doc Sprint.