OpenBSD/src pMk7jwTusr.sbin/smtpd smtpd.conf.5 mda_variables.c

   smtpd: fix using modifiers with partial expansion in format specifiers

   Nits on the manpage and ok op@
VersionDeltaFile
1.282+10-2usr.sbin/smtpd/smtpd.conf.5
1.11+3-2usr.sbin/smtpd/mda_variables.c
+13-42 files

OpenBSD/src Yy5wo4ausr.bin/tmux server-client.c tmux.h

   Add some new mouse ranges called "control0" to "control9", will be used
   for controls on floating panes, from Dane Jensen, with some bits from
   Michael Grant.
VersionDeltaFile
1.450+56-29usr.bin/tmux/server-client.c
1.1302+49-10usr.bin/tmux/tmux.h
1.312+45-5usr.bin/tmux/window.c
1.41+47-2usr.bin/tmux/style.c
1.259+6-23usr.bin/tmux/status.c
1.113+8-4usr.bin/tmux/screen-redraw.c
+211-732 files not shown
+220-758 files

OpenBSD/src GVHFlKSusr.sbin/relayd config.c

   remove dup block that tries to close tls client ca fd

   it's already closed and fd set to -1 a few lines above.
   diff from Marc Jorge (openbsd [at] cypher-fox com), thanks!
VersionDeltaFile
1.49+1-5usr.sbin/relayd/config.c
+1-51 files

OpenBSD/src dUg3vUIusr.bin/tmux screen.c

   Missed a line from previous.
VersionDeltaFile
1.96+2-1usr.bin/tmux/screen.c
+2-11 files

OpenBSD/src wSvYeXousr.bin/tmux input.c format.c

   Handle OSC 9;4 progress bar sequence and store in format variables, from
   Eric Dorland in GitHub issue 4954.
VersionDeltaFile
1.257+56-1usr.bin/tmux/input.c
1.353+39-1usr.bin/tmux/format.c
1.1301+17-1usr.bin/tmux/tmux.h
1.95+14-1usr.bin/tmux/screen.c
1.1044+3-1usr.bin/tmux/tmux.1
+129-55 files

OpenBSD/src rUyeNv5usr.bin/tmux input.c tty-keys.c

   Increase b64_pton buffer to allow for Base64 without padding, from
   Michal Majchrowicz.
VersionDeltaFile
1.256+2-2usr.bin/tmux/input.c
1.204+2-2usr.bin/tmux/tty-keys.c
+4-42 files

OpenBSD/src 38ScMztregress/lib/libssl/unit ssl_versions.c

   Fix min vs max in failure output.
VersionDeltaFile
1.21+3-3regress/lib/libssl/unit/ssl_versions.c
+3-31 files

OpenBSD/src mWkQmKUregress/lib/libssl/tlsext tlsexttest.c

   Use DTLS_client_method() instead of DTLSv1_client_method().
VersionDeltaFile
1.97+3-3regress/lib/libssl/tlsext/tlsexttest.c
+3-31 files

OpenBSD/src X98nI3flib/libssl ssl_pkt.c Makefile

   Remove ssl_server_legacy_first_packet()

   This has not been reachable since we made the TLSv1.3 stack the default
   entry point - tls13_record_layer_read_record() will send a protocol
   version alert and raise an error, which means we never transition into
   the legacy stack.

   ok kenjiro@
VersionDeltaFile
1.71+1-7lib/libssl/ssl_pkt.c
1.86+1-2lib/libssl/Makefile
1.17+1-1lib/libssl/ssl_packet.c
+3-103 files

OpenBSD/src fIO6rvAlib/libssl ssl_both.c ssl_local.h

   Mop up mac_packet.

   This is a left over from when we accepted SSLv2 ClientHello messages.

   ok kenjiro@
VersionDeltaFile
1.48+6-9lib/libssl/ssl_both.c
1.36+1-3lib/libssl/ssl_local.h
1.70+1-2lib/libssl/ssl_pkt.c
1.45+1-2lib/libssl/tls13_legacy.c
+9-164 files

OpenBSD/src ZehpXhFusr.sbin/rpki-client cert.c

   rpki-client: stop aligning variables in cert_parse_extensions()

   While it looks a bit tidier if the variables are aligned with a tab in
   the declarations, this is also a source of churn, so give up on this in
   this function.
VersionDeltaFile
1.231+3-4usr.sbin/rpki-client/cert.c
+3-41 files

OpenBSD/src JENufHqusr.sbin/rpki-client cert.c

   rpki-client: const for ext and OID in cert_parse_extensions()

   This is the last step of sprinkling const for OpenSSL 4. Move the extension
   retrieved via X509_get_ext() to a const. The extension is first passed to
   the simple X509_EXTENSION_get_object() getter and in the extension parsers
   to X509V3_EXT_d2i(). The OID is passed to the const correct OBJ_obj2nid()
   and OBJ_obj2text().

   discussed with claudio
VersionDeltaFile
1.230+2-2usr.sbin/rpki-client/cert.c
+2-21 files

OpenBSD/src skkn81Yusr.sbin/rpki-client cert.c

   rpki-client: cast extension passed to X509_EXTENSION_get_object()

   Again this is currently a noop which is needed since this simple getter
   isn't const correct in OpenSSL < 4 and LibreSSL and because OpenSSL 4
   fixed this.

   discussed with claudio
VersionDeltaFile
1.229+3-2usr.sbin/rpki-client/cert.c
+3-21 files

OpenBSD/src R9gtbJbusr.sbin/rpki-client cert.c

   rpki-client: const correct cert extension handlers

   The only reason the extension passed in wasn't const was X509V3_EXT_d2i(),
   for which we now cast away const.

   discussed with claudio
VersionDeltaFile
1.228+11-11usr.sbin/rpki-client/cert.c
+11-111 files

OpenBSD/src d9Hcppvusr.sbin/rpki-client cert.c

   rpki-client: cast extension passed to X509V3_EXT_d2i()

   This function has never modified the extensions. It only uses the extension's
   object (OID) to retrieve the X509_EXT_METHOD and then calls the appropriate
   d2i handler on the extension's value. OpenSSL 4 correctly added a const
   qualifier to this function.

   The cast is a noop right now, but once we switch the extension handlers'
   signatures to take a const, this will generate a warning due to passing a
   const pointer to a non-const function for OpensSL < 4 and LibreSSL.
   Annotate the cast for our future selves.

   discussed with claudio
VersionDeltaFile
1.227+19-10usr.sbin/rpki-client/cert.c
+19-101 files

OpenBSD/src OCsCQAfusr.sbin/rpki-client cert.c

   rpki-client: rename certificate_policies() into cert_policies()

   This is slightly more consistent with the remainder of the file.
   All other extension handlers except those for ipAddrBlocks and
   autonomousSysIds, which start with sbgp_ for historical reasons,
   have a cert_ prefix.

   discussed with claudio
VersionDeltaFile
1.226+3-3usr.sbin/rpki-client/cert.c
+3-31 files

OpenBSD/src fqj3JWIusr.sbin/rpki-client cert.c

   rpki-client: cast away const for X509_get_X509_PUBKEY()

   In cert_check_spki() the pubkey is a libcrypto-internal pointer hanging
   off cert->x509, which is then passed to the very const-incorrect getter
   X509_PUBKEY_get0_param(): that's a piece of art which hands back pointers
   to things deeper down in the x509 - some of them const, some non-const.
   OpenSSL 3 made its X509_PUBKEY argument const, but their X509_ALGOR **
   still isn't. I don't believe they thought about this in #11894 as they
   had a more important _cmp() vs _eq() bikeshed to sort out.

   discussed with claudio
VersionDeltaFile
1.225+7-3usr.sbin/rpki-client/cert.c
+7-31 files

OpenBSD/src w55PhNPusr.sbin/rpki-client print.c

   rpki-client: make the X509_NAME *xissuer const

   X509_get_issuer_name() isn't const correct in LibreSSL and OpenSSL < 4
   and it returns a modifiable X509_NAME *. The xissuer is only passed to
   X509_NAME_oneline() which takes a const X509_NAME, so it can be const.

   discussed with claudio
VersionDeltaFile
1.75+2-2usr.sbin/rpki-client/print.c
+2-21 files

OpenBSD/src 8BtvI1Rusr.sbin/npppd/npppd parse.y

   Fix a memory leak in handling radius configuration.  Diff from iij.
VersionDeltaFile
1.33+2-2usr.sbin/npppd/npppd/parse.y
+2-21 files

OpenBSD/src 7bqriJKusr.bin/newsyslog newsyslog.c

   Fix leap year detection.

   Found and initial diff from Alvar Penning, shorter diff from me (I
   guess it's a matter of taste).

   ok jca@, who would do it the same way.
VersionDeltaFile
1.120+3-3usr.bin/newsyslog/newsyslog.c
+3-31 files

OpenBSD/src G568vBQlibexec/spamd spamd.c

   If a fd satisfies both POLLIN and POLLOUT in the same cycle, but the
   POLLIN resulted in a file close, the POLLOUT runs incorrectly which
   matters in the TLS context which attempts to read after free.
   from James J. Lippard
   ok millert
VersionDeltaFile
1.164+4-2libexec/spamd/spamd.c
+4-21 files

OpenBSD/src Kbl4sKGusr.bin/awk b.c

   Prevent integer overflow in regex repetition count

   Limit the repetition count to 255 like POSIX does.  Also avoid a
   crash when the repetition is the first atom parsed.

   From Renaud Allard.
VersionDeltaFile
1.56+7-1usr.bin/awk/b.c
+7-11 files

OpenBSD/src VG7zBlxusr.sbin/relayd relay.c

   relay_tls_ctx_create: plug tls_cfg leak

   If the second tls_cfg_new() call fails, the tls_cfg is leaked.

   From Jan Schreiber
VersionDeltaFile
1.263+2-2usr.sbin/relayd/relay.c
+2-21 files

OpenBSD/src OI12oM5usr.sbin/relayd relay_http.c

   relayd: error check bsearch in relay_httperror_byid()

   If relay_httperror_byid() is passed a HTTP error code not in the table
   this would result in a NULL deref. The intent is that the code fall back
   to "Unknown error" on NULL return.

   From Jan Schreiber
VersionDeltaFile
1.96+5-4usr.sbin/relayd/relay_http.c
+5-41 files

OpenBSD/src YsYulcsusr.sbin/relayd relay_http.c

   relayd: fix NULL check for strdup()

   Due to a copy-paste error, relay_lookup_query() would check the wrong kv
   member for NULL.

   From Jan Schreiber
VersionDeltaFile
1.95+2-2usr.sbin/relayd/relay_http.c
+2-21 files

OpenBSD/src VLtXNF5regress/sys/netinet/tcpstate tcp_sack.py Makefile

   Add regress test for TCP Selective ACK packets.
VersionDeltaFile
1.1+125-0regress/sys/netinet/tcpstate/tcp_sack.py
1.7+2-2regress/sys/netinet/tcpstate/Makefile
1.2+3-1regress/sys/netinet/tcpstate/pf.conf
1.7+1-1regress/sys/netinet/tcpstate/tcp_established.py
+131-44 files

OpenBSD/src NUWbVRPsys/dev/pci if_iwx.c

   sys/iwx: align antenna patterns and STBC with iwlwifi

   Follow iwlwifi for antenna pattern and STBC advertisement. Advertise RX
   antenna pattern only when RX is effectively 1x1; advertise HT and VHT
   STBC unconditionally, and VHT TX antenna pattern only when TX is
   effectively 1x1, and program the firmware TLC STBC flag when the peer
   advertises RX STBC and the device has more than one valid TX antenna.

   OK: stsp@
VersionDeltaFile
1.228+53-3sys/dev/pci/if_iwx.c
+53-31 files

OpenBSD/src cD2xxpausr.bin/tmux cmd-list-keys.c

   Do not leak command in list-keys, reported by tb@. Also tidy up some
   function names while here.
VersionDeltaFile
1.74+15-13usr.bin/tmux/cmd-list-keys.c
+15-131 files

OpenBSD/src ZCRa9RAusr.bin/tmux format-draw.c format.c

   Do not leak trimmed string when expanding, found by ossfuzz.
VersionDeltaFile
1.31+2-2usr.bin/tmux/format-draw.c
1.352+3-1usr.bin/tmux/format.c
+5-32 files

OpenBSD/src IgMOGzcusr.bin/tmux format.c

   Use INT_MIN + 1 as strtonum lower limits in formats so -ve works, found
   by ossfuzz.
VersionDeltaFile
1.351+8-6usr.bin/tmux/format.c
+8-61 files