]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
2 years agoupstream: remove prototypes with no matching function; ok djm@
jsg@openbsd.org [Fri, 17 May 2024 06:42:04 +0000 (06:42 +0000)] 
upstream: remove prototypes with no matching function; ok djm@

OpenBSD-Commit-ID: 6d9065dadea5f14a01bece0dbfe2fba1be31c693

2 years agoupstream: remove externs for removed vars; ok djm@
jsg@openbsd.org [Fri, 17 May 2024 06:38:00 +0000 (06:38 +0000)] 
upstream: remove externs for removed vars; ok djm@

OpenBSD-Commit-ID: f51ea791d45c15d4927eb4ae7d877ccc1e5a2aab

2 years agoupstream: -Werror was turned on (probably just for development),
deraadt@openbsd.org [Fri, 17 May 2024 06:11:17 +0000 (06:11 +0000)] 
upstream: -Werror was turned on (probably just for development),

and this is a simple way to satisfy older gcc.

OpenBSD-Commit-ID: 7f698df54384b437ce33ab7405f0b86c87019e86

2 years agoattempt at updating RPM specs for sshd-session
Damien Miller [Fri, 17 May 2024 04:50:43 +0000 (14:50 +1000)] 
attempt at updating RPM specs for sshd-session

2 years agoupstream: g/c unused variable
djm@openbsd.org [Fri, 17 May 2024 04:42:13 +0000 (04:42 +0000)] 
upstream: g/c unused variable

OpenBSD-Commit-ID: aa6ef0778a1f1bde0d73efba72a777c48d2bd010

2 years agoupstream: spelling; ok djm@
jsg@openbsd.org [Fri, 17 May 2024 02:39:11 +0000 (02:39 +0000)] 
upstream: spelling; ok djm@

OpenBSD-Commit-ID: bdea29bb3ed2a5a7782999c4c663b219d2270483

2 years agoupstream: allow overriding the sshd-session binary path
djm@openbsd.org [Fri, 17 May 2024 01:45:22 +0000 (01:45 +0000)] 
upstream: allow overriding the sshd-session binary path

OpenBSD-Regress-ID: 5058cd1c4b6ca1a15474e33546142931d9f964da

2 years agoupstream: Since ssh-agent(1) is only readable by root by now, use
anton@openbsd.org [Wed, 3 Apr 2024 06:01:11 +0000 (06:01 +0000)] 
upstream: Since ssh-agent(1) is only readable by root by now, use

ssh(1) while generating data in tests.

OpenBSD-Regress-ID: 24eb40de2e6b0ace185caaba35e2d470331ffe68

2 years agoupstream: fix incorrect debug option name introduce in previous
djm@openbsd.org [Fri, 17 May 2024 01:17:40 +0000 (01:17 +0000)] 
upstream: fix incorrect debug option name introduce in previous

commit

OpenBSD-Commit-ID: 66d69e22b1c072c694a7267c847f212284614ed3

2 years agoupstream: construct and install a relink-kit for sshd-session ok
deraadt@openbsd.org [Fri, 17 May 2024 00:33:25 +0000 (00:33 +0000)] 
upstream: construct and install a relink-kit for sshd-session ok

djm

OpenBSD-Commit-ID: 8b3820adb4da4e139c4b3cffbcc0bde9f08bf0c6

2 years agoMakefile support for sshd-session
Damien Miller [Fri, 17 May 2024 02:21:27 +0000 (12:21 +1000)] 
Makefile support for sshd-session

2 years agoupstream: missing files from previous
djm@openbsd.org [Fri, 17 May 2024 00:32:32 +0000 (00:32 +0000)] 
upstream: missing files from previous

OpenBSD-Commit-ID: 4b7be4434d8799f02365552b641a7a70a7ebeb2f

2 years agoupstream: Start the process of splitting sshd into separate
djm@openbsd.org [Fri, 17 May 2024 00:30:23 +0000 (00:30 +0000)] 
upstream: Start the process of splitting sshd into separate

binaries. This step splits sshd into a listener and a session binary. More
splits are planned.

After this changes, the listener binary will validate the configuration,
load the hostkeys, listen on port 22 and manage MaxStartups only. All
session handling will be performed by a new sshd-session binary that the
listener fork+execs.

This reduces the listener process to the minimum necessary and sets us
up for future work on the sshd-session binary.

feedback/ok markus@ deraadt@

NB. if you're updating via source, please restart sshd after installing,
otherwise you run the risk of locking yourself out.

OpenBSD-Commit-ID: 43c04a1ab96cdbdeb53d2df0125a6d42c5f19934

2 years agoupstream: simplify exit message handling, which was more complicated
djm@openbsd.org [Thu, 9 May 2024 09:46:47 +0000 (09:46 +0000)] 
upstream: simplify exit message handling, which was more complicated

than it needed to be because of unexpunged ssh1 remnants. ok markus@

OpenBSD-Commit-ID: 8b0cd2c0dee75fb053718f442aa89510b684610b

2 years agoupstream: remove SSH1 leftovers
tobias@openbsd.org [Mon, 6 May 2024 19:26:17 +0000 (19:26 +0000)] 
upstream: remove SSH1 leftovers

Authored with Space Meyer <git at the-space dot agency>

ok djm

OpenBSD-Commit-ID: 81db602e4cb407baae472689db1c222ed7b2afa3

2 years agoupstream: never close stdin
tobias@openbsd.org [Tue, 30 Apr 2024 15:40:43 +0000 (15:40 +0000)] 
upstream: never close stdin

The sanitise_stdfd call makes sure that standard file descriptors are
open (if they were closed, they are connected with /dev/null).

Do not close stdin in any case to prevent error messages when stdin is
read multiple times and to prevent later usage of fd 0 for connections,
e.g.

echo localhost | ssh-keyscan -f - -f -

While at it, make stdin-related error messages nicer.

Authored with Max Kunzelmann <maxdev at posteo dot de>

ok djm

OpenBSD-Commit-ID: 48e9b7938e2fa2f9bd47e6de6df66a31e0b375d3

2 years agosync getrrsetbyname.c with recent upstream changes
Damien Miller [Tue, 7 May 2024 23:43:59 +0000 (09:43 +1000)] 
sync getrrsetbyname.c with recent upstream changes

2 years agoupstream: fix home-directory extension implementation, it always
djm@openbsd.org [Tue, 30 Apr 2024 06:23:51 +0000 (06:23 +0000)] 
upstream: fix home-directory extension implementation, it always

returned the current user's home directory contrary to the spec.

Patch from Jakub Jelen via GHPR477

OpenBSD-Commit-ID: 5afd775eab7f9cbe222d7fbae4c793de6c3b3d28

2 years agoupstream: flush stdout after writing "sftp>" prompt when not using
djm@openbsd.org [Tue, 30 Apr 2024 06:16:55 +0000 (06:16 +0000)] 
upstream: flush stdout after writing "sftp>" prompt when not using

editline.

From Alpine Linux via GHPR480

OpenBSD-Commit-ID: 80bdc7ffe0358dc090eb9b93e6dedb2b087b24cd

2 years agoupstream: stricter validation of messaging socket fd number; disallow
djm@openbsd.org [Tue, 30 Apr 2024 05:53:03 +0000 (05:53 +0000)] 
upstream: stricter validation of messaging socket fd number; disallow

usage of stderr. Based on GHPR492 by RealHurrison

OpenBSD-Commit-ID: 73dbbe82ea16f73ce1d044d3232bc869ae2f2ce8

2 years agoupstream: add missing reserved fields to key constraint protocol
djm@openbsd.org [Tue, 30 Apr 2024 05:45:56 +0000 (05:45 +0000)] 
upstream: add missing reserved fields to key constraint protocol

documentation.

from Wiktor Kwapisiewicz via GHPR487

OpenBSD-Commit-ID: 0dfb69998cfdb3fa00cbb0e7809e7d2f6126e3df

2 years agodepend
Damien Miller [Tue, 30 Apr 2024 02:39:34 +0000 (12:39 +1000)] 
depend

2 years agoupstream: correctly restore sigprocmask around ppoll() reported
djm@openbsd.org [Tue, 30 Apr 2024 02:14:10 +0000 (02:14 +0000)] 
upstream: correctly restore sigprocmask around ppoll() reported

by Tõivo Leedjärv; ok deraadt@

OpenBSD-Commit-ID: c0c0f89de5294a166578f071eade2501929c4686

2 years agoupstream: add explict check for server hostkey type against
djm@openbsd.org [Tue, 30 Apr 2024 02:10:49 +0000 (02:10 +0000)] 
upstream: add explict check for server hostkey type against

HostkeyAlgorithms. Allows HostkeyAlgorithms to disable implicit fallback from
certificate keys to plain keys. ok markus@

OpenBSD-Commit-ID: 364087e4a395ff9b2f42bf3aefdb2090bb23643a

2 years agoupstream: correct indentation; no functional change ok tb@
jsg@openbsd.org [Tue, 23 Apr 2024 13:34:50 +0000 (13:34 +0000)] 
upstream: correct indentation; no functional change ok tb@

OpenBSD-Commit-ID: dd9702fd43de546bc6a3f4f025c74d6f3692a0d4

2 years agoupstream: set right mode on ssh-agent at boot-time
semarie@openbsd.org [Thu, 4 Apr 2024 16:00:51 +0000 (16:00 +0000)] 
upstream: set right mode on ssh-agent at boot-time

which sthen@
ok deraadt@

OpenBSD-Commit-ID: 662b5056a2c6171563e1626f9c69f27862b5e7af

2 years agoupstream: Oops, incorrect hex conversion spotted by claudio.
deraadt@openbsd.org [Tue, 2 Apr 2024 12:22:38 +0000 (12:22 +0000)] 
upstream: Oops, incorrect hex conversion spotted by claudio.

While here try to improve how it reads a bit better.  Surprising the
regression tests didn't spot this error, maybe it fails to roundtrip the
values.

OpenBSD-Commit-ID: 866cfcc1955aef8f3fc32da0b70c353a1b859f2e

2 years agoupstream: for parse_ipqos(), use strtonum() instead of mostly
deraadt@openbsd.org [Tue, 2 Apr 2024 10:02:08 +0000 (10:02 +0000)] 
upstream: for parse_ipqos(), use strtonum() instead of mostly

idiomatic strtoul(), but wow it's so gross. ok djm

OpenBSD-Commit-ID: cec14a76af2eb7b225300c80fc0e21052be67b05

2 years agoupstream: can shortcut by returning strtonum() value directly; ok
deraadt@openbsd.org [Tue, 2 Apr 2024 09:56:58 +0000 (09:56 +0000)] 
upstream: can shortcut by returning strtonum() value directly; ok

djm

OpenBSD-Commit-ID: 7bb2dd3d6d1f288dac14247d1de446e3d7ba8b8e

2 years agoupstream: rewrite convtime() to use a isdigit-scanner and
deraadt@openbsd.org [Tue, 2 Apr 2024 09:52:14 +0000 (09:52 +0000)] 
upstream: rewrite convtime() to use a isdigit-scanner and

strtonum() instead of strange strtoul can might be fooled by garage
characters. passes regress/usr.bin/ssh/unittests/misc ok djm

OpenBSD-Commit-ID: 4b1ef826bb16047aea3f3bdcb385b72ffd450abc

2 years agoupstream: Remove unused ptr[3] char array in pkcs11_decode_hex.
claudio@openbsd.org [Tue, 2 Apr 2024 09:48:24 +0000 (09:48 +0000)] 
upstream: Remove unused ptr[3] char array in pkcs11_decode_hex.

OK deraadt@

OpenBSD-Commit-ID: 3d14433e39fd558f662d3b0431c4c555ef920481

2 years agoupstream: Replace non-idiomatic strtoul(, 16) to parse a region
deraadt@openbsd.org [Tue, 2 Apr 2024 09:32:28 +0000 (09:32 +0000)] 
upstream: Replace non-idiomatic strtoul(, 16) to parse a region

of 2-character hex sequences with a low-level replacement designed just for
the task. ok djm

OpenBSD-Commit-ID: 67bab8b8a4329a19a0add5085eacd6f4cc215e85

2 years agoupstream: Use strtonum() instead of severely non-idomatic
deraadt@openbsd.org [Tue, 2 Apr 2024 09:29:31 +0000 (09:29 +0000)] 
upstream: Use strtonum() instead of severely non-idomatic

strtoul() In particular this will now reject trailing garbage, ie.
'12garbage'. ok djm

OpenBSD-Commit-ID: c82d95e3ccbfedfc91a8041c2f8bf0cf987d1501

2 years agoupstream: also create a relink kit for ssh-agent, since it is a
deraadt@openbsd.org [Mon, 1 Apr 2024 15:50:17 +0000 (15:50 +0000)] 
upstream: also create a relink kit for ssh-agent, since it is a

long-running setgid program carrying keys with some (not very powerful)
communication channels. solution for testing the binary from dtucker.
agreement from djm. Will add it into /etc/rc in a few days.

OpenBSD-Commit-ID: 2fe8d707ae35ba23c7916adcb818bb5b66837ba0

2 years agoupstream: new-style relink kit for sshd. The old scheme created
deraadt@openbsd.org [Mon, 1 Apr 2024 15:48:16 +0000 (15:48 +0000)] 
upstream: new-style relink kit for sshd. The old scheme created

a Makefile by concatenating two Makefiles and was incredibly fragile.  In the
new way a narrow-purposed install.sh script is created and shipped with the
objects. A recently commited /etc/rc script understands these files.

OpenBSD-Commit-ID: ef9341d5a50f0d33e3a6fbe995e92964bc7ef2d3

2 years agoShell syntax fix (leftover from a sync).
renmingshuai [Fri, 12 Apr 2024 02:20:49 +0000 (10:20 +0800)] 
Shell syntax fix (leftover from a sync).

Signed-off-by: renmingshuai <renmingshuai@huawei.com>
2 years agoMerge flags for OpenSSL 3.x versions.
Darren Tucker [Thu, 25 Apr 2024 03:20:19 +0000 (13:20 +1000)] 
Merge flags for OpenSSL 3.x versions.

OpenSSL has moved to 3.4 which we don't currently accept.  Based on
the OpenSSL versioning policy[0] it looks like all of the 3.x versions
should work with OpenSSH, so remove the distinction in configure and
accept all of them.

[0] https://openssl.org/policies/general/versioning-policy.html

2 years agoRemove 9.6 branch from status page.
Darren Tucker [Thu, 25 Apr 2024 03:19:03 +0000 (13:19 +1000)] 
Remove 9.6 branch from status page.

2 years agoUpdate LibreSSL and OpenSSL versions tested.
Darren Tucker [Thu, 25 Apr 2024 03:16:58 +0000 (13:16 +1000)] 
Update LibreSSL and OpenSSL versions tested.

Update LibreSSL versions to current releases (3.8.4 & 3.9.1).
Add newly-released OpenSSL 3.3.0, and add tests against the 3.1 and
3.3 branches.

2 years agoFix missing header for systemd notification 444/head
90 [Fri, 5 Apr 2024 18:36:06 +0000 (19:36 +0100)] 
Fix missing header for systemd notification

2 years agonotify systemd on listen and reload
Damien Miller [Wed, 3 Apr 2024 03:40:32 +0000 (14:40 +1100)] 
notify systemd on listen and reload

Standalone implementation that does not depend on libsystemd.
With assistance from Luca Boccassi, and feedback/testing from Colin
Watson. bz2641

2 years agoPort changes from selfhosted to upstream tests.
Darren Tucker [Sun, 31 Mar 2024 10:51:57 +0000 (21:51 +1100)] 
Port changes from selfhosted to upstream tests.

Should get them working again.

2 years agoCheck if OpenSSL implementation supports DSA.
Darren Tucker [Sat, 30 Mar 2024 07:20:16 +0000 (18:20 +1100)] 
Check if OpenSSL implementation supports DSA.

If --enable/disable-dsa-keys is not specified, set based on what OpenSSL
supports.  If specified as enabled, but not supported by OpenSSL error
out.  ok djm@

2 years agoupstream: in OpenSSH private key format, correct type for subsequent
djm@openbsd.org [Sat, 30 Mar 2024 05:56:22 +0000 (05:56 +0000)] 
upstream: in OpenSSH private key format, correct type for subsequent

private keys in blob. From Jakub Jelen via GHPR430

OpenBSD-Commit-ID: d17dbf47554de2d752061592f95b5d772baab50b

2 years agoExpose SSH_AUTH_INFO_0 always to PAM auth modules.
Eero Häkkinen [Fri, 15 Sep 2023 21:55:08 +0000 (00:55 +0300)] 
Expose SSH_AUTH_INFO_0 always to PAM auth modules.

This changes SSH_AUTH_INFO_0 to be exposed to PAM auth modules also
when a password authentication method is in use and not only
when a keyboard-interactive authentication method is in use.

2 years agoRearrange selfhosted VM scheduling.
Darren Tucker [Wed, 27 Mar 2024 06:42:58 +0000 (17:42 +1100)] 
Rearrange selfhosted VM scheduling.

Instead of trying to infer the type of the self hosted tests in each of
the driver scripts (inconsistently...), set one of the following
variables to "true" in the workflow:

VM: tests run in a virtual machine.
EPHEMERAL: tests run on an ephemeral virtual machine.
PERSISTENT: tests run on a persistent virtual machine
REMOTE: tests run on a physical remote host.

EPHEMERAL VMs can have multiple instances of any given VM can exist
simultaneously and are run by a runner pool.  The other types have a
dedicated runner instance and can only run a single test at a time.

Other settings:
SSHFS: We need to sshfs mount over the repo so the workflow can collect
build artifacts.  This also implies the tests must be run over ssh.
DEBUG_ACTIONS: enable "set -x" in scripts for debugging.

2 years agoadd new token-based signing key for dtucker@
Damien Miller [Sat, 30 Mar 2024 05:05:59 +0000 (16:05 +1100)] 
add new token-based signing key for dtucker@

Verified in person and via signature with old key.
Will remove old key in a bit.

2 years agoFix OpenSSL ED25519 support detection
Alkaid [Tue, 12 Mar 2024 10:59:12 +0000 (03:59 -0700)] 
Fix OpenSSL ED25519 support detection

Wrong function signature in configure.ac prevents openssh from enabling
the recently new support for ED25519 priv keys in PEM PKCS8 format.

2 years agoupstream: allow WAYLAND_DISPLAY to enable SSH_ASKPASS
djm@openbsd.org [Sat, 30 Mar 2024 04:27:44 +0000 (04:27 +0000)] 
upstream: allow WAYLAND_DISPLAY to enable SSH_ASKPASS

From dkg via GHPR479; ok dtucker@

OpenBSD-Commit-ID: 1ac1f9c45da44eabbae89375393c662349239257

2 years agoupstream: Use egrep instead of grep -E.
dtucker@openbsd.org [Fri, 29 Mar 2024 10:40:07 +0000 (10:40 +0000)] 
upstream: Use egrep instead of grep -E.

Some plaforms don't have the latter so this makes things easier
in -portable.

OpenBSD-Regress-ID: ff82260eb0db1f11130200b25d820cf73753bbe3

2 years agoupstream: test -h is the POSIXly way of testing for a symlink. Reduces
dtucker@openbsd.org [Tue, 26 Mar 2024 08:09:16 +0000 (08:09 +0000)] 
upstream: test -h is the POSIXly way of testing for a symlink. Reduces

diff vs Portable.

OpenBSD-Regress-ID: 6f31cd6e231e3b8c5c2ca0307573ccb7484bff7d

2 years agoFix name of OpenBSD upstream CI jobs.
Darren Tucker [Tue, 26 Mar 2024 07:58:58 +0000 (18:58 +1100)] 
Fix name of OpenBSD upstream CI jobs.

2 years agoResync with upstream: ${} around DATAFILE.
Darren Tucker [Tue, 26 Mar 2024 07:55:33 +0000 (18:55 +1100)] 
Resync with upstream: ${} around DATAFILE.

2 years agoupstream: optional debugging
djm@openbsd.org [Mon, 25 Mar 2024 19:28:09 +0000 (19:28 +0000)] 
upstream: optional debugging

OpenBSD-Regress-ID: b4852bf97ac8fb2e3530f2d5f999edd66058d7bc

2 years agoupstream: Verify string returned from local shell command.
dtucker@openbsd.org [Mon, 25 Mar 2024 06:05:42 +0000 (06:05 +0000)] 
upstream: Verify string returned from local shell command.

OpenBSD-Regress-ID: 5039bde24d33d809aebfa8d3ad7fe9053224e6f8

2 years agoupstream: Improve shell portability: grep -q is not portable so
dtucker@openbsd.org [Mon, 25 Mar 2024 03:30:31 +0000 (03:30 +0000)] 
upstream: Improve shell portability: grep -q is not portable so

redirect stdout, and use printf instead of relying on echo to do \n
substitution.  Reduces diff vs Portable.

Also resync somewhat with upstream.

OpenBSD-Regress-ID: 9ae876a8ec4c4725f1e9820a0667360ee2398337

2 years agoupstream: Save error code from SSH for use inside case statement,
dtucker@openbsd.org [Mon, 25 Mar 2024 02:07:08 +0000 (02:07 +0000)] 
upstream: Save error code from SSH for use inside case statement,

from portable. In some shells, "case" will reset the value of $?, so save it
first.

OpenBSD-Regress-ID: da32e5be19299cb4f0f7de7f29c11257a62d6949

2 years agoupstream: Increase timeout. Resyncs with portable where some of
dtucker@openbsd.org [Mon, 25 Mar 2024 01:40:47 +0000 (01:40 +0000)] 
upstream: Increase timeout. Resyncs with portable where some of

the test VMs are slow enough for this to matter.

OpenBSD-Regress-ID: 6a83a693602eb0312f06a4ad2cd6f40d99d24b26

2 years agoupstream: In PuTTY interop test, don't assume the PuTTY major
dtucker@openbsd.org [Mon, 25 Mar 2024 01:28:29 +0000 (01:28 +0000)] 
upstream: In PuTTY interop test, don't assume the PuTTY major

version is 0. Patch from cjwatson at debian.org via bz#3671.

OpenBSD-Regress-ID: 835ed03c1b04ad46be82e674495521f11b840191

2 years agoReally mkdir /usr/local/etc in CI tests.
Darren Tucker [Tue, 26 Mar 2024 07:38:14 +0000 (18:38 +1100)] 
Really mkdir /usr/local/etc in CI tests.

2 years agoBetter short name for OpenBSD upstream CI jobs too.
Darren Tucker [Tue, 26 Mar 2024 06:19:09 +0000 (17:19 +1100)] 
Better short name for OpenBSD upstream CI jobs too.

2 years agoEnsure /usr/local/etc exists before using in tests.
Darren Tucker [Tue, 26 Mar 2024 06:13:52 +0000 (17:13 +1100)] 
Ensure /usr/local/etc exists before using in tests.

2 years agoBe more specific about when to rerun workflows.
Darren Tucker [Tue, 26 Mar 2024 05:50:46 +0000 (16:50 +1100)] 
Be more specific about when to rerun workflows.

2 years agoAdd short names for test jobs on github CI.
Darren Tucker [Tue, 26 Mar 2024 05:35:27 +0000 (16:35 +1100)] 
Add short names for test jobs on github CI.

2 years agoIf we're using xpg4's id, remember to pass args.
Darren Tucker [Tue, 26 Mar 2024 05:26:14 +0000 (16:26 +1100)] 
If we're using xpg4's id, remember to pass args.

2 years agoupstream: Import regenerated moduli.
dtucker@openbsd.org [Tue, 26 Mar 2024 01:23:11 +0000 (01:23 +0000)] 
upstream: Import regenerated moduli.

OpenBSD-Commit-ID: ad3d1486d105b008c93e952d158e5af4d9d4c531

2 years agoupstream: Clarify how literal IPv6 addresses can be used in -J mode
job@openbsd.org [Thu, 14 Mar 2024 06:23:14 +0000 (06:23 +0000)] 
upstream: Clarify how literal IPv6 addresses can be used in -J mode

OK djm@

OpenBSD-Commit-ID: 524ddae97746b3563ad4a887dfd0a6e6ba114c50

2 years agoAdd Mac OS X 14 test targets.
Darren Tucker [Mon, 25 Mar 2024 05:14:21 +0000 (16:14 +1100)] 
Add Mac OS X 14 test targets.

2 years agoMove xpg4 'id' handling into test-exec.sh.
Darren Tucker [Mon, 25 Mar 2024 03:05:40 +0000 (14:05 +1100)] 
Move xpg4 'id' handling into test-exec.sh.

Handle replacement of 'id' the same way as we do other Portable specific
replacements in test-exec.sh.  This brings percent.sh back into sync
with upstream.

2 years agoUpdate branches shown on ci-status to 9.7 and 9.6.
Darren Tucker [Sun, 24 Mar 2024 23:38:03 +0000 (10:38 +1100)] 
Update branches shown on ci-status to 9.7 and 9.6.

2 years agoImprove detection of -fzero-call-used-regs=used.
Darren Tucker [Sun, 24 Mar 2024 22:28:02 +0000 (09:28 +1100)] 
Improve detection of -fzero-call-used-regs=used.

Should better detect problems with gcc 13 on m68k.  bz#3673 from Colin
Watson via bz#3673 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934

Signed-off-by: Darren Tucker <dtucker@dtucker.net>
2 years agoversion number in README V_9_7_P1
Damien Miller [Mon, 11 Mar 2024 05:20:49 +0000 (16:20 +1100)] 
version number in README

2 years agocrank RPM spec versions
Damien Miller [Mon, 11 Mar 2024 05:20:08 +0000 (16:20 +1100)] 
crank RPM spec versions

2 years agoupstream: openssh-9.7
djm@openbsd.org [Mon, 11 Mar 2024 04:59:47 +0000 (04:59 +0000)] 
upstream: openssh-9.7

OpenBSD-Commit-ID: 618ececf58b8cdae016b149787af06240f7b0cbc

2 years agoTest against current OpenSSL and LibreSSL releases.
Darren Tucker [Mon, 11 Mar 2024 01:59:26 +0000 (12:59 +1100)] 
Test against current OpenSSL and LibreSSL releases.

Add LibreSSL 3.9.0, bump older branches to their respective current
releases.

2 years agoquote regexes used to test for algorithm support
Damien Miller [Sun, 10 Mar 2024 05:24:57 +0000 (16:24 +1100)] 
quote regexes used to test for algorithm support

Fixes test failures on Solaris 8 reported by Tom G. Christensen

2 years agoupstream: avoid logging in signal handler by converting mainloop to
djm@openbsd.org [Sat, 9 Mar 2024 05:12:13 +0000 (05:12 +0000)] 
upstream: avoid logging in signal handler by converting mainloop to

ppoll() bz3670, reported by Ben Hamilton; ok dtucker@

OpenBSD-Commit-ID: e58f18042b86425405ca09e6e9d7dfa1df9f5f7f

2 years agoupstream: skip more whitespace, fixes find-principals on
djm@openbsd.org [Fri, 8 Mar 2024 22:16:32 +0000 (22:16 +0000)] 
upstream: skip more whitespace, fixes find-principals on

allowed_signers files with blank lines; reported by Wiktor Kwapisiewicz

OpenBSD-Commit-ID: b3a22a2afd753d70766f34bc7f309c03706b5298

2 years agoupstream: Invoke ProxyCommand that uses stderr redirection via
dtucker@openbsd.org [Fri, 8 Mar 2024 11:34:10 +0000 (11:34 +0000)] 
upstream: Invoke ProxyCommand that uses stderr redirection via

$TEST_SHELL. Fixes test when run by a user whose login shell is tcsh.
Found by vinschen at redhat.com.

OpenBSD-Regress-ID: f68d79e7f00caa8d216ebe00ee5f0adbb944062a

2 years agoPrefer openssl binary from --with-ssl-dir directory.
Darren Tucker [Thu, 7 Mar 2024 06:18:14 +0000 (17:18 +1100)] 
Prefer openssl binary from --with-ssl-dir directory.

Use openssl in the directory specified by --with-ssl-dir as long
as it's functional.  Reported by The Doctor.

2 years agoupstream: fix memory leak in mux proxy mode when requesting forwarding.
djm@openbsd.org [Wed, 6 Mar 2024 02:59:59 +0000 (02:59 +0000)] 
upstream: fix memory leak in mux proxy mode when requesting forwarding.

found by RASU JSC, reported by Maks Mishin in GHPR#467

OpenBSD-Commit-ID: 97d96a166b1ad4b8d229864a553e3e56d3116860

2 years agoupstream: wrap a few PKCS#11-specific bits in ENABLE_PKCS11
djm@openbsd.org [Wed, 6 Mar 2024 00:31:04 +0000 (00:31 +0000)] 
upstream: wrap a few PKCS#11-specific bits in ENABLE_PKCS11

OpenBSD-Commit-ID: 463e4a69eef3426a43a2b922c4e7b2011885d923

2 years agodisable RSA tests when algorithm is not supported
Damien Miller [Wed, 6 Mar 2024 00:31:36 +0000 (11:31 +1100)] 
disable RSA tests when algorithm is not supported

Unbreaks "make test" when compiled --without-openssl.

Similar treatment to how we do DSA and ECDSA.

2 years agoadd a --without-retpoline configure option
Damien Miller [Tue, 5 Mar 2024 23:33:20 +0000 (10:33 +1100)] 
add a --without-retpoline configure option

discussed with deraadt and dtucker a while ago

2 years agoupstream: fix leak of CanonicalizePermittedCNAMEs on error path;
djm@openbsd.org [Mon, 4 Mar 2024 04:13:18 +0000 (04:13 +0000)] 
upstream: fix leak of CanonicalizePermittedCNAMEs on error path;

spotted by Coverity (CID 438039)

OpenBSD-Commit-ID: 208839699939721f452a4418afc028a9f9d3d8af

2 years agoupstream: Separate parsing of string array options from applying them
djm@openbsd.org [Mon, 4 Mar 2024 02:16:11 +0000 (02:16 +0000)] 
upstream: Separate parsing of string array options from applying them

to the active configuration. This fixes the config parser from erroneously
rejecting cases like:

AuthenticationMethods password
Match User ivy
 AuthenticationMethods any

bz3657 ok markus@

OpenBSD-Commit-ID: 7f196cba634c2a3dba115f3fac3c4635a2199491

2 years agoAdd nbsd10 test target.
Darren Tucker [Thu, 22 Feb 2024 06:59:35 +0000 (17:59 +1100)] 
Add nbsd10 test target.

2 years agomore descriptive configure test name
Damien Miller [Thu, 22 Feb 2024 01:06:10 +0000 (12:06 +1100)] 
more descriptive configure test name

2 years agoupstream: explain arguments of internal-sftp GHPR#454 from Niklas
djm@openbsd.org [Wed, 21 Feb 2024 06:17:29 +0000 (06:17 +0000)] 
upstream: explain arguments of internal-sftp GHPR#454 from Niklas

Hambüchen
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

OpenBSD-Commit-ID: 0335d641ae6b5b6201b9ffd5dd06345ebbd0a3f3

2 years agoupstream: clarify permissions requirements for ChrootDirectory Part
djm@openbsd.org [Wed, 21 Feb 2024 06:06:43 +0000 (06:06 +0000)] 
upstream: clarify permissions requirements for ChrootDirectory Part

of GHPR#454 from Niklas Hambüchen
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

OpenBSD-Commit-ID: d37bc8786317a11649c62ff5e2936441186ef7a0

2 years agoupstream: .Cm for a keyword. Part of GHPR#454 from Niklas Hambüchen
djm@openbsd.org [Wed, 21 Feb 2024 06:05:06 +0000 (06:05 +0000)] 
upstream: .Cm for a keyword. Part of GHPR#454 from Niklas Hambüchen

OpenBSD-Commit-ID: d59c52559f926fa82859035d79749fbb4a3ce18a

2 years agoupstream: fix typo in match directive predicate (s/tagged/tag) GHPR#462
djm@openbsd.org [Wed, 21 Feb 2024 06:01:13 +0000 (06:01 +0000)] 
upstream: fix typo in match directive predicate (s/tagged/tag) GHPR#462

from Tobias Manske

OpenBSD-Commit-ID: 05b23b772677d48aa82eefd7ebebd369ae758908

2 years agoupstream: fix proxy multiplexing mode, broken when keystroke timing
djm@openbsd.org [Wed, 21 Feb 2024 05:57:34 +0000 (05:57 +0000)] 
upstream: fix proxy multiplexing mode, broken when keystroke timing

obfuscation was added. GHPR#463 from montag451

OpenBSD-Commit-ID: 4e412d59b3f557d431f1d81c715a3bc0491cc677

2 years agoupstream: don't append a gratuitous space to the end of subsystem
djm@openbsd.org [Tue, 20 Feb 2024 04:10:03 +0000 (04:10 +0000)] 
upstream: don't append a gratuitous space to the end of subsystem

arguments; bz3667

OpenBSD-Commit-ID: e11023aeb3f30b77a674e37b8292c862926d5dc6

2 years agoupstream: Always define puttysetup function.
dtucker@openbsd.org [Mon, 19 Feb 2024 09:25:52 +0000 (09:25 +0000)] 
upstream: Always define puttysetup function.

OpenBSD-Regress-ID: b4c0ccfa4006a1bc5dfd99ccf21c854d3ce2aee0

2 years agoupstream: Exapnd PuTTY test coverage.
dtucker@openbsd.org [Fri, 9 Feb 2024 08:56:59 +0000 (08:56 +0000)] 
upstream: Exapnd PuTTY test coverage.

Expand the set of ciphers, MACs and KEX methods in the PuTTY interop
tests.

OpenBSD-Regress-ID: dd28d97d48efe7329a396d0d505ee2907bf7fc57

2 years agoupstream: Factor out PuTTY setup.
dtucker@openbsd.org [Fri, 9 Feb 2024 08:47:42 +0000 (08:47 +0000)] 
upstream: Factor out PuTTY setup.

Factor out PuTTY and call only when needed.

This allows us to avoid PuTTY key setup when it's not needed, which
speeds up the overall test run by a couple of percent.

OpenBSD-Regress-ID: c25eaccc3c91bc874400f7c85ce40e9032358c1c

2 years agoupstream: clean sshd random relinking kit; ok miod@
naddy@openbsd.org [Sat, 10 Feb 2024 11:28:52 +0000 (11:28 +0000)] 
upstream: clean sshd random relinking kit; ok miod@

OpenBSD-Commit-ID: 509bb19bb9762a4b3b589af98bac2e730541b6d4

2 years agoupstream: whitespace
djm@openbsd.org [Fri, 2 Feb 2024 00:13:34 +0000 (00:13 +0000)] 
upstream: whitespace

OpenBSD-Commit-ID: b24680bc755b621ea801ff8edf6f0f02b68edae1

2 years agoImprove error message for OpenSSL header check.
Darren Tucker [Mon, 19 Feb 2024 06:29:31 +0000 (17:29 +1100)] 
Improve error message for OpenSSL header check.

bz#3668, ok djm@