openbsd
4 years agoIn virtual alias context, do not try to match catchall entries for
eric [Tue, 28 Apr 2020 21:46:43 +0000 (21:46 +0000)]
In virtual alias context, do not try to match catchall entries for
usernames, but only for email addresses.  fixes an issue where
usernames always expand to the @ wildcard if defined in the virtual
alias file.

discussed with Gilles Chehade

ok millert@

4 years agoMove legacy stack interfacing functions into tls13_legacy.c.
jsing [Tue, 28 Apr 2020 20:37:22 +0000 (20:37 +0000)]
Move legacy stack interfacing functions into tls13_legacy.c.

No functional change.

ok inoguchi@ tb@

4 years agoRename tls13_client_synthetic_handshake_message() and move to tls13_lib.c.
jsing [Tue, 28 Apr 2020 20:30:40 +0000 (20:30 +0000)]
Rename tls13_client_synthetic_handshake_message() and move to tls13_lib.c.

The server-side will need to use the same function.

No functional change.

ok inoguchi@ tb@

4 years agoCalculate divisor for i.MX8M composite clocks. So far we have set
patrick [Tue, 28 Apr 2020 19:26:45 +0000 (19:26 +0000)]
Calculate divisor for i.MX8M composite clocks.  So far we have set
fixed values for the divisors, but the imxesdhc(4) nodes for
SD Cards usually have an assigned clock rate of 200 MHz instead of
400 MHz.  So instead of just clearing the divisor, we should set it
according to what is asked.  This also allows us to add the clock
for the second imxesdhc(4) node to the list, which I have previously
skipped, since otherwise the controller would have been clocked too
high.

ok kettenis@

4 years agoThe order of arguments to proposals_negotiate makes a difference.
tobhe [Tue, 28 Apr 2020 17:56:45 +0000 (17:56 +0000)]
The order of arguments to proposals_negotiate makes a difference.
'key->pol_proposals' should be the peer proposal as it is derived from
a received SA payload, 'p->p_proposal' comes from a locally configured
policy.

ok patrick@

4 years agoEnable all clocks referenced by the imxesdhc(4) device tree node. Usually
patrick [Tue, 28 Apr 2020 17:22:53 +0000 (17:22 +0000)]
Enable all clocks referenced by the imxesdhc(4) device tree node.  Usually
those are already on, since on those machines we mostly boot from SD/MMC
and U-Boot prepares them for us.  On machines with a WiFi on imxesdhc(4),
U-Boot isn't necessarily configured to do so.  Enabling the clocks is the
right thing to do anyway.

ok kettenis@

4 years agoRecognize a few more clocks referenced by the i.MX8MM and i.MX8MQ
patrick [Tue, 28 Apr 2020 17:17:08 +0000 (17:17 +0000)]
Recognize a few more clocks referenced by the i.MX8MM and i.MX8MQ
imxesdhc(4) device tree nodes.

4 years agoRather than attempting to lookup the keyword "set" as a hostname,
deraadt [Tue, 28 Apr 2020 15:55:55 +0000 (15:55 +0000)]
Rather than attempting to lookup the keyword "set" as a hostname,
issue a usage message.  This matches both historical behaviour, and
the operation upon other keywords.
ok florian

4 years agoRemove support for insecure EC2N groups. Clarify which Diffie-Hellman
tobhe [Tue, 28 Apr 2020 15:18:52 +0000 (15:18 +0000)]
Remove support for insecure EC2N groups.  Clarify which Diffie-Hellman
groups are not recommended to use and are only supported for backwards
compatibility.

Feedback from sthen@
ok kn@

4 years agore-organize statistics printing code, to make it less verbose and
deraadt [Tue, 28 Apr 2020 15:04:05 +0000 (15:04 +0000)]
re-organize statistics printing code, to make it less verbose and
more readable.

4 years agoa blank line in the header is prettier
deraadt [Tue, 28 Apr 2020 15:03:39 +0000 (15:03 +0000)]
a blank line in the header is prettier

4 years agoPrint statistics as comments at the top of the files which can take
deraadt [Tue, 28 Apr 2020 13:41:35 +0000 (13:41 +0000)]
Print statistics as comments at the top of the files which can take
comments.
ok claudio job

4 years agodocument FETCH_PACKAGES better
espie [Tue, 28 Apr 2020 13:11:32 +0000 (13:11 +0000)]
document FETCH_PACKAGES better
feedback and okay schwarze@

4 years agoThere have been no floppy images since the 6.2 release. Remove mention
benno [Tue, 28 Apr 2020 13:02:10 +0000 (13:02 +0000)]
There have been no floppy images since the 6.2 release. Remove mention
of boot floppies from the INSTALL.alpha notes.
ok deraadt@

4 years agoUse the same inittodr()/resettodr() implementation as on arm64/armv7/sparc64
kettenis [Tue, 28 Apr 2020 12:58:27 +0000 (12:58 +0000)]
Use the same inittodr()/resettodr() implementation as on arm64/armv7/sparc64
and move it to the end of machdep.c.  Rework the actual implementation
for te MC14818 compatible RTC into something that can be used as a todr_handle.

ok mpi@

4 years agoUse the same inittodr()/resettodr() implementation as on arm64/armv7
kettenis [Tue, 28 Apr 2020 12:24:20 +0000 (12:24 +0000)]
Use the same inittodr()/resettodr() implementation as on arm64/armv7
and move it to the end of machdep.o.

ok mpi@

4 years agosync
sthen [Tue, 28 Apr 2020 10:49:37 +0000 (10:49 +0000)]
sync

4 years agoDocument that thread credentials are owned by curproc.
mpi [Tue, 28 Apr 2020 08:29:40 +0000 (08:29 +0000)]
Document that thread credentials are owned by curproc.

From Vitaliy Makkoveev, ok visa@

4 years agoConfigure Tx interrupt mitigation thresholds on athn(4) devices.
stsp [Tue, 28 Apr 2020 06:58:09 +0000 (06:58 +0000)]
Configure Tx interrupt mitigation thresholds on athn(4) devices.
ok kevlo@ mpi@

4 years agoadapt dummy FIDO middleware to API change; ok markus@
djm [Tue, 28 Apr 2020 04:59:29 +0000 (04:59 +0000)]
adapt dummy FIDO middleware to API change; ok markus@

4 years agouse (long long) and %llx to satisfy both 32-bit and 64-bit systems.
deraadt [Tue, 28 Apr 2020 04:17:42 +0000 (04:17 +0000)]
use (long long) and %llx to satisfy both 32-bit and 64-bit systems.

4 years agowhen signing a challenge using a FIDO toke, perform the hashing in the
djm [Tue, 28 Apr 2020 04:02:29 +0000 (04:02 +0000)]
when signing a challenge using a FIDO toke, perform the hashing in the
middleware layer rather than in ssh code. This allows middlewares that
call APIs that perform the hashing implicitly (including Microsoft's
AFAIK). ok markus@

4 years agoAdd curve25519 IANA group number.
tobhe [Mon, 27 Apr 2020 22:40:09 +0000 (22:40 +0000)]
Add curve25519 IANA group number.

4 years agoDisplay multi-state controls with exactly three decimal places.
schwarze [Mon, 27 Apr 2020 21:44:47 +0000 (21:44 +0000)]
Display multi-state controls with exactly three decimal places.
Because for now, the maximum raw value of such controls is either
127 or 255, that assures that whenever the raw value changes, the
displayed value changes, too.  At the same time, it preserves the
property that control values are not shown with excessive, misleading
precision.
If controls will ever be introduced that will have maximum raw
values of less than 100 or of more than 999, the number of decimal
places should then be reduced or increased for such controls as
appropriate.
With important help and an OK from ratchov@.

4 years agotcpci(4)
patrick [Mon, 27 Apr 2020 21:36:07 +0000 (21:36 +0000)]
tcpci(4)

4 years agoEnable tcpci(4).
patrick [Mon, 27 Apr 2020 21:31:37 +0000 (21:31 +0000)]
Enable tcpci(4).

4 years agoAdd tcpci(4) to support TCPCI-compliant USB Type-C port controllers.
patrick [Mon, 27 Apr 2020 21:30:52 +0000 (21:30 +0000)]
Add tcpci(4) to support TCPCI-compliant USB Type-C port controllers.
A Type-C controller has multiple tasks.  Even though the orientation
of the plug doesn't matter for the user, it matters for the hardware.
To be able to know how to route the SuperSpeed pins you need to know
which way the plug is connected.  Also you need to know if you're a
sink/source or device/host.  To get the first connection, you toggle
between the modes until you find a connection.  In case you see that
a sink is connected, you can turn on USB Vbus to power the sink.

This driver explicitly does not implement USB's Type-C state machine,
but if we get more and more of these controllers it might be worth
doing.  Also there's no support for Power Delivery messages yet.

"go for it" kettenis@

4 years agoAdd bcmclock(4) and bcmmbox(4). Fixes a hang because the clock for sdhc(4)
kettenis [Mon, 27 Apr 2020 20:40:15 +0000 (20:40 +0000)]
Add bcmclock(4) and bcmmbox(4).  Fixes a hang because the clock for sdhc(4)
can't be enabled.

4 years agoWhile i.MX6Q and i.MX7D's USB controller nodes claim to be compatible
patrick [Mon, 27 Apr 2020 20:15:41 +0000 (20:15 +0000)]
While i.MX6Q and i.MX7D's USB controller nodes claim to be compatible
to i.MX27, they actually need different bits to be set than the i.MX27.
The i.MX8MM's node instead rightfully only claims to be compatible to
i.MX7D, since it's the same implementation.  Thus change imxehci(4) to
also match the i.MX7D compatible.

ok kettenis@

4 years agoShuffle some functions around.
jsing [Mon, 27 Apr 2020 20:15:17 +0000 (20:15 +0000)]
Shuffle some functions around.

Move functions so that they are in the order that the TLSv1.3 messages are
processed. While here, also move tls13_client_end_of_early_data_send() from
tls13_client.c to tls13_server.c.

No functional change.

ok beck@ tb@

4 years agoRemove reset hack; these days the U-Boot we ship for the CuBox-i is
kettenis [Mon, 27 Apr 2020 20:13:51 +0000 (20:13 +0000)]
Remove reset hack; these days the U-Boot we ship for the CuBox-i is
perfectly happy without it.

ok patrick@

4 years agoUse the device tree properties to setup imxehci(4)'s USB non-core
patrick [Mon, 27 Apr 2020 20:09:55 +0000 (20:09 +0000)]
Use the device tree properties to setup imxehci(4)'s USB non-core
instead of hardcoding the values.

Tested on a Cubox-i by kettenis@
ok kettenis@

4 years agoEnable the power domain and set the assigned clocks on imxehci(4)'s USB
patrick [Mon, 27 Apr 2020 20:07:39 +0000 (20:07 +0000)]
Enable the power domain and set the assigned clocks on imxehci(4)'s USB
controller and its nop-PHYs.  This is needed on the i.MX8MM.

ok kettenis@

4 years agoFix two bugs in the AES-CBC-PKCS5 tests that didn't hide failing tests:
tb [Mon, 27 Apr 2020 19:42:34 +0000 (19:42 +0000)]
Fix two bugs in the AES-CBC-PKCS5 tests that didn't hide failing tests:
1. Use the correct slice for comparing the cipher output
2. Fix logic error similar to the one in AES-GCM in the previous commit

4 years agoFix a logic error that hid the failing ZeroLengthIv tests.
tb [Mon, 27 Apr 2020 19:34:59 +0000 (19:34 +0000)]
Fix a logic error that hid the failing ZeroLengthIv tests.
This issue was fixed in lib/libcrypto/evp/e_aes.c r1.40.

4 years agoDisallow the use of zero length IVs in AES-GCM via
tb [Mon, 27 Apr 2020 19:31:02 +0000 (19:31 +0000)]
Disallow the use of zero length IVs in AES-GCM via
EVP_AEAD_CTX_{open,seal}, as this leaks the authentication key.

Issue reported and fix tested by Guido Vranken.

ok beck, jsing

This commit adds a constant to a public header despite library lock,
as discussed with deraadt and sthen.

4 years agoLog with SPI_SA().
tobhe [Mon, 27 Apr 2020 19:28:13 +0000 (19:28 +0000)]
Log with SPI_SA().

4 years agoThe parent of the i.MX8MM and i.MX8MQ USB_CTRL_ROOTs is USB_BUS,
patrick [Mon, 27 Apr 2020 16:37:36 +0000 (16:37 +0000)]
The parent of the i.MX8MM and i.MX8MQ USB_CTRL_ROOTs is USB_BUS,
not USB_CORE_REF.

4 years agoIf the DHCP server disappears between OFFER'ing and ACK'ing a lease,
krw [Mon, 27 Apr 2020 15:40:21 +0000 (15:40 +0000)]
If the DHCP server disappears between OFFER'ing and ACK'ing a lease,
stop trying to get an ACK from that server after 'timeout'
seconds. Give up and try to get another lease.

Possible infinite loop pointed out by Alexander Markert on tech@.

4 years agosync
deraadt [Mon, 27 Apr 2020 13:42:57 +0000 (13:42 +0000)]
sync

4 years agoBring inittodr()/resettodr() in line with arm64 and move it to
kettenis [Mon, 27 Apr 2020 13:02:50 +0000 (13:02 +0000)]
Bring inittodr()/resettodr() in line with arm64 and move it to
arrm32_machdep.c.

ok mpi@

4 years agoMove inittodr() and resettodr() to the end of the file to easy move an MI
kettenis [Mon, 27 Apr 2020 13:01:23 +0000 (13:01 +0000)]
Move inittodr() and resettodr() to the end of the file to easy move an MI
implementation.

ok mpi@

4 years agoAttach when the name matches "dallas,ds1307" which is what the device tree
kettenis [Mon, 27 Apr 2020 12:41:44 +0000 (12:41 +0000)]
Attach when the name matches "dallas,ds1307" which is what the device tree
binding uses.  Remove warning about overwriting todr_handle since that is
normal behaviour on arm64 systems.

ok sthen@

4 years agoDon't clear OSF flag when we attach such that we can reject the RTC clock
kettenis [Mon, 27 Apr 2020 12:36:03 +0000 (12:36 +0000)]
Don't clear OSF flag when we attach such that we can reject the RTC clock
time if the flag is set.  Instead clear the flag when we set the time.
This way we don't use the clock time if the oscillator has been interrupted.
This happens for example when the battery is dead.

ok sthen@

4 years agoPCIe register accesses seem to "hang" on the i.MX8MM if its PHY doesn't
patrick [Mon, 27 Apr 2020 12:17:29 +0000 (12:17 +0000)]
PCIe register accesses seem to "hang" on the i.MX8MM if its PHY doesn't
come up.  This apparently happens when there's no card in the PCIe slot.
Thus improve the error handling in all cases where we wait for a link to
come up, return and don't proceed any further.

ok kettenis@

4 years agoAdd gpio support to bcmgpio(4) and make gpio(4) attach such that GPIOs
kettenis [Mon, 27 Apr 2020 12:15:30 +0000 (12:15 +0000)]
Add gpio support to bcmgpio(4) and make gpio(4) attach such that GPIOs
that aren't claimed by kernel drivers can be used from userland.

ok sthen@

4 years agoFree the "ranges" array in the error handling paths.
patrick [Mon, 27 Apr 2020 11:41:31 +0000 (11:41 +0000)]
Free the "ranges" array in the error handling paths.

ok kettenis@

4 years agofix SDHC_DEBUG build, remove procname printf's
ians [Mon, 27 Apr 2020 11:37:23 +0000 (11:37 +0000)]
fix SDHC_DEBUG build, remove procname printf's

ok kettenis@

4 years agoIPv6 is no longer on by default. It must be enabled with "inet6 eui64".
gerhard [Mon, 27 Apr 2020 11:16:51 +0000 (11:16 +0000)]
IPv6 is no longer on by default. It must be enabled with "inet6 eui64".

Input from sthen@, ok claudio@

4 years agoWhen creating the rx filter, indicate we want to match against the outermost
jmatthew [Mon, 27 Apr 2020 10:06:45 +0000 (10:06 +0000)]
When creating the rx filter, indicate we want to match against the outermost
packet headers, rather than the headers inside any of the tunnel protocols
the nic firmware understands.  This allows us to receive gre, ipip, mpls,
etc. packets without putting the interface in promisc mode.

ok dlg@

4 years agoDo not close the stdout file descriptor in control mode as it will be
nicm [Mon, 27 Apr 2020 08:35:09 +0000 (08:35 +0000)]
Do not close the stdout file descriptor in control mode as it will be
needed for printing the exit messages. Fixes a bug when detaching with
iTerm2.

4 years agoOffload CCMP (WPA2) encryption and decryption to athn(4) hardware.
stsp [Mon, 27 Apr 2020 08:21:34 +0000 (08:21 +0000)]
Offload CCMP (WPA2) encryption and decryption to athn(4) hardware.

This reduces CPU load during traffic bursts, which is especially noticeable
on boards with relatively slow CPUs such as Alix and APU. For reference,
my rcc-ve boards (Intel Atom C2558) now forward ~2000pps between Ethernet
and wifi with <= 1% CPU interrupt time according to systat. Beforehand, these
boards became noticeably less responsive with fairly high interrupt and spin %.

CCMP offload is used on both PCI and USB devices (thanks kevlo@ for catching
my omission of USB devices in the first iteration of this change!)

Tested by (at least) Kevin Chadwick, tracey@, kevlo@, kili@, Ted Patterson,
David Dahlberg, and Scott Bennett.

ok tracey@ kevlo@

4 years agoFix processing of compressed block ack notifications sent by iwn(4) firmware.
stsp [Mon, 27 Apr 2020 08:02:24 +0000 (08:02 +0000)]
Fix processing of compressed block ack notifications sent by iwn(4) firmware.

Fix wrong assumptions about what the data in these notifications is supposed
to represent, and actually piece information about individual subframes of
aggregated frames (A-MPDUs) back together when reporting to MiRA, rather than
reporting unrelated subframes to MiRA individually.

Testing by cwen@, Josh Grosse, f.holop, benno@
ok jmatthew@

4 years agoAllow iwn(4) firmware to always traverse the entire multi-rate retry table.
stsp [Mon, 27 Apr 2020 08:01:50 +0000 (08:01 +0000)]
Allow iwn(4) firmware to always traverse the entire multi-rate retry table.

This mostly prepares the driver for MIMO support but should also allow for
a higher number of hardware retries at low rates.

Tested by jmc@ and myself.
ok jmatthew@

4 years agodisable POOL_DEBUG in preparation for release
benno [Sun, 26 Apr 2020 21:57:13 +0000 (21:57 +0000)]
disable POOL_DEBUG in preparation for release
ok deraadt@

4 years agoWhile we do not recommend the idiom ".Fl Fl long" for long options
schwarze [Sun, 26 Apr 2020 21:29:45 +0000 (21:29 +0000)]
While we do not recommend the idiom ".Fl Fl long" for long options
because it is an abuse of semantic macros for device-specific
presentational effects, this idiom is so widespread that it makes
sense to convert it to the recommended ".Fl \-long" during the
validation phase.  For example, this improves HTML formatting
in pages where authors have used the dubious .Fl Fl.

Feature suggested by Steffen Nurpmeso <steffen at sdaoden dot eu>
on freebsd-hackers.

4 years agoMap em(4) descriptor rings coherent. This doesn't make a difference on x86,
patrick [Sun, 26 Apr 2020 20:49:56 +0000 (20:49 +0000)]
Map em(4) descriptor rings coherent.  This doesn't make a difference on x86,
but on selected ARM64 machines with non-cache-coherent PCIe controllers this
makes em(4) work reliably.  Without it the network controller's view of the
head and tail get out of sync.  The reason remains unclear.  It could be an
issue in our arm64 bus dma code, it could be an issue in the em(4) code, or
maybe the hardware itself just doesn't cope well with non-coherent memory.
Linux maps them coherent as well, and it might actually be better to map
them that way, since otherwise we might spend a lot of time flushing our
caches.

ok kettenis@ deraadt@

4 years agoFix leak of temporary ID ibufs on IKE SA rekey.
tobhe [Sun, 26 Apr 2020 18:21:53 +0000 (18:21 +0000)]
Fix leak of temporary ID ibufs on IKE SA rekey.

ok markus@

4 years agoOnly print valid rdomains. '-1' is used as default value and should
tobhe [Sun, 26 Apr 2020 16:55:47 +0000 (16:55 +0000)]
Only print valid rdomains. '-1' is used as default value and should
not be printed.

4 years agoMinimal maintenance to make this mess slightly less confusing:
schwarze [Sun, 26 Apr 2020 16:36:14 +0000 (16:36 +0000)]
Minimal maintenance to make this mess slightly less confusing:
queue -> list; mention "intrusive"; element -> member at one place;
delete a bogus remark that maybe referred to a long-gone
implementation in VAX assembly code.
Much more could be improved, but i don't want to waste too much time here.

4 years agoAdd i.MX8MM support to dwpcie(4). This re-uses the existing code
patrick [Sun, 26 Apr 2020 15:17:21 +0000 (15:17 +0000)]
Add i.MX8MM support to dwpcie(4).  This re-uses the existing code
for i.MX8MQ support, but adds some PHY initialization via the
imxpciephy(4) regmap and needs a few other bit-settings in the
IOMUXC GPR for selecting the ref clock.

ok kettenis@

4 years agoimxpciephy(4)
patrick [Sun, 26 Apr 2020 15:11:15 +0000 (15:11 +0000)]
imxpciephy(4)

4 years agoEnable imxpciephy(4).
patrick [Sun, 26 Apr 2020 15:04:54 +0000 (15:04 +0000)]
Enable imxpciephy(4).

4 years agoAdd imxpciephy(4), a driver for the i.MX7D's PCIe PHY, which
patrick [Sun, 26 Apr 2020 15:03:04 +0000 (15:03 +0000)]
Add imxpciephy(4), a driver for the i.MX7D's PCIe PHY, which
is also implemented on the i.MX8MM.  So far this driver is a
glorified regmap provider, which will be used by dwpcie(4).

ok kettenis@

4 years agoBypass authentication and create no session for root
ratchov [Sun, 26 Apr 2020 14:13:22 +0000 (14:13 +0000)]
Bypass authentication and create no session for root

ok deraadt

4 years agoTighten up NAK handling. Inform unwind when the active lease is
krw [Sun, 26 Apr 2020 14:02:23 +0000 (14:02 +0000)]
Tighten up NAK handling. Inform unwind when the active lease is
discarded. Update leases file when active lease is discarded. Discard
NAK'ed offers even if there is no active lease. Always transition to
INIT.

Issues discovered after inappropriate behaviour resported by
Alexander Markert and Pierre Emeriaud.

4 years agofix the description; from andras farkas
jmc [Sun, 26 Apr 2020 13:59:56 +0000 (13:59 +0000)]
fix the description; from andras farkas
ok schwarze

kill a Tn while here...

4 years agoAdd support for the i.MX8MM USB clocks. These behave exactly like
patrick [Sun, 26 Apr 2020 13:31:48 +0000 (13:31 +0000)]
Add support for the i.MX8MM USB clocks.  These behave exactly like
the i.MX8MQ variant and sit in the same places, but there seems to
be only one ROOT clock.  Since the device tree bindings don't seem
to use assigned-clock-rates, there's no need to implement the get/
set frequency for the USB clocks.  Essentially this means: fewer
code to copy.

4 years agoAttach imxgpc(4) to i.MX8MM as well.
patrick [Sun, 26 Apr 2020 13:20:41 +0000 (13:20 +0000)]
Attach imxgpc(4) to i.MX8MM as well.

4 years agoMake explicit and enforce that WSCREEN and WSEMUL names are 0-terminated.
bru [Sun, 26 Apr 2020 11:31:07 +0000 (11:31 +0000)]
Make explicit and enforce that WSCREEN and WSEMUL names are 0-terminated.

CID 1452993 (BUFFER_SIZE_WARNING)
CID 1453314 (BUFFER_SIZE_WARNING)

ok kettenis@

4 years agoRemove unused assignments.
bru [Sun, 26 Apr 2020 11:17:56 +0000 (11:17 +0000)]
Remove unused assignments.

CID 1453143

ok kettenis@

4 years agoSanitize inittodr()/resettodr() implementation.
kettenis [Sun, 26 Apr 2020 10:35:05 +0000 (10:35 +0000)]
Sanitize inittodr()/resettodr() implementation.
- move implementations next to eachother in the same file
- remove pointless call to resettodr() in inittodr()
- use OpenBSD define to get a minimum plausible time
- if RTC time is before minimum plausible time, reject it
- don't print "clock gained N days" on ramdisk

Hopefully this implementation can serve as a model for unification
into an MI implementation.

ok mpi@

4 years agosync
sthen [Sun, 26 Apr 2020 10:09:24 +0000 (10:09 +0000)]
sync

4 years agoFix comment typo. Patch from mforney at mforney.org.
dtucker [Sun, 26 Apr 2020 09:38:14 +0000 (09:38 +0000)]
Fix comment typo.  Patch from mforney at mforney.org.

4 years agosort entries and fix a broken macro;
jmc [Sun, 26 Apr 2020 06:23:32 +0000 (06:23 +0000)]
sort entries and fix a broken macro;

4 years agoDisplay TLSv1.3 extension type with openssl(1) -tlsextdebug
inoguchi [Sun, 26 Apr 2020 02:09:21 +0000 (02:09 +0000)]
Display TLSv1.3 extension type with openssl(1) -tlsextdebug

Add TLSv1.3 extension type, and sort by the definition order in tls1.h.
This helps that openssl(1) s_server and s_client with -tlsextdebug
displays the TLS extension type instead of "unknown".

ok beck@ jsing@ tb@

4 years agos_client: fix use of possibly uninitialized values
inoguchi [Sun, 26 Apr 2020 01:59:27 +0000 (01:59 +0000)]
s_client: fix use of possibly uninitialized values

Set initial value to variable 'p' and 'pending'.

Reported and fix requested from leonklingele by GitHub pull request.
https://github.com/libressl-portable/portable/issues/577
https://github.com/libressl-portable/openbsd/pull/114

ok bcook@ jsing@ tb@

4 years agobcmbsc(4)
kettenis [Sat, 25 Apr 2020 23:00:11 +0000 (23:00 +0000)]
bcmbsc(4)

4 years agoAdd bcmbsc(4), a driver for the Broadcom Serial Control (BSC) controller.
kettenis [Sat, 25 Apr 2020 22:28:12 +0000 (22:28 +0000)]
Add bcmbsc(4), a driver for the Broadcom Serial Control (BSC) controller.
This is really just an I2C controller.

ok patrick@

4 years agoExplicitly check that the length of the "brcm,pull" property is greater
kettenis [Sat, 25 Apr 2020 22:15:00 +0000 (22:15 +0000)]
Explicitly check that the length of the "brcm,pull" property is greater
than zero to avoid a null-pointer dereference caused by unexpected
(at least by me) type promotion.

ok patrick@

4 years agoNote extra Term-ReadKey build dependency on Cwd
afresh1 [Sat, 25 Apr 2020 21:15:23 +0000 (21:15 +0000)]
Note extra Term-ReadKey build dependency on Cwd

Avoids using the installed Cwd module while building perl

4 years agoA comma is not appropriate here, use a semicolon
jca [Sat, 25 Apr 2020 21:06:17 +0000 (21:06 +0000)]
A comma is not appropriate here, use a semicolon

Suggested by Evan Silberman, confirmed by jmc@

4 years agoIn s_server.c rev. 1.33, jsing added support for "openssl s_server -groups";
schwarze [Sat, 25 Apr 2020 19:18:40 +0000 (19:18 +0000)]
In s_server.c rev. 1.33, jsing added support for "openssl s_server -groups";
document it and deprecate "openssl s_server -named_curve".
While here, fix the error in the synopsis for "openssl s_client -groups"
and use unified argument naming and similar wording like
in SSL_CTX_set1_groups_list(3).
OK jsing@

4 years agoDocument 'ikectl show sa'.
tobhe [Sat, 25 Apr 2020 18:38:21 +0000 (18:38 +0000)]
Document 'ikectl show sa'.

4 years agoSwitch to NEGOTIATED when using WITHOUT_HRR.
jsing [Sat, 25 Apr 2020 18:06:28 +0000 (18:06 +0000)]
Switch to NEGOTIATED when using WITHOUT_HRR.

This ensures that we remain in a valid handshake state in the TLSv1.3
server. Ideally we would not switch to NEGOTIATED until after record
protection has been enabled, but we'll revisit this later.

Issue noted by inoguchi@

ok tb@

4 years agoEnable maxrtc(4) and move dsxrtc(4) to keep things in alphabetical order.
kettenis [Sat, 25 Apr 2020 17:49:51 +0000 (17:49 +0000)]
Enable maxrtc(4) and move dsxrtc(4) to keep things in alphabetical order.

4 years agoDiscourage use of RES_USE_INET6
jca [Sat, 25 Apr 2020 16:23:59 +0000 (16:23 +0000)]
Discourage use of RES_USE_INET6

Suggested by eric@, input from deraadt@, ok deraadt@ eric@

4 years agoEnable dsxrtc(4) and pcfrtc(4).
kettenis [Sat, 25 Apr 2020 15:32:11 +0000 (15:32 +0000)]
Enable dsxrtc(4) and pcfrtc(4).

4 years agoregen
kevlo [Sat, 25 Apr 2020 15:24:24 +0000 (15:24 +0000)]
regen

4 years agoAdd RTL8821CE and RTL8822CE PCI ids.
kevlo [Sat, 25 Apr 2020 15:23:48 +0000 (15:23 +0000)]
Add RTL8821CE and RTL8822CE PCI ids.

ok stsp@

4 years agodsxrtc(4)
kettenis [Sat, 25 Apr 2020 15:16:00 +0000 (15:16 +0000)]
dsxrtc(4)

4 years agoAdd dsxrtc(4), a driver for the Maxim DS3231/DS3232 I2C RTC.
kettenis [Sat, 25 Apr 2020 15:10:52 +0000 (15:10 +0000)]
Add dsxrtc(4), a driver for the Maxim DS3231/DS3232 I2C RTC.

ok deraadt@

4 years agoReduce minimum allowed number of chunks in a CONCAT volume from 2 to
krw [Sat, 25 Apr 2020 14:37:43 +0000 (14:37 +0000)]
Reduce minimum allowed number of chunks in a CONCAT volume from 2 to
1.

This increases the number of volumes that can be created on a single disk
from 7 to 15. i.e. a disk can be sliced into a maximum of 225
(15 * 15) filesystems instead of a mere 105 (7 * 15).

ok deraadt@

4 years agoFix RES_USE_INET6 description
jca [Sat, 25 Apr 2020 14:30:05 +0000 (14:30 +0000)]
Fix RES_USE_INET6 description

The previous wording implied this option does nothing, which is wrong.
This option does affect the way gethostbyname(3) works on OpenBSD
(return IPv6 addresses if available).  On some systems, it also
introduces IPv4-mapped IPv6 addresses, a "feature" that we don't
support.

ok deraadt@ eric@

4 years agoMake it clearer that "options inet6" does nothing on OpenBSD
jca [Sat, 25 Apr 2020 14:22:04 +0000 (14:22 +0000)]
Make it clearer that "options inet6" does nothing on OpenBSD

The previous wording could imply that "options inet6" did set
RES_USE_INET6 on OpenBSD but that RES_USE_INET6 had no effect.
The truth is, "options inet6" isn't recognized by libc/asr, but
RES_USE_INET6 has an effect on OpenBSD.

So first state that "options inet6" does nothing on our system, then
describe concisely what it used to do/what it does on other systems.

Prompted by a diff from solene@, claudio@ insisted that we keep
dcumenting this option.  ok eric@ deraadt@ solene@

4 years agosync
deraadt [Sat, 25 Apr 2020 14:17:04 +0000 (14:17 +0000)]
sync

4 years agoMove unsupported, obsolete ciphers and deprecated aliases out of
schwarze [Sat, 25 Apr 2020 14:03:38 +0000 (14:03 +0000)]
Move unsupported, obsolete ciphers and deprecated aliases out of
the main list of words to make it more readable, even though it
remains long.

Avoid using deprecated aliases in explanations what other words mean.
Stop documenting aDSS because it is *both* a deprecated alias *and*
no longer matches anything at all.

General direction discussed with jsing@ some time ago.

4 years agotweak the wording to make it clearer under which conditions exactly
schwarze [Sat, 25 Apr 2020 13:50:05 +0000 (13:50 +0000)]
tweak the wording to make it clearer under which conditions exactly
the TLSv1.3 cipher suites are made available, too;
related to ssl_ciph.c rev. 1.115

4 years agoClairify the point at which unveil first makes restricitons on the
beck [Sat, 25 Apr 2020 13:23:01 +0000 (13:23 +0000)]
Clairify the point at which unveil first makes restricitons on the
filesystem, and remove the BUGS section, as this was fixed by making
realpath() a system call.
ok ingo@ deraadt@

4 years agoRemove redundant bit masking.
kettenis [Sat, 25 Apr 2020 10:41:20 +0000 (10:41 +0000)]
Remove redundant bit masking.