openbsd
16 months agoExplicit parameter printing can also use get0_order()
tb [Mon, 3 Jul 2023 09:37:30 +0000 (09:37 +0000)]
Explicit parameter printing can also use get0_order()

ok beck jsing

16 months agoConvert ossl_ec_key_gen() and EC_KEY_check_key()
tb [Mon, 3 Jul 2023 09:35:26 +0000 (09:35 +0000)]
Convert ossl_ec_key_gen() and EC_KEY_check_key()

These also get the EC_GROUP_get0_order() treatment

ok beck jsing

16 months agoConvert EC_GROUP_check() to EC_GROUP_get0_order()
tb [Mon, 3 Jul 2023 09:29:55 +0000 (09:29 +0000)]
Convert EC_GROUP_check() to EC_GROUP_get0_order()

ok beck jsing

16 months agoInline two copies of EC_GROUP_order_bits()
tb [Mon, 3 Jul 2023 09:25:44 +0000 (09:25 +0000)]
Inline two copies of EC_GROUP_order_bits()

This code is way more complicated than it needs to be. Simplify. ec_bits()
was particularly stupid.

ok beck jsing

16 months agouse semicolon not comma at eol
jsg [Mon, 3 Jul 2023 09:12:05 +0000 (09:12 +0000)]
use semicolon not comma at eol
ok stsp@

16 months agofix uuid_dec_{b,l}e prototypes
jasper [Mon, 3 Jul 2023 08:53:27 +0000 (08:53 +0000)]
fix uuid_dec_{b,l}e prototypes

ok jmc@

16 months agosome minor fix up;
jmc [Mon, 3 Jul 2023 08:37:22 +0000 (08:37 +0000)]
some minor fix up;

16 months agoAnother warning fix for GCC from Thomas Klausner.
nicm [Mon, 3 Jul 2023 08:37:14 +0000 (08:37 +0000)]
Another warning fix for GCC from Thomas Klausner.

16 months agowhen shutting down a vm, handle the VM id in the same way as a VM name argument
jasper [Mon, 3 Jul 2023 08:32:20 +0000 (08:32 +0000)]
when shutting down a vm, handle the VM id in the same way as a VM name argument

ok dv@

16 months agoNuke unused label 'next:'.
krw [Mon, 3 Jul 2023 08:16:36 +0000 (08:16 +0000)]
Nuke unused label 'next:'.

16 months agoBring back no_tls1 and no_tls1_1 as undocumented silently discarded opitons
beck [Mon, 3 Jul 2023 08:03:56 +0000 (08:03 +0000)]
Bring back no_tls1 and no_tls1_1 as undocumented silently discarded opitons

While I'm here, change the no_ssl2 and no_ssl3 options to use
OPTION_DISCARD as well instead of continuing to set a no-op
option flag.

ok jsing@ tb@

16 months agotypofix lladdr in function names; OK deraadt jan
kn [Mon, 3 Jul 2023 07:40:52 +0000 (07:40 +0000)]
typofix lladdr in function names;  OK deraadt jan

16 months agoSwitch ECDSA code to using EC_GROUP_get0_order()
tb [Mon, 3 Jul 2023 07:28:05 +0000 (07:28 +0000)]
Switch ECDSA code to using EC_GROUP_get0_order()

ok jsing

16 months agoProvide internal-only EC_GROUP_get0_order()
tb [Mon, 3 Jul 2023 07:26:40 +0000 (07:26 +0000)]
Provide internal-only EC_GROUP_get0_order()

ok jsing

16 months agoBring malloc(9) and <sys/malloc.h> into sync for M_* entries, such
guenther [Mon, 3 Jul 2023 06:45:44 +0000 (06:45 +0000)]
Bring malloc(9) and <sys/malloc.h> into sync for M_* entries, such
that the former's text comes from the latter's comments.  Rationalize
capitalization, whitespace, and plural-vs-singular.  Mark things for
for automation in the future.

Prompted by loss of sync from the addition of M_IFGROUP and M_PF
Previously worked up in discussion with schwarze@ and jmc@

ok deraadt@, miod@, jmc@

16 months agoRemove the tls1.0 and 1.1 related options from the openssl(1) toolkit
beck [Mon, 3 Jul 2023 06:22:07 +0000 (06:22 +0000)]
Remove the tls1.0 and 1.1 related options from the openssl(1) toolkit

ok tb@

16 months agoThe only thing worse than treating 'return' as a function call is
krw [Mon, 3 Jul 2023 06:07:40 +0000 (06:07 +0000)]
The only thing worse than treating 'return' as a function call is
randomly mixing 'return (blah)' and 'return blah' idioms.

Nuke the '()'s. No intentional functional change.

16 months agoAnother empty line did not want to go in
tb [Mon, 3 Jul 2023 05:48:18 +0000 (05:48 +0000)]
Another empty line did not want to go in

16 months agoStop caring about tls 1.0 and 1.1.
beck [Mon, 3 Jul 2023 05:45:53 +0000 (05:45 +0000)]
Stop caring about tls 1.0 and 1.1.

Syslogd is not a tls protocol tester in any case. These tests
should not care what version of tls they use

16 months agoStop testing tls 1.0 and 1.1
beck [Mon, 3 Jul 2023 05:31:56 +0000 (05:31 +0000)]
Stop testing tls 1.0 and 1.1

They have gone behind the barn.

16 months agoTrade a pair of extra braces for a missing empty line
tb [Mon, 3 Jul 2023 05:29:03 +0000 (05:29 +0000)]
Trade a pair of extra braces for a missing empty line

16 months agoAdd button mappings for two- and three-finger clicks on clickpads.
bru [Sun, 2 Jul 2023 21:44:04 +0000 (21:44 +0000)]
Add button mappings for two- and three-finger clicks on clickpads.

Based on a proposal of tobhe@.

ok tobhe@

16 months agoSimplify allocation checks
tb [Sun, 2 Jul 2023 20:16:47 +0000 (20:16 +0000)]
Simplify allocation checks

Instead of attempting to allocate a few times and only then check all the
returned pointers for NULL, allocate and check one after the othre. This
is easier on the eyes and what we usually do.

Prompted by a report by Ilya Shipitsin

ok beck

16 months agoUse TSO and LRO on the loopback interface to transfer TCP faster.
bluhm [Sun, 2 Jul 2023 19:59:15 +0000 (19:59 +0000)]
Use TSO and LRO on the loopback interface to transfer TCP faster.

If tcplro is activated on lo(4), ignore the MTU with TCP packets.
They are passed along with the information that they have to be
chopped in case they are forwarded later.  New netstat(1) counter
shows that software LRO is in effect.  The feature is currently
turned off by default.

tested by jan@; OK claudio@ jan@

16 months agoClean up dynamic tables in OPENSSL_cleanup()
tb [Sun, 2 Jul 2023 19:52:01 +0000 (19:52 +0000)]
Clean up dynamic tables in OPENSSL_cleanup()

This is not currently done in OpenSSL, but it looks more like something
that was mised rather than desired behavior. There are some thread safety
issues here, but those are rife in this codebase anyway (although I heard
claims on some versions of this lib being "fully threadsafe").

no objection jsing

16 months agoall platforms, kernel: remove __HAVE_CLOCKINTR symbol
cheloha [Sun, 2 Jul 2023 19:02:27 +0000 (19:02 +0000)]
all platforms, kernel: remove __HAVE_CLOCKINTR symbol

Every platform made the clockintr switch at least six months ago.
The __HAVE_CLOCKINTR symbol is now redundant.  Remove it.

Prompted by claudio@.

Link: https://marc.info/?l=openbsd-tech&m=168826181015032&w=2
"makes sense" mlarkin@

16 months agoDisable TLS 1.0 and TLS 1.1 in libssl
beck [Sun, 2 Jul 2023 17:21:32 +0000 (17:21 +0000)]
Disable TLS 1.0 and TLS 1.1 in libssl

Their time has long since past, and they should not be used.
This change restricts ssl to versions 1.2 and 1.3, and changes
the regression tests to understand we no longer speak the legacy
protocols.

For the moment the magical "golden" byte for byte comparison
tests of raw handshake values are disabled util jsing fixes them.

ok jsing@ tb@

16 months agoConvert some tables to C99 initializers
tb [Sun, 2 Jul 2023 17:12:17 +0000 (17:12 +0000)]
Convert some tables to C99 initializers

ok & "happy pirate day" beck

16 months agoFix return values of ecx methods
tb [Sun, 2 Jul 2023 15:02:52 +0000 (15:02 +0000)]
Fix return values of ecx methods

It is hard to get your return values right if you choose them to be a
random subset of {-2, ..., 3}. The item_verify() and the digestverify()
methods don't return 0 on error, but -1. Here 0 means "failed to verify",
obviously.

ok jsing

16 months agoDemacro SHA-512.
jsing [Sun, 2 Jul 2023 14:57:58 +0000 (14:57 +0000)]
Demacro SHA-512.

Use static inline functions instead of macros to implement SHA-512. At
the same time, make two key changes - firstly, rather than trying to
outsmart the compiler and shuffle variables around, write the algorithm
the way it is documented and actually swap the variable contents. Secondly,
instead of interleaving the message schedule update and the round, do the
full message schedule update first, then process the round.

Overall, we get safer and more readable code. Additionally, the compiler
can generate smaller and faster code (with a gain of 5-10% across a range
of architectures).

ok beck@ tb@

16 months agoFix typo in previous
tb [Sun, 2 Jul 2023 14:54:37 +0000 (14:54 +0000)]
Fix typo in previous

16 months agoUse asprintf() to avoid repetition in string constants
tb [Sun, 2 Jul 2023 14:53:18 +0000 (14:53 +0000)]
Use asprintf() to avoid repetition in string constants

... since ASN1_bn_print() is stupid.

ok jsing

16 months agoSplit ECPKParameters_print()
tb [Sun, 2 Jul 2023 13:48:47 +0000 (13:48 +0000)]
Split ECPKParameters_print()

This function has two entirely independent parts, so instead of a huge
if/else just use two functions. In ecpk_print_explicity parameters() do
some additional boring cleanup such as switching to actually using the
local BN_CTX and shuffling things into a slightly more sensible order.

ok jsing

16 months agoSwitch sign_sig() and sign_setup() to using BN_CTX
tb [Sun, 2 Jul 2023 13:37:09 +0000 (13:37 +0000)]
Switch sign_sig() and sign_setup() to using BN_CTX

Both these functions use a BN_CTX internally to deal with the EC API
that usually requires one. However, they don't actually make use of it.
Get the BIGNUMs from the BN_CTX instead, which simplifies the cleanup.
Also defer allocation of the ECDSA_SIG to the very end. Instead of using
its internal r and s, use two local r and s variables and transfer those
to the ECDSA_SIG on success.

ok beck jsing

16 months agolost silence_children behavior by accident
espie [Sun, 2 Jul 2023 13:33:10 +0000 (13:33 +0000)]
lost silence_children behavior by accident
add a hook to compute the exit_code in more fun ways

16 months agoRevert hunk accidentally committed in r1.39
tb [Sun, 2 Jul 2023 13:26:36 +0000 (13:26 +0000)]
Revert hunk accidentally committed in r1.39

16 months agoRework handling of the out_kinv and out_r pointers
tb [Sun, 2 Jul 2023 13:18:54 +0000 (13:18 +0000)]
Rework handling of the out_kinv and out_r pointers

suggested by jsing

16 months agoReplace bn_sqr_words() with bn_sqr_add_words().
jsing [Sun, 2 Jul 2023 13:11:23 +0000 (13:11 +0000)]
Replace bn_sqr_words() with bn_sqr_add_words().

In order to implement efficient squaring, we compute the sum of products
(omitting the squares), double the sum of products and then finally
compute and add in the squares. However, for reasons unknown the final
calculation was implemented as two separate steps.

Replace bn_sqr_words() with bn_sqr_add_words() such that we do the
computation in one step, avoid the need for temporary BN and remove
needless overhead. This gives us a performance gain across most
architectures (even with the loss of sse2 on i386, for example).

ok tb@

16 months agoRename ctx_in into in_ctx, kinvp into out_kinv and rp into out_r
tb [Sun, 2 Jul 2023 13:05:29 +0000 (13:05 +0000)]
Rename ctx_in into in_ctx, kinvp into out_kinv and rp into out_r

16 months agoRename a few variables from X to x
tb [Sun, 2 Jul 2023 12:48:59 +0000 (12:48 +0000)]
Rename a few variables from X to x

16 months agosync
deraadt [Sun, 2 Jul 2023 12:45:01 +0000 (12:45 +0000)]
sync

16 months agoSimplify things by switching to bn_rand_interval()
tb [Sun, 2 Jul 2023 12:25:33 +0000 (12:25 +0000)]
Simplify things by switching to bn_rand_interval()

This avoids some silly dances in ECDSA signature generation by replacing
them with a single API call. Also garbage collect the now unnecessary
range.

ok beck jsing

16 months agoUnconditionally zero the ECDH key
tb [Sun, 2 Jul 2023 11:29:36 +0000 (11:29 +0000)]
Unconditionally zero the ECDH key

While memset() is quite expensive, we can afford zeroing a few extra bytes
to make this code more readable.

ok beck jsing

16 months agoPS_CHROOT flag must also be copied when forking. This will block
deraadt [Sun, 2 Jul 2023 11:16:03 +0000 (11:16 +0000)]
PS_CHROOT flag must also be copied when forking.  This will block
a ypconnect(2) from reading inside an incorrectly configured space.
ok kettenis

16 months agoTeach openssl ca about Ed25519 certificates
tb [Sun, 2 Jul 2023 07:08:57 +0000 (07:08 +0000)]
Teach openssl ca about Ed25519 certificates

This adds a few logic curlies to end up setting the EVP_MD to EVP_md_null()
as required by the API. This way ASN1_item_sign() now knows how to behave.

"ok = (rv == 2);" beck

16 months agoTeach openssl req about EdDSA certs
tb [Sun, 2 Jul 2023 07:05:14 +0000 (07:05 +0000)]
Teach openssl req about EdDSA certs

After a few things in libcrypto were adjusted, this diff makes issuing
certificate requests with Ed25519 work.

ok beck

16 months agoRemove the ability to do tls 1.0 and 1.1 from libtls.
beck [Sun, 2 Jul 2023 06:37:27 +0000 (06:37 +0000)]
Remove the ability to do tls 1.0 and 1.1 from libtls.

With this change any requests from configurations to request
versions of tls before tls 1.2 will use tls 1.2. This prepares
us to deprecate tls 1.0 and tls 1.1 support from libssl.

ok tb@

16 months agoECDSA_size(): move order a few lines down
tb [Sun, 2 Jul 2023 04:17:00 +0000 (04:17 +0000)]
ECDSA_size(): move order a few lines down

16 months agoInvert method checks to avoid stupid line breaks
tb [Sun, 2 Jul 2023 03:20:44 +0000 (03:20 +0000)]
Invert method checks to avoid stupid line breaks

16 months agoMove the EC_POINT a bit down and a * to the right place
tb [Sun, 2 Jul 2023 03:11:51 +0000 (03:11 +0000)]
Move the EC_POINT a bit down and a * to the right place

16 months agoech_key.c: Fix includes
tb [Sun, 2 Jul 2023 02:28:20 +0000 (02:28 +0000)]
ech_key.c: Fix includes

We need stdint.h for uintptr_t, stdlib.h for malloc, ec.h for various
things, but there's no need for objects. or sha.h.

16 months agoclockintr_cpu_init: stagger clock interrupts by MAXCPUS
cheloha [Sun, 2 Jul 2023 00:55:18 +0000 (00:55 +0000)]
clockintr_cpu_init: stagger clock interrupts by MAXCPUS

During clockintr_cpu_init(), we can't stagger by ncpus because not
every platform has fully incremented it yet.  Instead, stagger by
MAXCPUS.  The resulting intervals are smaller, but are probably still
sufficiently large to avoid aggravating lock contention, even on
platforms where MAXCPUS is large.

While here, don't bother staggering the statclock if it is randomized.

With input from claudio@.

16 months agoAdd sensor to qccpu to be able to show all cpu frequencies.
drahn [Sat, 1 Jul 2023 18:59:11 +0000 (18:59 +0000)]
Add sensor to qccpu to be able to show all cpu frequencies.

16 months agoDocument that small allocations are initially junked with 0xdf now
otto [Sat, 1 Jul 2023 18:35:14 +0000 (18:35 +0000)]
Document that small allocations are initially junked with 0xdf now

16 months agoManpage for qccpu.4
drahn [Sat, 1 Jul 2023 16:39:11 +0000 (16:39 +0000)]
Manpage for qccpu.4

16 months agoAdd driver for QC cpu Power States.
drahn [Sat, 1 Jul 2023 16:34:29 +0000 (16:34 +0000)]
Add driver for QC cpu Power States.

ok kettenis@ patrick@

16 months agoEnable AC detection in qcpas driver.
drahn [Sat, 1 Jul 2023 15:50:18 +0000 (15:50 +0000)]
Enable AC detection in qcpas driver.

Will enable apm -A once cpu P-state driver is added.

16 months agoReverse polarity to avoid an overlong line
tb [Sat, 1 Jul 2023 15:10:28 +0000 (15:10 +0000)]
Reverse polarity to avoid an overlong line

16 months agoReword comment to fit on a single line
tb [Sat, 1 Jul 2023 15:09:54 +0000 (15:09 +0000)]
Reword comment to fit on a single line

16 months agotmp is a silly name for a point on an elliptic curve
tb [Sat, 1 Jul 2023 15:03:05 +0000 (15:03 +0000)]
tmp is a silly name for a point on an elliptic curve

16 months agoGarbage collect the now unused len
tb [Sat, 1 Jul 2023 14:57:51 +0000 (14:57 +0000)]
Garbage collect the now unused len

16 months agoTest and assign for EC_KEY_get0_private_key()
tb [Sat, 1 Jul 2023 14:56:12 +0000 (14:56 +0000)]
Test and assign for EC_KEY_get0_private_key()

16 months agoAdd a missing NULL check for group
tb [Sat, 1 Jul 2023 14:53:48 +0000 (14:53 +0000)]
Add a missing NULL check for group

ok jsing

16 months agoReference commit needed in the next major bump
tb [Sat, 1 Jul 2023 14:52:34 +0000 (14:52 +0000)]
Reference commit needed in the next major bump

16 months agoSimplify handling of ret
tb [Sat, 1 Jul 2023 14:50:39 +0000 (14:50 +0000)]
Simplify handling of ret

ok jsing

16 months agoUse BN_bn2binpad() instead of handrolling it
tb [Sat, 1 Jul 2023 14:48:01 +0000 (14:48 +0000)]
Use BN_bn2binpad() instead of handrolling it

As ugly as the BN_bn2binpad() internals are, what it does is quite handy
with all sorts of EC stuff. So use it here too and eliminate some ugly
manual pointer zeroing and offsets. Also switch len and buflen from size_t
to int to remove an iffy cast: both are set by functions that return a
non-negative int.

ok jsing

16 months agoRemove unused y from ECDH key computation
tb [Sat, 1 Jul 2023 14:39:34 +0000 (14:39 +0000)]
Remove unused y from ECDH key computation

ok jsing

16 months agocrypto.h: move the error stuff to the end
tb [Sat, 1 Jul 2023 09:04:19 +0000 (09:04 +0000)]
crypto.h: move the error stuff to the end

The other public headers have function and reason codes at the end because
the error header was inlined. This was also the case here, too, until the
automatic library initialization was appended.

16 months agoWarn and fail to attach dwmmc(4) if no clock base is found.
jsing [Sat, 1 Jul 2023 08:27:26 +0000 (08:27 +0000)]
Warn and fail to attach dwmmc(4) if no clock base is found.

This makes it easier to track down clock related issues.

ok kettenis@

16 months agoAdd support for JH7110 to dwmmc(4).
jsing [Sat, 1 Jul 2023 08:22:41 +0000 (08:22 +0000)]
Add support for JH7110 to dwmmc(4).

This makes the eMMC and microSD mostly work on the Starfive VisionFive 2.

ok kettenis@

16 months agoAdd support for JH7110 to stftemp(4).
jsing [Sat, 1 Jul 2023 08:20:38 +0000 (08:20 +0000)]
Add support for JH7110 to stftemp(4).

This adds temperature sensor support for the Starfive VisionFive 2.

ok kettenis@

16 months agoSimplify ASN1_bn_print() usage in ec/
tb [Sat, 1 Jul 2023 08:15:31 +0000 (08:15 +0000)]
Simplify ASN1_bn_print() usage in ec/

ASN1_bn_print() doesn't print anything if the BIGNUM passed in is NULL.
Also simplify the handling of the point conversion form of the generator.

ok jsing

16 months agoChange a few types to fix warnings, from Thomas Klausner.
nicm [Fri, 30 Jun 2023 21:55:08 +0000 (21:55 +0000)]
Change a few types to fix warnings, from Thomas Klausner.

16 months agowhitespace
tb [Fri, 30 Jun 2023 18:19:35 +0000 (18:19 +0000)]
whitespace

16 months agosepcific -> specific
jsg [Fri, 30 Jun 2023 13:31:37 +0000 (13:31 +0000)]
sepcific -> specific
ok claudio@

16 months agoGet rid of some warnings with GCC 10, from Thomas Klausner.
nicm [Fri, 30 Jun 2023 13:19:32 +0000 (13:19 +0000)]
Get rid of some warnings with GCC 10, from Thomas Klausner.

16 months agolet check_table() also print table@anchor when it exits
sashan [Fri, 30 Jun 2023 12:16:00 +0000 (12:16 +0000)]
let check_table() also print table@anchor when it exits
unexpectedly via call to fatal()

OK claudio@

16 months agoUse "newcon" instead of "netlck" as identifier of the sleep reason while
mvs [Fri, 30 Jun 2023 11:52:11 +0000 (11:52 +0000)]
Use "newcon" instead of "netlck" as identifier of the sleep reason while
awaiting concurrent sonewconn() threads termination.

ok bluhm

16 months agoIntroduce M_PF type for pf(4) related memory allocations. Currently used
mvs [Fri, 30 Jun 2023 09:58:30 +0000 (09:58 +0000)]
Introduce M_PF type for pf(4) related memory allocations. Currently used
M_TEMP and M_IFADDR types are unreasonable for that purpose. This
dedicated statistics simplify the future pf(4) unlocking work by
decreasing search area of possible memory leaks.

ok bluhm sashan

16 months agoRecommit "Allow to ask for deeper callers for leak reports using
otto [Fri, 30 Jun 2023 06:24:58 +0000 (06:24 +0000)]
Recommit "Allow to ask for deeper callers for leak reports using
malloc options"

Now only enabled for platforms where it's know to work and written
as a inline functions instead of a macro.

16 months agoacpi(4)/acpibtn(4): use opt-in approach for wakeup GPEs
dv [Thu, 29 Jun 2023 20:58:08 +0000 (20:58 +0000)]
acpi(4)/acpibtn(4): use opt-in approach for wakeup GPEs

Previously, any discovered GPE that could be enabled for wake was
being enabled prior to entering ACPI-based S3 or S4. On some newer
machines, this caused S3-based suspend to break as some devices we
don't fully control (e.g. lack of driver) might be capable of waking
the system and will do so almost instantly if the GPE is enabled for
wake up (i.e. the so called "instant wake" issue).

This changes to a model of having device drivers explicitly opt
into using their GPE for wake up.

The first driver to explicitly toggle a GPE for wake is acpibtn(4).

Variations of the above have been in snapshots for 2 weeks, so
tested by many.

ok deraadt@

16 months agoFix handling of 'N-* 100' template entries.
krw [Thu, 29 Jun 2023 20:10:11 +0000 (20:10 +0000)]
Fix handling of 'N-* 100' template entries.

'N-* 100' means a max of all 'extra' disk space not all disk
space.

Fixes templates with partitions after a 'N-* 100' entry.

Reported by anton@

16 months agoUpdate to nsd 4.7.0
florian [Thu, 29 Jun 2023 19:38:49 +0000 (19:38 +0000)]
Update to nsd 4.7.0

OK tb

16 months agoSpaces vs tabs
claudio [Thu, 29 Jun 2023 16:24:53 +0000 (16:24 +0000)]
Spaces vs tabs
from florian@

16 months agoRewrite pfe_route() to actually work on 64bit archs since IPv6 had to be
claudio [Thu, 29 Jun 2023 16:11:02 +0000 (16:11 +0000)]
Rewrite pfe_route() to actually work on 64bit archs since IPv6 had to be
special. One can not define a struct for the route message since there is
different padding between 32 and 64 bit systems for struct sockaddr_in6.
Instead do what all other daemons do and use struct sockaddr_storage,
iovec and writev.
Problem reported by Joerg Streckfuss (streckfuss at dfn-cert.de)
OK tb@

16 months agorpki-client: fix vap_pas stats
tb [Thu, 29 Jun 2023 14:33:35 +0000 (14:33 +0000)]
rpki-client: fix vap_pas stats

A small mistake in a diff broke the counters. Make them AFI agnostic and
adjust ometric output.

guidance & ok claudio

16 months agoIn rrdp_session_save() stop the loop over deltas once MAX_RRDP_DELTAS
claudio [Thu, 29 Jun 2023 14:09:42 +0000 (14:09 +0000)]
In rrdp_session_save() stop the loop over deltas once MAX_RRDP_DELTAS
have been processed.
With and OK tb@

16 months agoupdate rpki-regress. log.c is no more.
tb [Thu, 29 Jun 2023 10:29:18 +0000 (10:29 +0000)]
update rpki-regress. log.c is no more.

16 months agoRetire log.c
tb [Thu, 29 Jun 2023 10:28:25 +0000 (10:28 +0000)]
Retire log.c

Convert all cryptowarnx() and cryptoerrx() to appropriate versions of
warn() and err{,x}(). Neither users nor developers benefit from them.
If we need better errors, we need to do some thinking. libcrypto won't
do that for us.

suggested by claudio
ok job

16 months agoThere no longer is a need to wrap the (now AFI-agnostic) ASPA providers in objects...
job [Thu, 29 Jun 2023 10:22:37 +0000 (10:22 +0000)]
There no longer is a need to wrap the (now AFI-agnostic) ASPA providers in objects in filemode

OK claudio@

16 months agoregen
jsg [Thu, 29 Jun 2023 07:58:54 +0000 (07:58 +0000)]
regen

16 months agoadd Intel Raptor Lake / 700 Series LP ids
jsg [Thu, 29 Jun 2023 07:58:15 +0000 (07:58 +0000)]
add Intel Raptor Lake / 700 Series LP ids

from:
13th Generation Intel Core Processors
Datasheet, Volume 1 of 2, Doc. No.: 743844, Rev.: 005

Intel 700 Series Chipset Family On-Package Platform Controller Hub (PCH)
Datasheet, Volume 1 of 2, Doc. No.: 763122, Rev.: 001

0xa75d (IPU) 0xa72f 0xa76e (TBT PCIE) not in tables
inferred from a dmesg and pci dev:func descriptions in
13th Generation Intel Core Processors
Datasheet, Volume 2 of 2, Doc. No.: 764981, Rev.: 1.2

16 months agoDrop the no longer necessary -DLIBRESSL_CRYPTO_INTERNAL
tb [Thu, 29 Jun 2023 06:12:04 +0000 (06:12 +0000)]
Drop the no longer necessary -DLIBRESSL_CRYPTO_INTERNAL

ok miod

16 months agoMove check_defer() and obj_cleanup_defer to evp/names.c
tb [Thu, 29 Jun 2023 06:11:33 +0000 (06:11 +0000)]
Move check_defer() and obj_cleanup_defer to evp/names.c

These formerly public symbols are the last things hidden by
LIBRESSL_CRYPTO_INTERNAL. Most of their use is in evp/names.c
Unfortunately, check_defer() needs to know about NUM_NIDS, so
its implementation needs to remain in obj_dat.c, the only file
that can include obj_dat.h due to NID tables.

ok miod

16 months agopfioctl() must make sure pfioctl_rw() gets unlocked before function returns.
sashan [Wed, 28 Jun 2023 21:33:35 +0000 (21:33 +0000)]
pfioctl() must make sure pfioctl_rw() gets unlocked before function returns.

OK bluhm@

16 months agoAdjust EC_GROUP_get_basis_type() documentation
tb [Wed, 28 Jun 2023 18:07:07 +0000 (18:07 +0000)]
Adjust EC_GROUP_get_basis_type() documentation

After the GF2m removal, this function always returns 0, so adjust the
documentation and remove EC_GROUP_get_{trinomial,pentanomial}_basis()
that were left behind. Also add a tiny grammar tweak in the HISTORY
section.

16 months agorevert makefile change included by mistake in previous
op [Wed, 28 Jun 2023 17:36:51 +0000 (17:36 +0000)]
revert makefile change included by mistake in previous

16 months agodrop needless strcspn in the header parsing
op [Wed, 28 Jun 2023 17:36:09 +0000 (17:36 +0000)]
drop needless strcspn in the header parsing

like done in ftp' fetch.c revision 1.216.

ok tb

16 months agodrop needless strcspn in the header parsing
op [Wed, 28 Jun 2023 17:35:06 +0000 (17:35 +0000)]
drop needless strcspn in the header parsing

since fetch.c revision 1.211, ftp removes trailingwhitespaces early so
there's no need to re-do that when parsing a header.

while here, remove an unused variable too.

ok tb, millert

16 months agoThe warning noise due to the ASPA transition is just that: noise.
tb [Wed, 28 Jun 2023 17:24:20 +0000 (17:24 +0000)]
The warning noise due to the ASPA transition is just that: noise.
Switch to warnx() instead of cryptowarnx() for now.

ok job