opnsense-src/crypto/openssh/openbsd-compat
Ed Maste 802386cd37 openssh: Update to 9.9p1
Highlights from the release notes are reproduced below.  Bug fixes and
improvements that were previously merged into FreeBSD have been elided.

See the upstream release notes for full details of the 9.9p1 release
(https://www.openssh.com/releasenotes.html).

---

Future deprecation notice
=========================

OpenSSH plans to remove support for the DSA signature algorithm in
early 2025.

Potentially-incompatible changes
--------------------------------

 * ssh(1): remove support for pre-authentication compression.

 * ssh(1), sshd(8): processing of the arguments to the "Match"
   configuration directive now follows more shell-like rules for
   quoted strings, including allowing nested quotes and \-escaped
   characters.

New features
------------

 * ssh(1), sshd(8): add support for a new hybrid post-quantum key
   exchange based on the FIPS 203 Module-Lattice Key Enapsulation
   mechanism (ML-KEM) combined with X25519 ECDH as described by
   https://datatracker.ietf.org/doc/html/draft-kampanakis-curdle-ssh-pq-ke-03
   This algorithm "mlkem768x25519-sha256" is available by default.

 * ssh(1), sshd(8), ssh-agent(1): prevent private keys from being
   included in core dump files for most of their lifespans. This is
   in addition to pre-existing controls in ssh-agent(1) and sshd(8)
   that prevented coredumps. This feature is supported on OpenBSD,
   Linux and FreeBSD.

 * All: convert key handling to use the libcrypto EVP_PKEY API, with
   the exception of DSA.

Bugfixes
--------

 * sshd(8): do not apply authorized_keys options when signature
   verification fails. Prevents more restrictive key options being
   incorrectly applied to subsequent keys in authorized_keys. bz3733

 * ssh-keygen(1): include pathname in some of ssh-keygen's passphrase
   prompts. Helps the user know what's going on when ssh-keygen is
   invoked via other tools. Requested in GHPR503

 * ssh(1), ssh-add(1): make parsing user@host consistently look for
   the last '@' in the string rather than the first. This makes it
   possible to more consistently use usernames that contain '@'
   characters.

 * ssh(1), sshd(8): be more strict in parsing key type names. Only
   allow short names (e.g "rsa") in user-interface code and require
   full SSH protocol names (e.g. "ssh-rsa") everywhere else. bz3725

 * ssh-keygen(1): clarify that ed25519 is the default key type
   generated and clarify that rsa-sha2-512 is the default signature
   scheme when RSA is in use. GHPR505

---

Reviewed by:	jlduran (build infrastructure)
Reviewed by:	cy (build infrastructure)
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48947

(cherry picked from commit 3d9fd9fcb432750f3716b28f6ccb0104cd9d351a)

Approved by:	re (accelerated MFC)
2025-02-20 12:50:31 -05:00
..
regress ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
arc4random.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
arc4random.h openssh: Update to 9.9p1 2025-02-20 12:50:31 -05:00
arc4random_uniform.c ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
base64.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
base64.h Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
basename.c
bcrypt_pbkdf.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
bindresvport.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
blf.h ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
blowfish.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
bsd-asprintf.c ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
bsd-closefrom.c ssh: Update to OpenSSH 9.5p1 2023-10-12 14:46:11 -04:00
bsd-cygwin_util.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
bsd-cygwin_util.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
bsd-err.c Upgrade to OpenSSH 7.6p1. This will be followed shortly by 7.7p1. 2018-05-08 23:13:11 +00:00
bsd-flock.c Upgrade to OpenSSH 7.7p1. 2018-05-11 13:22:43 +00:00
bsd-getentropy.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
bsd-getline.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
bsd-getpagesize.c Upgrade to OpenSSH 7.7p1. 2018-05-11 13:22:43 +00:00
bsd-getpeereid.c
bsd-malloc.c Upgrade to OpenSSH 7.7p1. 2018-05-11 13:22:43 +00:00
bsd-misc.c ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
bsd-misc.h ssh: update to OpenSSH v9.0p1 2022-04-15 10:41:08 -04:00
bsd-nextstep.c Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
bsd-nextstep.h Upgrade to OpenSSH 7.8p1. 2018-09-10 16:20:12 +00:00
bsd-openpty.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
bsd-poll.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
bsd-poll.h ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
bsd-pselect.c ssh: update to OpenSSH v8.8p1 2021-12-19 11:02:02 -05:00
bsd-setres_id.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
bsd-setres_id.h Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
bsd-signal.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
bsd-signal.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
bsd-snprintf.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
bsd-statvfs.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
bsd-statvfs.h Upgrade to OpenSSH 7.7p1. 2018-05-11 13:22:43 +00:00
bsd-timegm.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
bsd-waitpid.c Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
bsd-waitpid.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
chacha_private.h ssh: update to OpenSSH v9.0p1 2022-04-15 10:41:08 -04:00
charclass.h
daemon.c
dirname.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
explicit_bzero.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
fake-rfc2553.c Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
fake-rfc2553.h Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
fmt_scaled.c ssh: update with post-release V_8_9 branch commits 2022-04-13 16:53:20 -04:00
fnmatch.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
fnmatch.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
freezero.c Upgrade to OpenSSH 7.8p1. 2018-09-10 16:20:12 +00:00
getcwd.c ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
getgrouplist.c Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
getopt.h ssh: Update to OpenSSH 9.7p1 2024-03-25 18:31:44 -04:00
getopt_long.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
getrrsetbyname-ldns.c Upgrade to OpenSSH 6.8p1. 2016-01-19 18:28:23 +00:00
getrrsetbyname.c openssh: Update to 9.8p1 2025-02-20 12:50:11 -05:00
getrrsetbyname.h
glob.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
glob.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
inet_aton.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
inet_ntoa.c
inet_ntop.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
kludge-fd_set.c Upgrade to OpenSSH 6.7p1, retaining libwrap support (which has been removed 2016-01-19 16:18:26 +00:00
libressl-api-compat.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
Makefile.in ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
md5.c Upgrade to OpenSSH 6.8p1. 2016-01-19 18:28:23 +00:00
md5.h Upgrade to OpenSSH 6.8p1. 2016-01-19 18:28:23 +00:00
memmem.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
mktemp.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
openbsd-compat.h ssh: Update to OpenSSH 9.7p1 2024-03-25 18:31:44 -04:00
openssl-compat.c openssh: Update to 9.9p1 2025-02-20 12:50:31 -05:00
openssl-compat.h openssh: Update to 9.9p1 2025-02-20 12:50:31 -05:00
port-aix.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
port-aix.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
port-irix.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
port-irix.h Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
port-linux.c openssh: Update to 9.9p1 2025-02-20 12:50:31 -05:00
port-linux.h openssh: Update to 9.8p1 2025-02-20 12:50:11 -05:00
port-net.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
port-net.h Upgrade to OpenSSH 7.7p1. 2018-05-11 13:22:43 +00:00
port-prngd.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
port-solaris.c ssh: Update to OpenSSH 9.6p1 2024-01-07 14:31:11 -05:00
port-solaris.h Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
port-uw.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
port-uw.h
pwcache.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
readpassphrase.c Upgrade to OpenSSH 7.7p1. 2018-05-11 13:22:43 +00:00
readpassphrase.h
reallocarray.c Upgrade to OpenSSH 6.8p1. 2016-01-19 18:28:23 +00:00
recallocarray.c Upgrade to OpenSSH 7.6p1. This will be followed shortly by 7.7p1. 2018-05-08 23:13:11 +00:00
rresvport.c
setenv.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
setproctitle.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
sha1.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
sha1.h Upgrade to OpenSSH 6.8p1. 2016-01-19 18:28:23 +00:00
sha2.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
sha2.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
sigact.c
sigact.h
strcasestr.c Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
strlcat.c
strlcpy.c
strmode.c
strndup.c Upgrade to OpenSSH 7.8p1. 2018-09-10 16:20:12 +00:00
strnlen.c Upgrade to OpenSSH 7.8p1. 2018-09-10 16:20:12 +00:00
strptime.c
strsep.c
strtoll.c
strtonum.c openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
strtoul.c
strtoull.c
sys-queue.h openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
sys-tree.h
timingsafe_bcmp.c
vis.c Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
vis.h Upgrade to OpenSSH 7.3p1. 2017-03-02 00:11:32 +00:00
xcrypt.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00