sys/uvideo: fix queries for auto and power line frequency controls
Use fixed ranges for auto and power line frequency controls; use a one
byte frequency value and expose Auto on UVC 1.5 and later; propagate
uvideo_g_ctrl() errors.
OK: mglocker@
rpki-client: add further validation for Name
RFC 6487, sections 4.4, 4.5, and 5 require the CommonName attribute and
allow the serialNumber attribute in cert issuer, subject and CRL issuer,
respectively. The commonName must be a PrintableString per section 4.4
(for BRKs too, per eid8653). Further, X.520 specifies a PrintableString
for serialNumber and RFC 5280 specifies a SIZE (1..64) constraint for
both attributes.
All serialNumber in the wild attributes are PrintableString(SIZE(1..64)),
but there are ~110 CAs (almost all of them part of rebistro.br) that use
a very old version of Krill (older than 0.9.3rc2) to ship ~900 products
were rpki-rs added the full hex encoded SPKI DER into the CommonName
instead of hashing it to become a key identifier (as recomended for the
subject name in RFC 6487, section 8, 1)). This was fixed in rpki-rs#165
and krill#704 in 2021.
Enforce encoding of serialNumber as a PrintableString() and enforce the
length constraints, but carve out an exception allowing a CommonName of
[6 lines not shown]
Fix the keyboard for the HP OmniBook X boot> prompt by using CheckEvent()
to poll the WaitForKey event in efi_cons_getc().
The HP OmniBook X firmware only polls the keyboard from the notify function
of the WaitForKey event, which ReadKeyStroke() alone never triggers, so the
keyboard didn't work at the boot> prompt.
Feedback and ok kettenis@
legitimize_operand() tries to use convert double constants to float, if the
conversion is lossless, in order to reduce register pressure. But the way the
code has been written is too optimistic in deciding which double values can
indeed get safely converted to float. Trust exact_real_truncate() instead,
which knows better.
Bug reported by Izumi Tsutsui, thanks!
Make sure the 88100 fcmp instruction doas not raise invalid on quiet NaNs,
similarly to the 88110 fcmpu instruction.
Conformance issue raised by Izumi Tsutsui, thanks!