tb [Mon, 8 Jan 2024 19:46:19 +0000 (19:46 +0000)]
Only use DIR_VALID in noop mode
Looking in DIR_TEMP will not find a file, resulting in lots of ugly
printf (null). This is another bandaid until I figure out how to fix
my fix for this function...
with/ok job
claudio [Mon, 8 Jan 2024 16:39:17 +0000 (16:39 +0000)]
Rework rtr_parse_header() and introduce rtr_check_session_id() to make
the initial header parsing simpler.
This also allows to simplify the version negotiation dance a bit. More
is needed there.
OK tb@
claudio [Mon, 8 Jan 2024 15:09:14 +0000 (15:09 +0000)]
Simplify the IMSG_CTL_KROUTE after the change in bgpd.
OK tb@
claudio [Mon, 8 Jan 2024 15:08:34 +0000 (15:08 +0000)]
Define and use struct ctl_kroute_req to encode the arguments of
IMSG_CTL_KROUTE instead of doing it by hand.
OK tb@
tb [Mon, 8 Jan 2024 10:06:50 +0000 (10:06 +0000)]
Disable X509_STORE_CTX_purpose_inherit()
Nothing uses this function, except two internal callers. So split its guts
temporarily into a helper function and disable the gross general case.
The internal helper can be simplified by observing that def_purpose == 0:
Overriding 0 by 0 doesn't do anything, so drop that bit. Rename ptmp into
purp, and inline X509_PURPOSE_get_by_id(), i.e., make appropriate checks and
subtract X509_PURPOSE_MIN. The fallback to X509_PURPOSE_get_by_id(0) will
always fail since X509_PURPOSE_MIN == 1. So ditch that call. In particular,
X509_STORE_CTX_set_purpose(ctx, X509_PURPOSE_ANY) fails in current because
of this. That's nonsense. So remove the purp->trust == X509_TRUST_DEFAULT
check as only change of behavior. This matches what OpenSSL do nowadays.
They now set def_purpose = purpose if purpose != 0 and def_purpose == 0,
so in all real-world uses of this function they will just fetch the same
purpose again and do not check for default trust the second time around.
Finally, X509_TRUST_get_by_id() is only used to ensure that a non-zero (or
overridden) trust is between X509_TRUST_MIN and X509_TRUST_MAX. So expand
that into its explicit form.
ok jsing
tb [Mon, 8 Jan 2024 09:51:09 +0000 (09:51 +0000)]
Inline X509_{TRUST,PUPROSE}_set() in their only callers
They are now unused and will join the exodus to the attic in the next bump.
ok jsing
tb [Mon, 8 Jan 2024 09:31:09 +0000 (09:31 +0000)]
const correct aesni_{128,256}_cbc_hmac_sha1_cipher
tb [Mon, 8 Jan 2024 08:26:38 +0000 (08:26 +0000)]
Fix regress build since the reacharounds are fragile
noted by anton
djm [Mon, 8 Jan 2024 05:11:18 +0000 (05:11 +0000)]
Remove outdated note from PROTOCOL.mux
Port forward close by control master is already implemented
by `mux_master_process_close_fwd` in `mux.c`
GHPR442 from bigb4ng
djm [Mon, 8 Jan 2024 05:05:15 +0000 (05:05 +0000)]
fix missing field in users-groups-by-id@openssh.com reply documentation
GHPR441 from TJ Saunders
yasuoka [Mon, 8 Jan 2024 04:16:48 +0000 (04:16 +0000)]
Pass the request packet to response decorations for future use.
This is required for many cases and will be used future.
djm [Mon, 8 Jan 2024 04:10:03 +0000 (04:10 +0000)]
make kex-strict section more explicit about its intent: banning all
messages not strictly required in KEX
tb [Mon, 8 Jan 2024 03:32:01 +0000 (03:32 +0000)]
Fix logic error (&& -> ||)
CID 477172
djm [Mon, 8 Jan 2024 00:34:33 +0000 (00:34 +0000)]
remove ext-info-* in the kex.c code, not in callers; with/ok markus@
djm [Mon, 8 Jan 2024 00:30:39 +0000 (00:30 +0000)]
fix typo; spotted by Albert Chin
bluhm [Sun, 7 Jan 2024 21:01:45 +0000 (21:01 +0000)]
In ixl(4) attach, initialize mutex before using it.
Function ixl_get_link_status() calls ixl_set_link_status() which
locks sc_link_state_mtx. Move initilization of mutex before calling
ixl_get_link_status(). This makes witness happy.
Bug reported and fix tested by Hrvoje Popovski; OK miod@
miod [Sun, 7 Jan 2024 20:52:44 +0000 (20:52 +0000)]
Error out if one syscall ever takes more than 6 arguments.
This is not necessarily wrong per se, but would need special consideration,
as not all platforms are currently able to process more than six syscall
arguments (and upcoming diffs will rely upon reasonably-sized argument
lists), so better break now and reconsider later if need be.
ok deraadt@
tb [Sun, 7 Jan 2024 19:59:32 +0000 (19:59 +0000)]
Garbage collect call to X509_TRUST_cleanup()
Since x509_trs.c r1.33, this is a noop.
cheloha [Sun, 7 Jan 2024 19:44:28 +0000 (19:44 +0000)]
libc, librthread: _twait: subtraction is not comparison
Compare the current time with the absolute timeout before computing
the relative timeout to avoid arithmetic overflow. Fixes a bug where
large negative absolute timeouts are subtracted into large positive
relative timeouts and incorrectly cause the caller to block.
While here, use timespeccmp(3) and timespecsub(3) to simplify the
code.
Thread: https://marc.info/?l=openbsd-tech&m=
169945962503129&w=2
tb [Sun, 7 Jan 2024 18:15:42 +0000 (18:15 +0000)]
Minor cleanup in X509_STORE_CTX_purpose_inherit()
Make a few checks against 0 explicit to reduce noise in an upcoming diff
and tiny KNF tweaks.
tb [Sun, 7 Jan 2024 16:22:46 +0000 (16:22 +0000)]
purpose/trust: Improve comments about COUNT/MAX confusion
tb [Sun, 7 Jan 2024 16:18:18 +0000 (16:18 +0000)]
const-correct r4_hmac_md5_cipher
tb [Sun, 7 Jan 2024 15:42:57 +0000 (15:42 +0000)]
Convert the remaining legacy ciphers to C99 initializers
No change in the generated aarch64 assembly apart from line number changes.
ok jsing
tb [Sun, 7 Jan 2024 15:21:04 +0000 (15:21 +0000)]
Improve EVP_CIPHER_{get,set}_asn1_iv()
Use iv_len for the variables storing the IV length, formerly l and j.
Remove use of the unnecessary variable i and unindent the whole mess.
Some return values are fishy. That will be addressed in subsequent
commits.
ok jsing
tb [Sun, 7 Jan 2024 14:50:45 +0000 (14:50 +0000)]
Remove X509_TRUST extensibility
This is pretty much identical to the X509_PURPOSE case: remove the stack
used for extending and overriding the trust table and make X509_TRUST_add()
always fail. Simplify some other bits accordingly.
ok jsing
tb [Sun, 7 Jan 2024 09:48:29 +0000 (09:48 +0000)]
rpki-client: zap a stray space
tb [Sun, 7 Jan 2024 09:48:03 +0000 (09:48 +0000)]
rpki-client: print revocation time in filemode
If a certificate was revoked, extract the revocation timestamp and
update the warning message in filemode to include it.
ok job
tb [Sat, 6 Jan 2024 20:47:01 +0000 (20:47 +0000)]
Zap some more CRL method things
bluhm [Sat, 6 Jan 2024 19:34:54 +0000 (19:34 +0000)]
Prevent use after free of TLS context at syslogd(8) shutdown.
When splitting the event fields f_ev and f_bufev, disabling some
events was missed. Callbacks could happen after tls_free(). Call
bufferevent_disable() before f_bufev and struct filed are cleaned.
In some error cases f_bufev might be NULL, add a check before
cleanup.
OK tb@
mglocker [Sat, 6 Jan 2024 17:47:43 +0000 (17:47 +0000)]
Zap more obsolete debug code.
tb [Sat, 6 Jan 2024 17:43:39 +0000 (17:43 +0000)]
Remove X509_PURPOSE_cleanup() call in OPENSSL_cleanup()
Since x509_purp.c r1.34 this is a noop since there is nothing to clean up
anymore. Remove the last caller.
tb [Sat, 6 Jan 2024 17:37:23 +0000 (17:37 +0000)]
Remove X509_CRL_METHOD internals
Another complication of dubious value that nobody's ever used. crl_init(),
crl_free() and the meth_data are dead weight, as are their accessors.
Inline def_crl_verify() in X509_CRL_verify() so that the latter becomes
the trivial wrapper of ASN1_item_verify() that one would expect it to be.
It is quite unclear what kind of customization would make sense here...
def_crl_lookup() is renamed into crl_lookup() and its two callers,
X509_CRL_lookup_by_{serial,cert}(), are moved below it so that we
don't need a prototype.
ok jsing
tb [Sat, 6 Jan 2024 17:17:08 +0000 (17:17 +0000)]
Remove X509_PURPOSE extensibility
Another bit of global state without lock protection. The by now familiar
complications of a stack to make this user configurable, which, of course,
no one ever did. The table is not currently const, and the API exposes its
entries directly, so anyone can modify it. This fits very well with the
safety guarantees of Rust's 'static lifetime, which is how rust-openssl
exposes it (for no good reason).
Remove the stack and make the X509_PURPOSE_add() API always fail.
Simplify the other bits accordingly.
In addition, this API inflicts the charming difference between purpose
identifiers and purpose indexes (the former minus one) onto the user.
Neither of the two obvious solutions to avoid this trap seems to have
crossed the implementer's mind.
ok jsing
jsg [Sat, 6 Jan 2024 15:52:13 +0000 (15:52 +0000)]
revert component_add() change
avoids fault in amdgpu_dm_audio_component_bind()
problem reported by matthieu@
schwarze [Sat, 6 Jan 2024 15:38:45 +0000 (15:38 +0000)]
Ergaenzung der fehlenden Jahreszahlen;
Flicken von Lennart Jablonka <humm bei ljabl Punkt com>
mglocker [Sat, 6 Jan 2024 13:23:47 +0000 (13:23 +0000)]
Unify UFS command function arguments a bit.
dv [Sat, 6 Jan 2024 13:17:20 +0000 (13:17 +0000)]
vmm(4): reorder segment registers to match SDM.
Shuffles around the defines so the segment register indexes match
the values used by both Intel and AMD in vm exit information.
Simplifies some upcoming changes.
ok mlarkin@
mglocker [Sat, 6 Jan 2024 13:04:03 +0000 (13:04 +0000)]
Merge read/write UFS commands in to one single function, since they are very
similar.
jsg [Sat, 6 Jan 2024 12:52:20 +0000 (12:52 +0000)]
remove stray semicolon
ok kettenis@
jsg [Sat, 6 Jan 2024 12:50:58 +0000 (12:50 +0000)]
move struct file_operations to linux/fs.h
ok kettenis@
bluhm [Sat, 6 Jan 2024 11:42:11 +0000 (11:42 +0000)]
Do not count packets though multicast loopback and simplex interfaces.
Counting multicast packets sent to local stack or packets that are
reflected by simplex interfaces does not make much sense. They are
neither received nor output by any ethernet device. Counting these
packets at lo0 or the loopback interface of the routing domain would
be possible, but is not worth the effort. Make if_input_local()
MP safe by deleting the if_opackets++ code.
OK mvs@
espie [Sat, 6 Jan 2024 11:29:00 +0000 (11:29 +0000)]
put the real sizes into the "title" attribute so that hovering shows the
exact value.
adjust/refactor javascript sorter accordingly
bluhm [Sat, 6 Jan 2024 10:58:45 +0000 (10:58 +0000)]
Take net lock before kernel lock.
Doing KERNEL_LOCK() just before NET_LOCK() does not make sense.
Net lock is a rwlock that releases kernel lock during sleep. To
avoid an unnecessary release and take kernel lock cycle, move
KERNEL_LOCK() after NET_LOCK().
There is no lock order reversal deadlock issue. Both locks are
used in any order thoughout the kernel. As NET_LOCK() releases the
kernel lock when it cannot take the lock immediately and has to
sleep, we always end in the order kernel lock before net lock after
sleeping.
OK sashan@
kettenis [Sat, 6 Jan 2024 09:33:08 +0000 (09:33 +0000)]
Add more Linux compat code in preparation for the apple KMS driver.
ok jsg@
semarie [Sat, 6 Jan 2024 08:03:31 +0000 (08:03 +0000)]
devel/cargo: add support for installing several different paths
rename MODCARGO_INSTALL_TARGET_PATH to MODCARGO_INSTALL_TARGET_PATHS
tb [Fri, 5 Jan 2024 21:22:01 +0000 (21:22 +0000)]
EVP_PKEY_asn1_find_str() tweaks
Switch i to a size_t and improve a flag check. Part of an earlier diff
that was ok jsing but were lost when I reworked the diff.
miod [Fri, 5 Jan 2024 19:34:19 +0000 (19:34 +0000)]
Remove more __syscall() leftovers.
claudio [Fri, 5 Jan 2024 11:02:57 +0000 (11:02 +0000)]
Improve rtr_send_error() logging and demote the FSM state changes from
log_info to log_debug.
OK tb@
anton [Fri, 5 Jan 2024 10:37:54 +0000 (10:37 +0000)]
Wait until the expected interface state is reached instead of relying on
arbitrary sleeps. Should hopefully make these tests more stable.
tb [Fri, 5 Jan 2024 10:18:52 +0000 (10:18 +0000)]
evp_key.c: Remove more unnecessary parentheses
tb [Fri, 5 Jan 2024 10:15:36 +0000 (10:15 +0000)]
Minor tweaks in EVP_read_pw_string_min()
Remove unnecessary parentheses and use a better place to break an overlong
line.
tb [Fri, 5 Jan 2024 10:14:08 +0000 (10:14 +0000)]
Plug a leak in EVP_read_pw_string_min()
Use an error exit that frees the ui in case the UI_add_* fail. Also add
a few empty lines for readability.
ok joshua
mglocker [Thu, 4 Jan 2024 21:35:56 +0000 (21:35 +0000)]
Zap some '#if 0' code which was initially required for debugging.
mglocker [Thu, 4 Jan 2024 21:02:30 +0000 (21:02 +0000)]
Set the interrupt aggregation counter down to 1, which fixes the read
performance from ~20MB/s to ~220MB/s.
kettenis [Thu, 4 Jan 2024 20:50:43 +0000 (20:50 +0000)]
Adjust IPLs to give us more interrupt vectors for IPL_NET. That is where
we need them most since multi-queue NICs seem to be a thing now.
ok patrick@, mlarkin@, jan@
tb [Thu, 4 Jan 2024 20:15:01 +0000 (20:15 +0000)]
Disable EVP_PKEY_meth_* extensibility
This removes the global pkey_app_methods stack that was never cleaned up
and makes EVP_PKEY_meth_add0() always fail and push an error on the stack.
EVP_PKEY_meth_find() can now walk the list of PKEY_METHODs forward and
things become a bit cleaner. It's still all way more complicated than it
needs to be...
ok jsing
tb [Thu, 4 Jan 2024 20:02:10 +0000 (20:02 +0000)]
Remove last external call to EVP_PKEY_meth_find()
In order to determine whether GOST is properly enabled, libssl has various
weird dances. In this specific case, it calls EVP_PKEY_meth_find() to see
whether the relevant cipher is around. Check the same thing with an #ifdef
instead.
ok jsing
espie [Thu, 4 Jan 2024 18:17:47 +0000 (18:17 +0000)]
make auto-index better
- make it an actual table
- use "human readable sizes" for the file sizes
- add some decoration and javascript to be able to sort it per-column
(client side) (this means some extra column attribute)
- add glue to facilitate embedding js + css directly in the program
- add some graphical indication for directories
- should still validate as proper html everywhere (custom properties
need to be called data-* for this!)
Work with claudio@ and tb@, many thanks to claudio@ for some of the finer
points of css handling, and tb@ for some fine spaces fixes.
I've tried it with lynx as well, shows up correctly.
One big plus is that the size of columns work as utf-8, so you can expose
filenames without any problems (I've tried it with non-js text navigators
as well as firefox, chromium and friends)
And it looks slightly less yahoo ca. 1995.
It's still "one size fits all". If people object to the current look, adding
httpd.conf(5) properties to override the default css should be easy.
okay claudio@, tb@
tb [Thu, 4 Jan 2024 17:38:36 +0000 (17:38 +0000)]
Remove unused app_data from EVP_CIPHER
The EVP_CIPHER structs are static const data that the library returns when
you call EVP_aes_128_cbc(), for example. It makes no sense whatsoever to
hang user data off such a struct, but it's been there since forever.
ok jsing
tb [Thu, 4 Jan 2024 17:22:29 +0000 (17:22 +0000)]
Clean up EVP_PKEY_asn1_get0_info() a bit
Use better variable names without silly p prefix and use explicit checks
against NULL.
tb [Thu, 4 Jan 2024 17:17:40 +0000 (17:17 +0000)]
Clean up EVP_PKEY_asn1_find_str()
Use slightly better argument and variable names, do not pointlessly try
to match a string of negative length < -1, use a size_t for the strlen()
and preserve the logic that allows lookup by a string fragment rather
than a full string.
ok jsing
tb [Thu, 4 Jan 2024 17:08:57 +0000 (17:08 +0000)]
Simplify EVP_PKEY_asn1_find()
EVP_PKEY_asn1_find() finds the EVP_PKEY_ASN1_METHOD underlying the method
or alias with nid (or, rather, pkey_id) passed in. Now that we have the
base method stored in a pointer, we can return that method after a simple
lookup of said nid (or, rather, pkey_id).
ok jsing
tb [Thu, 4 Jan 2024 17:01:26 +0000 (17:01 +0000)]
Replace .pkey_base_id with a .base_method pointer
Every EVP_PKEY_ASN1_METHOD is either an ASN.1 method or an alias.
As such it resolves to an underlying ASN.1 method (in one step).
This information can be stored in a base_method pointer in allusion
to the pkey_base_id, which is the name for the nid (aka pkey_id aka
type) of the underlying method.
For an ASN.1 method, the base method is itself, so the base method
is set as a pointer to itself. For an alias it is of course a pointer
to the underlying method. Then obviously ameth->pkey_base_id is the
same as ameth->base_method->pkey_id, so rework all ASN.1 methods to
follow that.
ok jsing
tb [Thu, 4 Jan 2024 16:50:53 +0000 (16:50 +0000)]
Neuter the remainder of the ameth lib
The few pieces of the ameth lib that will stay in libcrypto were moved to
p_lib.c recently. The functions that still are in ameth_lib.c will be
removed in the next major bump. With disabled EVP_PKEY_asn1_add{0,_alias}()
API they are completely useless now and they are getting in the way of more
ameth surgery. Rip out their guts and turn them into stubs that do nothing
but push an error onto the stack.
ok jsing
tb [Thu, 4 Jan 2024 16:41:56 +0000 (16:41 +0000)]
Split ameth arrays into individual methods
For some reason DSA, GOST, and RSA had their ASN.1 methods stored in
an array. This is clumsy and the only benefit is that one saves a few
externs in p_lib.c. They were also arranged by ascending NID because
of bsearch() madness.
Split them up and arrange the methods by name, which is much saner
and simpler.
ok jsing
claudio [Thu, 4 Jan 2024 16:38:18 +0000 (16:38 +0000)]
Rewrite the imsg handling using the new API functions.
OK tb@
claudio [Thu, 4 Jan 2024 14:30:09 +0000 (14:30 +0000)]
Convert the RTR PDU parser to use the new ibuf API.
Lenght / overflow checks are now handled by ibufs.
OK tb@
mglocker [Thu, 4 Jan 2024 13:30:20 +0000 (13:30 +0000)]
Fix timeout value for write command (typo).
mglocker [Thu, 4 Jan 2024 12:22:35 +0000 (12:22 +0000)]
Pass SCSI command directly to the UFS command descriptor instead of
decoding/encoding it.
Suggested and OK kettenis@
claudio [Thu, 4 Jan 2024 10:26:14 +0000 (10:26 +0000)]
Rename argument roa of imsg_send_sockets() to rtr since the imsgbuf is
for PROC_RTR.
dtucker [Thu, 4 Jan 2024 09:51:49 +0000 (09:51 +0000)]
Import regenerated moduli.
tb [Thu, 4 Jan 2024 09:47:54 +0000 (09:47 +0000)]
Improve length checks for oiv and iv
There are two unsigned char arrays of size EVP_MAX_IV_LENGTH to store the
IVs of block ciphers. In most modes, only iv is used, but in some modes iv
is modified and oiv is used to store the original IV. At the moment nothing
enforces that they are of the same length. Therefore make sure the correct
one or both are checked before writing to or reading from them.
ok miod
op [Thu, 4 Jan 2024 09:34:03 +0000 (09:34 +0000)]
fix IPv6 addresses table lookups
Rework parse_sockaddr() to not reach inet_pton() with a brace-wrapped
IPv6 address.
Issue reported by Kirill Miazine.
ok millert@
op [Thu, 4 Jan 2024 09:30:09 +0000 (09:30 +0000)]
set_localaddrs(): don't wrap IPv6s address with braces twice
ss_to_text() already wraps ipv6 addresses in braces, so no need to do it
again and no need to do that for IPv4 addresses too.
ok millert@
kevlo [Thu, 4 Jan 2024 08:41:59 +0000 (08:41 +0000)]
Add support for AX88179A. AX88179A interweave dummies alongside valid
packet headers in axen_rxeof().
However current driver records these dummy headers as dropped frames,
leading to stats misreporting one Ifail per Ipkt.
This skips those dummy headers silently, thereby not generating Ifail
for them.
From FreeBSD commit
70fbcd451b68b7f6038d8a602cd8d5e1bb890f1d
Tested by landry@ and myself.
ok claudio@, landry@
jmatthew [Thu, 4 Jan 2024 07:08:47 +0000 (07:08 +0000)]
fix up barriers in bnxt_down() - use barriers for all interrupts and
for the rx refill timeouts.
tested by hrvoje
ok bluhm@
mvs [Thu, 4 Jan 2024 01:32:06 +0000 (01:32 +0000)]
Revert previous. splx(9) can call kvp_get_ip_info() from any place with
netlock held and cause recursive lock acquisition issue.
bluhm [Thu, 4 Jan 2024 00:19:17 +0000 (00:19 +0000)]
Skip tests that use too many resources on armv7.
dv [Wed, 3 Jan 2024 22:34:39 +0000 (22:34 +0000)]
vmd(8): improve error messages when out of tap devices.
The logging and the (lack of) errno don't describe the actual reason
a vm fails to start when there are not enough tap(4) special files
in /dev. Improve the log message to specify the tap file in question
and set ENOENT so vmctl(8) gets something other than an undefined
errno value to report.
ok bluhm@
tobhe [Wed, 3 Jan 2024 21:41:44 +0000 (21:41 +0000)]
Enable Apple brightness keys also for archs other than macppc.
ok kettenis@
claudio [Wed, 3 Jan 2024 16:07:37 +0000 (16:07 +0000)]
Use "established" and "exchange" as RTR state names.
"idle" and "active" are used in the BGP FSM with different meaning which
leads to confusion. When a RTR session is up the state is "established"
apart from the time when a new delta is loaded (between cache response and
end of data PDU) the state is "exchange".
OK tb@
bluhm [Wed, 3 Jan 2024 11:07:04 +0000 (11:07 +0000)]
Run connect(2) in parallel within inet doamin.
This unlocks soconnect() for UDP, rip, rip6 and divert. It takes
shared net lock in combination with per socket lock. TCP and GRE
still use exclusive net lock when connecting.
OK mvs@
kevlo [Wed, 3 Jan 2024 09:19:22 +0000 (09:19 +0000)]
Update website URL.
ok miod@
tb [Wed, 3 Jan 2024 09:13:32 +0000 (09:13 +0000)]
Improve order in ancient CMS helpers
First came EVP_CIPHER_param_to_asn1() which wraps EVP_CIPHER_set_asn1_iv()
which was implemented last. Then came EVP_CIPHER_asn1_to_param() wrapping
EVP_CIPHER_get_asn1_iv(). Move each param function below the iv function
it wraps.
op [Wed, 3 Jan 2024 08:11:15 +0000 (08:11 +0000)]
relax ORCPT syntax validation
We expected the ORCPT parameter to be a valid rfc822 address. This is
wrong on multiple levels:
- any other IANA-registered "addr-type" can be used
- the parameter may be encoded and we didn't decode it prior validation
- RFC3461 explicitly states that "[..] the address associated with the
ORCPT keyword is NOT constrained to conform to the syntax rules for
that 'addr-type'".
Instead, just validate the xtext and preserve the ORCPT value as-is.
Issue originally reported by Tim Kuijsten, Tassilo Philipp and others.
ok millert@
dv [Wed, 3 Jan 2024 03:14:16 +0000 (03:14 +0000)]
vmd(8): remove unused variable from vionet_notify_tx.
num_enq was assigned and incremented, but never used. clang started
pointing out via warnings. No functional change.
millert [Tue, 2 Jan 2024 22:43:20 +0000 (22:43 +0000)]
Update to 2023dgtz from https://github.com/JodaOrg/global-tz
* Ittoqqortoormiit, Greenland changes time zones on 2024-03-31.
* Vostok, Antarctica changed time zones on 2023-12-18.
* Casey, Antarctica changed time zones five times since 2020.
* Data fixes for Palestine timestamps starting in 2072.
tb [Tue, 2 Jan 2024 21:27:39 +0000 (21:27 +0000)]
Move a t to the right place in a comment
tb [Tue, 2 Jan 2024 21:24:42 +0000 (21:24 +0000)]
Match struct order for the EVP_CIPHER_CTX accessors
This isn't great since the struct is ordered in about the silliest way
imaginable, but it is better than it was before. Bringing order into
this mess is harder than solving a Rubik's cube.
tb [Tue, 2 Jan 2024 21:12:25 +0000 (21:12 +0000)]
Move down EVP_CIPHER_CTX accessors expose EVP_CIPHER internals
These confusingly named getters were added "for convenience" in 1.1.
They fit best next to the EVP_CIPHER API.
tb [Tue, 2 Jan 2024 20:48:40 +0000 (20:48 +0000)]
Move the trivial EVP_CIPHER getters down
They are now below the CMS ASN.1 IV stuff, but above the EVP_CIPHER_meth*
API, which are setters, in a way.
tb [Tue, 2 Jan 2024 20:00:45 +0000 (20:00 +0000)]
Simplify EVP_CIPHER_{asn1_to_param,parma_to_asn1}()
There's no need for a ret variable and else if/else
tb [Tue, 2 Jan 2024 19:56:43 +0000 (19:56 +0000)]
Move the EVP_CIPHER API that only exists for CMS/legacy a bit down
tb [Tue, 2 Jan 2024 19:54:43 +0000 (19:54 +0000)]
sm4: more NULL misspellings
tb [Tue, 2 Jan 2024 18:48:02 +0000 (18:48 +0000)]
Two spellings of key length are enough
The API is called EVP_CIPHER_CTX_set_key_length() it has an argument called
keylen and, the EVP_CIPHER_CTX's member is called key_len. One of the three
is trivial to adjust, so do it.
tb [Tue, 2 Jan 2024 18:30:27 +0000 (18:30 +0000)]
Rename the poor outlier EVP_CIPHER *e into *cipher
tb [Tue, 2 Jan 2024 18:28:35 +0000 (18:28 +0000)]
Better variable names in EVP_CIPHER_type()
The EVP_CIPHER *ctx (yes) is renamed to cipher, otmp becomes an aobj.
Change two !ptr to ptr == NULL checks.
tb [Tue, 2 Jan 2024 18:21:02 +0000 (18:21 +0000)]
Consistently use ctx for an EVP_CIPHER_CTX
Not c (which is most of the time an EVP_CIPHER) or a (?!).
stsp [Tue, 2 Jan 2024 17:39:08 +0000 (17:39 +0000)]
set attached flag properly when fw fails to load during config_mountroot()
bluhm [Tue, 2 Jan 2024 16:40:03 +0000 (16:40 +0000)]
Revert chunk that I have commited by accident.