openbsd
3 years agosync
deraadt [Fri, 2 Apr 2021 02:30:29 +0000 (02:30 +0000)]
sync

3 years agodon't put ptys onto the ramdisk media
deraadt [Fri, 2 Apr 2021 02:29:54 +0000 (02:29 +0000)]
don't put ptys onto the ramdisk media
from miod

3 years agoIndent struct members like everywhere else.
tb [Fri, 2 Apr 2021 02:20:17 +0000 (02:20 +0000)]
Indent struct members like everywhere else.

3 years agoDocument ioctl(2)'s for vmm(4). OK kn@.
dv [Fri, 2 Apr 2021 01:56:20 +0000 (01:56 +0000)]
Document ioctl(2)'s for vmm(4). OK kn@.

3 years agoUpdate manpage about RRDP
job [Thu, 1 Apr 2021 17:43:11 +0000 (17:43 +0000)]
Update manpage about RRDP

OK claudio@

3 years agoupdate currency exchange rates;
jmc [Thu, 1 Apr 2021 16:59:57 +0000 (16:59 +0000)]
update currency exchange rates;

3 years agosort options list;
jmc [Thu, 1 Apr 2021 16:58:56 +0000 (16:58 +0000)]
sort options list;

3 years agospelling
deraadt [Thu, 1 Apr 2021 16:50:23 +0000 (16:50 +0000)]
spelling

3 years agoSort usage: rR -> Rr
tb [Thu, 1 Apr 2021 16:40:05 +0000 (16:40 +0000)]
Sort usage: rR -> Rr

3 years agoRRDP is currently off by default.
claudio [Thu, 1 Apr 2021 16:16:44 +0000 (16:16 +0000)]
RRDP is currently off by default.

3 years agoTweak log_debug() verbiage to reduce repetitive info
krw [Thu, 1 Apr 2021 16:07:44 +0000 (16:07 +0000)]
Tweak log_debug() verbiage to reduce repetitive info
(ACK/NAK), add details (DISCOVER/REQUEST) and provide
before/after info for SSID/LLADDR/MTU changes.

3 years agoInitial commit of RRDP (The RPKI Repository Delta Protocol - RFC8182) support
claudio [Thu, 1 Apr 2021 16:04:48 +0000 (16:04 +0000)]
Initial commit of RRDP (The RPKI Repository Delta Protocol - RFC8182) support
in rpki-client. For now it is off by default.

All XML processing is done in its own process with minimal pledge rights.
It uses the already present https process to fetch the xml files and uses
the master porcess to handle the file IO into the repositories.
RRDP data is stored in the cache under ./rrdp/ and the first directory
is the SHA256 hash of the notify URI.

Fetching snapshots and deltas works to bring the cache up to date.
If something goes wrong rpki-client will fall back to rsync.

RRDP was implemented by Nils Fisher and integrated into rpki-client by myself.
"Time to get it in" deraadt@

3 years agoFor the snprintf range check demo, add a (size_t) cast in the right place
deraadt [Thu, 1 Apr 2021 14:27:47 +0000 (14:27 +0000)]
For the snprintf range check demo, add a (size_t) cast in the right place
which will satisfy the toughest compiler options

3 years agoAlso immediately accept the *first* OFFER if it matches the requested address,
krw [Thu, 1 Apr 2021 13:17:48 +0000 (13:17 +0000)]
Also immediately accept the *first* OFFER if it matches the requested address,
rather than waiting for select_timeout to expire before accepting the same
OFFER.

3 years agoClean up nonexistent/unused properties handling
kn [Thu, 1 Apr 2021 12:06:00 +0000 (12:06 +0000)]
Clean up nonexistent/unused properties handling

Never used since import and probably just ported over from NetBSD as-is;
"design-capacity" does not exist in the device tree binding.
"monitor-interval-ms" defaults to 250ms as per binding and could be used
in the sensor_task_register() call, but our framework only supports whole
seconds and there's no advantage over our current fixed poll interval of 5s.

OK patrick

3 years agoRemove extraneous call of vm_getbyvmid during pause event
dv [Thu, 1 Apr 2021 11:05:47 +0000 (11:05 +0000)]
Remove extraneous call of vm_getbyvmid during pause event

The vm is already being assigned by a call in the if-condition.

3 years agoAbate superfluous lines from remote servers
job [Thu, 1 Apr 2021 11:04:30 +0000 (11:04 +0000)]
Abate superfluous lines from remote servers

OK claudio@

3 years agoCompare the pointer variable explicitly with NULL in if condition
inoguchi [Thu, 1 Apr 2021 10:47:38 +0000 (10:47 +0000)]
Compare the pointer variable explicitly with NULL in if condition

3 years agoHardcode meaningful alert level, track apm's battery state better
kn [Thu, 1 Apr 2021 10:34:21 +0000 (10:34 +0000)]
Hardcode meaningful alert level, track apm's battery state better

The current code looks for the nonexistent "cellwise,alert-level" property
and falls back to zero as threshold (like the original NetBSD code).
It also updates the CONFIG register with that very threshold to let the
hardware set a bit and thus alert us when it has been reached.

Since our sensor framework is designed to poll every N seconds and this
driver does not actually look at whether the hardware alerted, neither
using a default threshold of zero nor updating the hardware with it makes
sense.

Remove the alert level code and simply map >50%, >25% and <=25% of
remaining battery life to apm(4)'s "high", "low" and "critical" battery
state respectively;  this matches exactly what acpibat(4) does and provides
more meaningful sensor readings without relying on nonexistent device tree
bindings.

Feedback OK patrick

3 years agomerge NSD 4.3.6rc1
sthen [Thu, 1 Apr 2021 09:56:11 +0000 (09:56 +0000)]
merge NSD 4.3.6rc1

3 years agoimport NSD 4.3.6rc1, tested by me and florian@
sthen [Thu, 1 Apr 2021 09:55:16 +0000 (09:55 +0000)]
import NSD 4.3.6rc1, tested by me and florian@

3 years agoPush kernel lock down to umb_rtrequest().
mvs [Thu, 1 Apr 2021 08:39:52 +0000 (08:39 +0000)]
Push kernel lock down to umb_rtrequest().

We are going to unlock PF_ROUTE sockets. This means `if_rtrequest'
handler will be performed without kernel lock.

umb_rtrequest() calls umb_send_inet_proposal() which touches kernel lock
protected `ipv{4,6}dns' array. Also umb_rtrequest() is the only handler
which requires kernel lock to be held. So push the lock down to
umb_rtrequest() instead of grab it around `if_rtrequest' call.

This hunk was commited separately for decreases PF_ROUTE sockets
unlocking diff.

ok gerhard@ deraadt@

3 years agoMake build_crls() behave like build_chain(). If there is not auth data
claudio [Thu, 1 Apr 2021 08:29:10 +0000 (08:29 +0000)]
Make build_crls() behave like build_chain(). If there is not auth data
just NULL the STACK_OF() pointer since libcrypto calls can handle that.
Update comments to be more accurate.
With and OK tb@

3 years agoDo a better job at cleaning up. Remove empty directories, scan not only the
claudio [Thu, 1 Apr 2021 06:53:49 +0000 (06:53 +0000)]
Do a better job at cleaning up. Remove empty directories, scan not only the
known repositories but also clean up no longer known repositories.
With this rpki-client keeps its cache nice and shiny.
With and OK job@

3 years agoAdd encoding.c to the various build targets
claudio [Thu, 1 Apr 2021 06:47:18 +0000 (06:47 +0000)]
Add encoding.c to the various build targets

3 years agoChange search-again with vi keys to work like actual vi(1), also some
nicm [Thu, 1 Apr 2021 06:46:12 +0000 (06:46 +0000)]
Change search-again with vi keys to work like actual vi(1), also some
other fixes. From Aaron Jensen with help from Anindya Mukherjee.

3 years agoMove base64 and hex encoding functions into their own place.
claudio [Thu, 1 Apr 2021 06:43:23 +0000 (06:43 +0000)]
Move base64 and hex encoding functions into their own place.
OK tb@

3 years agoMissing commas, from Vipul Kumar.
nicm [Thu, 1 Apr 2021 06:37:46 +0000 (06:37 +0000)]
Missing commas, from Vipul Kumar.

3 years agoUse new limits@openssh.com protocol extension to let the client select
djm [Wed, 31 Mar 2021 22:16:34 +0000 (22:16 +0000)]
Use new limits@openssh.com protocol extension to let the client select
good limits based on what the server supports. Split the download and
upload buffer sizes to allow them to be chosen independently.

In practice (and assuming upgraded sftp/sftp-server at each end), this
increases the download buffer 32->64KiB and the upload buffer
32->255KiB.

Patches from Mike Frysinger; ok dtucker@

3 years agocannot effectively test posix-rename extension after changes in
djm [Wed, 31 Mar 2021 21:59:26 +0000 (21:59 +0000)]
cannot effectively test posix-rename extension after changes in
feature advertisment.

3 years agodo not advertise protocol extensions that have been disallowed by
djm [Wed, 31 Mar 2021 21:58:07 +0000 (21:58 +0000)]
do not advertise protocol extensions that have been disallowed by
the command-line options (e.g. -p/-P/-R); ok dtucker@

3 years agoSet 'select_timeout' to 'now' when an OFFER is received for the IP address
krw [Wed, 31 Mar 2021 21:17:46 +0000 (21:17 +0000)]
Set 'select_timeout' to 'now' when an OFFER is received for the IP address
requested in the DISCOVER.

i.e. immediately accept the OFFER rather than waiting for select_timeout to
expire before accepting the same OFFER.

A corner case since select-timeout is 0 by default.

3 years agoAdd two missing checks for strdup() returning NULL.
krw [Wed, 31 Mar 2021 20:52:09 +0000 (20:52 +0000)]
Add two missing checks for strdup() returning NULL.

3 years agoone of the examples needs an -N (and explanation);
jmc [Wed, 31 Mar 2021 20:41:35 +0000 (20:41 +0000)]
one of the examples needs an -N (and explanation);
diff from robert scheck

discussed with and tweaked by sthen

3 years agoadd --no-motd to SYNOPSIS;
jmc [Wed, 31 Mar 2021 20:36:05 +0000 (20:36 +0000)]
add --no-motd to SYNOPSIS;

3 years agoAdd option to suppress the Message of the Day
job [Wed, 31 Mar 2021 19:45:16 +0000 (19:45 +0000)]
Add option to suppress the Message of the Day

Fine deraadt@

3 years agotweak column widths of a .Bl -column table
schwarze [Wed, 31 Mar 2021 19:31:35 +0000 (19:31 +0000)]
tweak column widths of a .Bl -column table
and avoid an over-long source line while here;
OK martijn@ jmc@

3 years agoturn log_trace() into a macro to prevent evaluating the format string
eric [Wed, 31 Mar 2021 19:09:19 +0000 (19:09 +0000)]
turn log_trace() into a macro to prevent evaluating the format string
parameters when tracing is not enabled.

ok millert@

3 years agoUpdate for DTLSv1.2 support.
tb [Wed, 31 Mar 2021 18:03:13 +0000 (18:03 +0000)]
Update for DTLSv1.2 support.

3 years agoallow to specify tls protocols and ciphers on relay actions
eric [Wed, 31 Mar 2021 17:47:16 +0000 (17:47 +0000)]
allow to specify tls protocols and ciphers on relay actions

ok espie@ sthen@ tb@

3 years agochange the barrier so that fd's are always passed and received with
eric [Wed, 31 Mar 2021 17:42:24 +0000 (17:42 +0000)]
change the barrier so that fd's are always passed and received with
the first byte of the imsg they belong to.

idea, tweaks and ok claudio@

3 years agoRemove workarounds for SSL_is_dtls()
tb [Wed, 31 Mar 2021 17:13:54 +0000 (17:13 +0000)]
Remove workarounds for SSL_is_dtls()

Reminded by inoguchi jsing

3 years agoRemove workaround for missing d2i_DSAPrivateKey_fp prototype
tb [Wed, 31 Mar 2021 17:10:13 +0000 (17:10 +0000)]
Remove workaround for missing d2i_DSAPrivateKey_fp prototype

3 years agosync
tb [Wed, 31 Mar 2021 17:04:18 +0000 (17:04 +0000)]
sync

3 years agoBump minors after symbol addition
tb [Wed, 31 Mar 2021 17:02:18 +0000 (17:02 +0000)]
Bump minors after symbol addition

3 years agoExpose various DTLSv1.2 specific functions and defines
tb [Wed, 31 Mar 2021 16:59:32 +0000 (16:59 +0000)]
Expose various DTLSv1.2 specific functions and defines

ok bcook inoguchi jsing

3 years agoDocument SSL_set_hostflags(3) and SSL_get0_peername(3)
tb [Wed, 31 Mar 2021 16:56:46 +0000 (16:56 +0000)]
Document SSL_set_hostflags(3) and SSL_get0_peername(3)

ok bcook inoguchi jsing

3 years agoExpose SSL_set_hostflags(3) and SSL_get0_peername(3)
tb [Wed, 31 Mar 2021 16:55:04 +0000 (16:55 +0000)]
Expose SSL_set_hostflags(3) and SSL_get0_peername(3)

ok bcook inoguchi jsing

3 years agoDocument SSL_use_certificate_chain_file(3)
tb [Wed, 31 Mar 2021 16:53:30 +0000 (16:53 +0000)]
Document SSL_use_certificate_chain_file(3)

ok bcook inoguchi jsing

3 years agoExpose SSL_use_certificate_chain_file(3)
tb [Wed, 31 Mar 2021 16:52:15 +0000 (16:52 +0000)]
Expose SSL_use_certificate_chain_file(3)

ok bcook inoguchi jsing

3 years agoProvide missing prototype for d2i_DSAPrivateKey_fp(3)
tb [Wed, 31 Mar 2021 16:51:06 +0000 (16:51 +0000)]
Provide missing prototype for d2i_DSAPrivateKey_fp(3)

ok bcook inoguchi jsing

3 years agoDocument EVP_PKEY_new_CMAC_key(3)
tb [Wed, 31 Mar 2021 16:48:43 +0000 (16:48 +0000)]
Document EVP_PKEY_new_CMAC_key(3)

ok bcook inoguchi jsing

3 years agoProvide EVP_PKEY_new_CMAC_key(3)
tb [Wed, 31 Mar 2021 16:47:00 +0000 (16:47 +0000)]
Provide EVP_PKEY_new_CMAC_key(3)

ok bcook inoguchi jsing

3 years agoSet the process title for the rpki-client subprocesses so they can be
claudio [Wed, 31 Mar 2021 16:11:02 +0000 (16:11 +0000)]
Set the process title for the rpki-client subprocesses so they can be
identified more easily.
OK deraadt@

3 years agoFix some debug output when running in foreground.
krw [Wed, 31 Mar 2021 15:32:11 +0000 (15:32 +0000)]
Fix some debug output when running in foreground.

Call tick_msg() at startup so it knows if the link
is up. Don't emit 'link timeout expired' messages
after the link has been up.

3 years agoMake ddb's dependency on libz explicit.
visa [Wed, 31 Mar 2021 12:59:50 +0000 (12:59 +0000)]
Make ddb's dependency on libz explicit.

OK deraadt@ mpi@

3 years agosync
sthen [Wed, 31 Mar 2021 09:59:32 +0000 (09:59 +0000)]
sync

3 years agoRemove redundant "HUAWEI Mobile" in usbdevs strings, mention radio
sthen [Wed, 31 Mar 2021 09:59:21 +0000 (09:59 +0000)]
Remove redundant "HUAWEI Mobile" in usbdevs strings, mention radio
technology where known.  ok deraadt

3 years agoIntroduce UAO_USES_SWHASH() and use tabs instead of spaces in #defines.
mpi [Wed, 31 Mar 2021 08:53:39 +0000 (08:53 +0000)]
Introduce UAO_USES_SWHASH() and use tabs instead of spaces in #defines.

No functionnal change, reduce the difference with NetBSD.

ok jmatthew@

3 years agoDo not exit if cannot write to normal log file, GitHub issue 2630.
nicm [Wed, 31 Mar 2021 08:37:48 +0000 (08:37 +0000)]
Do not exit if cannot write to normal log file, GitHub issue 2630.

3 years agodocument trusted_snapshot
espie [Wed, 31 Mar 2021 08:00:57 +0000 (08:00 +0000)]
document trusted_snapshot

3 years agofix typos in comments
sthen [Tue, 30 Mar 2021 20:58:19 +0000 (20:58 +0000)]
fix typos in comments

3 years agoIn HTML output, correctly render .Bd -unfilled in proportionally-spaced
schwarze [Tue, 30 Mar 2021 19:23:50 +0000 (19:23 +0000)]
In HTML output, correctly render .Bd -unfilled in proportionally-spaced
font, rather than with the monospace font appropriate for .Bd -literal.
This fixes a minibug reported by anton@.

Implemented by no longer relying on the typical browser default of
"pre { font-family: monospace }" but instead letting <pre> elements
inherit the font family from their parent, then adding an explicit CSS .Li
class only for those displays where the manual page author requested it
by using the -literal option on the .Bd macro.

3 years agoHandle systems, such as the Dell Precision 3640, that access
kettenis [Tue, 30 Mar 2021 16:49:58 +0000 (16:49 +0000)]
Handle systems, such as the Dell Precision 3640, that access
GenericSerialBus operating regions witout checking whether they're really
available.  This needs to work on RAMDISK kernels as well.  Since we
don't want to pull in the i2c subsystem on those, provide a separate
and much simpler dummy implementation of the GenericSerialBus access code
when SMALL_KERNEL is defined.

ok tb@

3 years agoRegister the PCI variant of dwiic(4) with acpi(4).
kettenis [Tue, 30 Mar 2021 16:46:36 +0000 (16:46 +0000)]
Register the PCI variant of dwiic(4) with acpi(4).

ok tb@

3 years agoMake http_new() take care of all the error handling. By closing the
claudio [Tue, 30 Mar 2021 16:05:56 +0000 (16:05 +0000)]
Make http_new() take care of all the error handling. By closing the
outfd and sending back the failure report via http_fail(). This was
partially done in the failure case of http_resolv() and resulted in
double failure reports in that case.
With and OK tb@, previous version OK deraadt@

3 years agoSome cards announce support for the NTB16 format, but that support does not
patrick [Tue, 30 Mar 2021 15:59:04 +0000 (15:59 +0000)]
Some cards announce support for the NTB16 format, but that support does not
work.  Hence, add support for NTB32 in the transmit path.  We already have
support for NTB32 in the receive path.  We detect the supported format on
boot and can then decide on transmit which format to use.

From ehrhardt@ with gerhard@
Tested by jan@
ok sthen@

3 years agoSome umb(4) devices require the NDP pointer behind the NDP datagram.
patrick [Tue, 30 Mar 2021 15:48:36 +0000 (15:48 +0000)]
Some umb(4) devices require the NDP pointer behind the NDP datagram.

From gerhard@
"broadly OK" sthen@

3 years ago[ICMP] IP options lead to malformed reply
sashan [Tue, 30 Mar 2021 08:37:10 +0000 (08:37 +0000)]
[ICMP] IP options lead to malformed reply

icmp_send() must update IP header length if IP optaions are appended.
Such packet also has to be dispatched with IP_RAWOUTPUT flags.

Bug reported and fix co-designed by Dominik Schreilechner _at_ siemens _dot_ com

OK bluhm@

3 years agoMove tx/rx descriptors into their own structs.
kevlo [Tue, 30 Mar 2021 00:55:08 +0000 (00:55 +0000)]
Move tx/rx descriptors into their own structs.
This is a first step toward making rge work with multiple queues and interrupts.
Only one queue is currently used.

While here, update the RTL8125B microcode.

ok jmatthew@

3 years agoPropagate host-side tap(4) lladdr to guest vm process to allow unicast dhcp
dv [Mon, 29 Mar 2021 23:37:01 +0000 (23:37 +0000)]
Propagate host-side tap(4) lladdr to guest vm process to allow unicast dhcp
and bootp renewals with vmd(8)'s built-in dhcp server. Previous behavior
ignored did not intercept these packets and instead transmitted them.

This should make vmd(8)'s dhcp behave more as a true dhcp server should and
allows it to work properly with the new dhcpleased(8) attempting a renewal.

OK mlarkin@

3 years agoInstall apm(8) and and apmd(8) under MI MANPATH
kn [Mon, 29 Mar 2021 20:10:30 +0000 (20:10 +0000)]
Install apm(8) and and apmd(8) under MI MANPATH

powerpc64 was lacking manual pages;  instead of shipping yet another
identical MD manual, merge them under MI MANPATH as usual.

Input OK deraadt

3 years agowhitespace nits
tb [Mon, 29 Mar 2021 18:24:04 +0000 (18:24 +0000)]
whitespace nits

3 years agoPrepare documenting EVP_PKEY_new_CMAC_key(3)
tb [Mon, 29 Mar 2021 17:58:29 +0000 (17:58 +0000)]
Prepare documenting EVP_PKEY_new_CMAC_key(3)

Based on some text in OpenSSL 1.1.1's EVP_PKEY_new.pod.

3 years agoTurns out the PCIe DARTs support a full 32-bit device virtual address space.
kettenis [Mon, 29 Mar 2021 17:04:00 +0000 (17:04 +0000)]
Turns out the PCIe DARTs support a full 32-bit device virtual address space.
Adjust the region managed by the extend accordingly but avoid the first
and last page.  The last page collides with the MSI address used by the
PCIe controller and not using the first page helps finding bugs.

ok patrick@

3 years agoRemove pointless assignment in SSL_get0_alpn_selected().
jsing [Mon, 29 Mar 2021 16:57:38 +0000 (16:57 +0000)]
Remove pointless assignment in SSL_get0_alpn_selected().

ok tb@

3 years agoAvoid transcript initialisation when sending a TLS HelloRequest.
jsing [Mon, 29 Mar 2021 16:56:20 +0000 (16:56 +0000)]
Avoid transcript initialisation when sending a TLS HelloRequest.

When server side renegotiation is triggered, the TLSv1.2 state machine
sends a HelloRequest before going to ST_SW_FLUSH and ST_OK. In this case
we do not need the transcript and currently hit the sanity check in ST_OK
that ensures the transcript has been freed, breaking server initiated
renegotiation. We do however need the transcript in the DTLS case.

ok tb@

3 years agoMove finished and peer finished to the handshake struct.
jsing [Mon, 29 Mar 2021 16:46:09 +0000 (16:46 +0000)]
Move finished and peer finished to the handshake struct.

This moves the finish_md and peer_finish_md from the 'tmp' struct to the
handshake struct, renaming to finished and peer_finished in the process.
This also allows the remaining S3I(s) references to be removed from the
TLSv1.3 client and server.

ok inoguchi@ tb@

3 years agoAdd regress coverage for TLSv1.2 record number increment.
jsing [Mon, 29 Mar 2021 16:22:02 +0000 (16:22 +0000)]
Add regress coverage for TLSv1.2 record number increment.

3 years agoMove the TLSv1.2 record number increment into the new record layer.
jsing [Mon, 29 Mar 2021 16:19:15 +0000 (16:19 +0000)]
Move the TLSv1.2 record number increment into the new record layer.

This adds checks (based on the TLSv1.3 implementation) to ensure that the
TLS/DTLS sequence numbers do not wrap, as required by the respective RFCs.

ok inoguchi@ tb@

3 years agoPrepare to provide EVP_PKEY_new_CMAC_key()
tb [Mon, 29 Mar 2021 15:57:23 +0000 (15:57 +0000)]
Prepare to provide EVP_PKEY_new_CMAC_key()

sebastia ran into this when attempting to update security/hcxtools.
This will be tested via wycheproof.go once the symbol is public.

ok jsing, tested by sebastia

3 years agoAdd a pretty_key_id() which reinserts colons into the hex string.
claudio [Mon, 29 Mar 2021 15:47:34 +0000 (15:47 +0000)]
Add a pretty_key_id() which reinserts colons into the hex string.
This way the AKI and SKI printed in the tests tools look the same as before.
Requested by job@, OK job@ tb@

3 years agoFix my email address in copyright line
claudio [Mon, 29 Mar 2021 15:37:04 +0000 (15:37 +0000)]
Fix my email address in copyright line

3 years ago-B option not updated about bird1v4 & bird1v6 files; ok job
deraadt [Mon, 29 Mar 2021 15:04:28 +0000 (15:04 +0000)]
-B option not updated about bird1v4 & bird1v6 files; ok job

3 years agocombine umb_products and umb_fccauth_devs into one umb_quirks table
sthen [Mon, 29 Mar 2021 13:38:01 +0000 (13:38 +0000)]
combine umb_products and umb_fccauth_devs into one umb_quirks table
ok gerhard@

3 years agoCleanly teardown and restore emulated device state on vm send/receive.
dv [Mon, 29 Mar 2021 13:09:41 +0000 (13:09 +0000)]
Cleanly teardown and restore emulated device state on vm send/receive.

This cleans up events on a pause or resume, but also fixes an issue
where the vm_pipe event channels are not properly reinitialized on a
received guest leading to broken serial console.

OK pd@, mlarkin@

3 years agoIntroduce hex_encode() to transform the aki/ski values to a string.
claudio [Mon, 29 Mar 2021 12:41:34 +0000 (12:41 +0000)]
Introduce hex_encode() to transform the aki/ski values to a string.
OK tb@

3 years agoFix IA32_EPT_VPID_CAP_XO_TRANSLATIONS specification
dv [Mon, 29 Mar 2021 12:39:02 +0000 (12:39 +0000)]
Fix IA32_EPT_VPID_CAP_XO_TRANSLATIONS specification

Per Intel SDM (Vol 3D, App. A.10) bit 0 should be read as a 1 if enabled.

From Adam Steen. ok mlarkin@

3 years agoInline x509_get_extensions() and remove it
tb [Mon, 29 Mar 2021 06:50:44 +0000 (06:50 +0000)]
Inline x509_get_extensions() and remove it

Since aia, aki and ski are all represented by char *, this is an
error-prone interface - as found by job. The function doesn't do
much anyway.

ok claudio

3 years agoPull up freeing cms in gbr_parse() after its last use to avoid a leak
tb [Mon, 29 Mar 2021 06:38:35 +0000 (06:38 +0000)]
Pull up freeing cms in gbr_parse() after its last use to avoid a leak
on x509_get_extensions() failure.

Fix suggested by claudio

3 years agoCheck all inet_ntop() calls, in case we screw up the parameters somehow we
deraadt [Mon, 29 Mar 2021 06:15:29 +0000 (06:15 +0000)]
Check all inet_ntop() calls, in case we screw up the parameters somehow we
prefer a failure rather than some sort of weird truncation
ok claudio

3 years agosort includes
tb [Mon, 29 Mar 2021 04:01:17 +0000 (04:01 +0000)]
sort includes

3 years agoRemove accidental but justified annotation
tb [Mon, 29 Mar 2021 04:00:38 +0000 (04:00 +0000)]
Remove accidental but justified annotation

3 years agospellings
yasuoka [Mon, 29 Mar 2021 03:54:39 +0000 (03:54 +0000)]
spellings
suggested by jsg

3 years agominor KNF and consistancy
deraadt [Mon, 29 Mar 2021 03:45:35 +0000 (03:45 +0000)]
minor KNF and consistancy
(rpki-client is pretty good code, couple hours of audit and I can only find
a few minor things)

3 years agoimprove the naming of some intermediate buffers
deraadt [Mon, 29 Mar 2021 03:39:14 +0000 (03:39 +0000)]
improve the naming of some intermediate buffers

3 years ago3 additional snprintf() range checks (inconceivable these would ever
deraadt [Mon, 29 Mar 2021 03:35:32 +0000 (03:35 +0000)]
3 additional snprintf() range checks (inconceivable these would ever
truncate, but if they do, we prefer to know)
ok job claudio

3 years agoin unsafe_char(), handle %NN with array-index inspection rather than weird
deraadt [Mon, 29 Mar 2021 03:34:52 +0000 (03:34 +0000)]
in unsafe_char(), handle %NN with array-index inspection rather than weird
ptr++
ok claudio

3 years agoThe failure mode of test-tls13-version-negotiation.py has changed.
tb [Sun, 28 Mar 2021 18:12:09 +0000 (18:12 +0000)]
The failure mode of test-tls13-version-negotiation.py has changed.
Update comment.

3 years agoSince ipw(4) doesn't call into net80211_newstate() the interface link state
stsp [Sun, 28 Mar 2021 18:02:32 +0000 (18:02 +0000)]
Since ipw(4) doesn't call into net80211_newstate() the interface link state
must be updated by the driver in order to get packets to flow.

In case of WPA the link state was updated as a side-effect of a successful
WPA handshake. This commit fixes the WEP and plaintext cases.

Problem reported and fix tested by Riccardo Mottola.