]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
4 years agoAdd USE_LIBC_SHA2 for (at least) NetBSD 9.
Darren Tucker [Wed, 6 Oct 2021 06:45:28 +0000 (17:45 +1100)] 
Add USE_LIBC_SHA2 for (at least) NetBSD 9.

4 years agoDefine OPENSSL_NO_SHA including OpenSSL from test.
Darren Tucker [Wed, 6 Oct 2021 06:09:31 +0000 (17:09 +1100)] 
Define OPENSSL_NO_SHA including OpenSSL from test.

We don't use SHA256 from OpenSSL in the sk-dummy module and the
definitions can conflict with system sha2.h (eg on NetBSD) so define
OPENSSL_NO_SHA so we don't attempt to redefine them.

4 years agoDisable security key on NetBSD4 test.
Darren Tucker [Wed, 6 Oct 2021 04:40:58 +0000 (15:40 +1100)] 
Disable security key on NetBSD4 test.

sk-dummy used for the security key test includes both sha2.h and OpenSSL
causing the definitions conflict so disable security key support on this
platform.

4 years agoclean regress/misc/sk-dummy in cleandir target
Damien Miller [Wed, 6 Oct 2021 04:07:01 +0000 (15:07 +1100)] 
clean regress/misc/sk-dummy in cleandir target

4 years agoupstream: Dynamically allocate encoded HashKnownHosts and free as
dtucker@openbsd.org [Sat, 2 Oct 2021 03:17:01 +0000 (03:17 +0000)] 
upstream: Dynamically allocate encoded HashKnownHosts and free as

appropriate. Saves 1k of static storage and prevents snprintf "possible
truncation" warnings from newer compilers (although in this case it's false
positive since the actual sizes are limited by the output size of the SHA1).
ok djm@

OpenBSD-Commit-ID: e254ae723f7e3dce352c7d5abc4b6d87faf61bf4

4 years agoupstream: use libc SHA256 functions; make this work when compiled
djm@openbsd.org [Wed, 6 Oct 2021 03:35:13 +0000 (03:35 +0000)] 
upstream: use libc SHA256 functions; make this work when compiled

!WITH_OPENSSL

OpenBSD-Regress-ID: fda0764c1097cd42f979ace29b07eb3481259890

4 years agoupstream: Add test for ssh hashed known_hosts handling.
dtucker@openbsd.org [Fri, 1 Oct 2021 05:20:20 +0000 (05:20 +0000)] 
upstream: Add test for ssh hashed known_hosts handling.

OpenBSD-Regress-ID: bcef3b3cd5a1ad9899327b4b2183de2541aaf9cf

4 years agofix broken OPENSSL_HAS_ECC test
Damien Miller [Wed, 6 Oct 2021 02:16:21 +0000 (13:16 +1100)] 
fix broken OPENSSL_HAS_ECC test

spotted by dtucker

4 years agomake sk-dummy.so work without libcrypto installed
Damien Miller [Fri, 1 Oct 2021 12:40:06 +0000 (22:40 +1000)] 
make sk-dummy.so work without libcrypto installed

4 years agomake OPENSSL_HAS_ECC checks more thorough
Damien Miller [Fri, 1 Oct 2021 06:35:49 +0000 (16:35 +1000)] 
make OPENSSL_HAS_ECC checks more thorough

ok dtucker

4 years agofix FIDO key support for !OPENSSL_HAS_ECC case
Damien Miller [Fri, 1 Oct 2021 06:35:05 +0000 (16:35 +1000)] 
fix FIDO key support for !OPENSSL_HAS_ECC case

ok dtucker

4 years agoenable security key support for --without-openssl
Damien Miller [Fri, 1 Oct 2021 04:51:37 +0000 (14:51 +1000)] 
enable security key support for --without-openssl

4 years agoneed stdlib.h for free(3)
Damien Miller [Fri, 1 Oct 2021 03:27:50 +0000 (13:27 +1000)] 
need stdlib.h for free(3)

4 years agoupstream: Fix up whitespace left by previous
dtucker@openbsd.org [Thu, 30 Sep 2021 05:26:26 +0000 (05:26 +0000)] 
upstream: Fix up whitespace left by previous

change removing privsep.  No other changes.

OpenBSD-Regress-ID: 87adec225d8afaee4d6a91b2b71203f52bf14b15

4 years agoupstream: Remove references to privsep.
dtucker@openbsd.org [Thu, 30 Sep 2021 05:20:08 +0000 (05:20 +0000)] 
upstream: Remove references to privsep.

This removes several do..while loops but does not change the
indentation of the now-shallower loops, which will be done in a separate
whitespace-only commit to keep changes of style and substance separate.

OpenBSD-Regress-ID: 4bed1a0249df7b4a87c965066ce689e79472a8f7

4 years agoupstream: Use "skip" instead of "fatal"
dtucker@openbsd.org [Thu, 30 Sep 2021 04:22:50 +0000 (04:22 +0000)] 
upstream: Use "skip" instead of "fatal"

if SUDO isn't set for the *-command tests. This means running "make tests"
without SUDO set will perform all of the tests that it can instead of
failing on the ones it cannot run.

OpenBSD-Regress-ID: bd4dbbb02f34b2e8c890558ad4a696248def763a

4 years agoupstream: unbreak FIDO sk-ed25519 key enrollment for OPENSSL=no builds;
djm@openbsd.org [Fri, 1 Oct 2021 04:50:36 +0000 (04:50 +0000)] 
upstream: unbreak FIDO sk-ed25519 key enrollment for OPENSSL=no builds;

ok dtucker@

OpenBSD-Commit-ID: 6323a5241728626cbb2bf0452cf6a5bcbd7ff709

4 years agoInclude stdlib.h for arc4random_uniform prototype.
Darren Tucker [Wed, 29 Sep 2021 10:03:58 +0000 (20:03 +1000)] 
Include stdlib.h for arc4random_uniform prototype.

4 years agoLook for clang after cc and gcc.
Darren Tucker [Wed, 29 Sep 2021 10:00:30 +0000 (20:00 +1000)] 
Look for clang after cc and gcc.

4 years agoUse backticks instead of $(..) for portability.
Darren Tucker [Wed, 29 Sep 2021 09:30:59 +0000 (19:30 +1000)] 
Use backticks instead of $(..) for portability.

Older shells (eg /bin/sh on Solaris 10) don't support $() syntax.

4 years agoSkip file-based tests by default on Mac OS.
Darren Tucker [Wed, 29 Sep 2021 08:53:32 +0000 (18:53 +1000)] 
Skip file-based tests by default on Mac OS.

The file-based tests need OpenSSL so skip them.

4 years agoBuild without OpenSSL on Mac OS.
Darren Tucker [Wed, 29 Sep 2021 08:42:47 +0000 (18:42 +1000)] 
Build without OpenSSL on Mac OS.

Modern versions don't ship enough libcrypto to build against.

4 years agoRemove TEST_SSH_ECC.
Darren Tucker [Wed, 29 Sep 2021 08:33:38 +0000 (18:33 +1000)] 
Remove TEST_SSH_ECC.

Convert the only remaining user of it to runtime detection using ssh -Q.

4 years agoSplit c89 test openssl setting out.
Darren Tucker [Wed, 29 Sep 2021 07:48:09 +0000 (17:48 +1000)] 
Split c89 test openssl setting out.

4 years agoExpand TEST_SHELL consistently with other vars.
Darren Tucker [Wed, 29 Sep 2021 07:40:50 +0000 (17:40 +1000)] 
Expand TEST_SHELL consistently with other vars.

4 years agoReplace `pwd` with make variable in regress cmd.
Darren Tucker [Wed, 29 Sep 2021 07:26:50 +0000 (17:26 +1000)] 
Replace `pwd` with make variable in regress cmd.

4 years agoGet BUILDDIR from autoconf.
Darren Tucker [Wed, 29 Sep 2021 07:14:33 +0000 (17:14 +1000)] 
Get BUILDDIR from autoconf.

Use this to replace `pwd`s in regress test command line.

4 years agoAdd make clean step to tests.
Darren Tucker [Wed, 29 Sep 2021 03:28:56 +0000 (13:28 +1000)] 
Add make clean step to tests.

4 years agoTest all available clang and gcc versions.
Darren Tucker [Wed, 29 Sep 2021 01:36:13 +0000 (11:36 +1000)] 
Test all available clang and gcc versions.

4 years agoupstream: Test certificate hostkeys held in ssh-agent too. Would have
djm@openbsd.org [Wed, 29 Sep 2021 01:32:21 +0000 (01:32 +0000)] 
upstream: Test certificate hostkeys held in ssh-agent too. Would have

caught regression fixed in sshd r1.575

ok markus@

OpenBSD-Regress-ID: 1f164d7bd89f83762db823eec4ddf2d2556145ed

4 years agoupstream: add some debug output showing how many key file/command lines
djm@openbsd.org [Wed, 29 Sep 2021 01:33:32 +0000 (01:33 +0000)] 
upstream: add some debug output showing how many key file/command lines

were processed. Useful to see whether a file or command actually has keys
present

OpenBSD-Commit-ID: 0bd9ff94e84e03a22df8e6c12f6074a95d27f23c

4 years agoupstream: Make prototype for rijndaelEncrypt match function
dtucker@openbsd.org [Tue, 28 Sep 2021 11:14:50 +0000 (11:14 +0000)] 
upstream: Make prototype for rijndaelEncrypt match function

including the bounds. Fixes error in portable where GCC>=11 takes notice of
the bounds. ok deraadt@

OpenBSD-Commit-ID: cdd2f05fd1549e1786a70871e513cf9e9cf099a6

4 years agoupstream: Import regenerated moduli.
dtucker@openbsd.org [Tue, 28 Sep 2021 11:10:05 +0000 (11:10 +0000)] 
upstream: Import regenerated moduli.

OpenBSD-Commit-ID: 4bec5db13b736b64b06a0fca704cbecc2874c8e1

4 years agoAdd new compiler hardening flags.
Darren Tucker [Wed, 29 Sep 2021 00:53:55 +0000 (10:53 +1000)] 
Add new compiler hardening flags.

Add -fzero-call-used-regs and -ftrivial-auto-var-init to the list of
compiler hardening flags that configure checks for.  These are supported
by clang and gcc, and make ROP gadgets less useful and mitigate
stack-based infoleaks respectively.  ok djm@

4 years agoinitgroups needs grp.h V_8_8 anongit/V_8_8 github-selfhosted/V_8_8 github/V_8_8 V_8_8_P1
Damien Miller [Sun, 26 Sep 2021 14:03:19 +0000 (00:03 +1000)] 
initgroups needs grp.h

4 years agoupstream: openssh-8.8
djm@openbsd.org [Sun, 26 Sep 2021 14:01:11 +0000 (14:01 +0000)] 
upstream: openssh-8.8

OpenBSD-Commit-ID: 12357794602ac979eb7312a1fb190c453f492ec4

4 years agoupstream: need initgroups() before setresgid(); reported by anton@,
djm@openbsd.org [Sun, 26 Sep 2021 14:01:03 +0000 (14:01 +0000)] 
upstream: need initgroups() before setresgid(); reported by anton@,

ok deraadt@

OpenBSD-Commit-ID: 6aa003ee658b316960d94078f2a16edbc25087ce

4 years agoupdate version numbers for release
Damien Miller [Sun, 26 Sep 2021 12:16:36 +0000 (22:16 +1000)] 
update version numbers for release

4 years agoupstream: RSA/SHA-1 is not used by default anymore
kn@openbsd.org [Sat, 25 Sep 2021 09:40:33 +0000 (09:40 +0000)] 
upstream: RSA/SHA-1 is not used by default anymore

OK dtucker deraadt djm

OpenBSD-Commit-ID: 055c51a221c3f099dd75c95362f902da1b8678c6

4 years agoMove the fgrep replacement to hostkey-rotate.sh.
Darren Tucker [Fri, 24 Sep 2021 01:08:03 +0000 (11:08 +1000)] 
Move the fgrep replacement to hostkey-rotate.sh.

The fgrep replacement for buggy greps doesn't work in the sftp-glob test
so move it to just where we know it's needed.

4 years agoReplacement function for buggy fgrep.
Darren Tucker [Thu, 23 Sep 2021 22:04:14 +0000 (08:04 +1000)] 
Replacement function for buggy fgrep.

GNU (f)grep <=2.18, as shipped by FreeBSD<=12 and NetBSD<=9 will
occasionally fail to find ssh host keys in the hostkey-rotate test.
If we have those versions, use awk instead.

4 years agoDon't prompt for yes/no questions.
David Manouchehri [Thu, 23 Sep 2021 21:03:18 +0000 (17:03 -0400)] 
Don't prompt for yes/no questions.

4 years agoupstream: fix missing -s in SYNOPSYS and usage() as well as a
djm@openbsd.org [Mon, 20 Sep 2021 06:53:56 +0000 (06:53 +0000)] 
upstream: fix missing -s in SYNOPSYS and usage() as well as a

capitalisation mistake; spotted by jmc@

OpenBSD-Commit-ID: 0ed8ee085c7503c60578941d8b45f3a61d4c9710

4 years agoupstream: Fix "Allocated port" debug message
dtucker@openbsd.org [Mon, 20 Sep 2021 04:02:13 +0000 (04:02 +0000)] 
upstream: Fix "Allocated port" debug message

for unix domain sockets. From peder.stray at gmail.com via github PR#272,
ok deraadt@

OpenBSD-Commit-ID: 8d5ef3fbdcdd29ebb0792b5022a4942db03f017e

4 years agoupstream: Switch scp back to use the old protocol by default, ahead of
djm@openbsd.org [Mon, 20 Sep 2021 01:55:42 +0000 (01:55 +0000)] 
upstream: Switch scp back to use the old protocol by default, ahead of

release. We'll wait a little longer for people to pick up sftp-server(8) that
supports the extension that scp needs for ~user paths to continue working in
SFTP protocol mode. Discussed with deraadt@

OpenBSD-Commit-ID: f281f603a705fba317ff076e7b11bcf2df941871

4 years agoupstream: better error message for ~user failures when the
djm@openbsd.org [Sat, 18 Sep 2021 02:03:25 +0000 (02:03 +0000)] 
upstream: better error message for ~user failures when the

sftp-server lacks the expand-path extension; ok deraadt@

OpenBSD-Commit-ID: 9c1d965d389411f7e86f0a445158bf09b8f9e4bc

4 years agoupstream: make some more scp-in-SFTP mode better match Unix idioms
djm@openbsd.org [Thu, 16 Sep 2021 15:22:22 +0000 (15:22 +0000)] 
upstream: make some more scp-in-SFTP mode better match Unix idioms

suggested by deraadt@

OpenBSD-Commit-ID: 0f2439404ed4cf0b0be8bf49a1ee734836e1ac87

4 years agoupstream: allow log_stderr==2 to prefix log messages with argv[0]
djm@openbsd.org [Thu, 16 Sep 2021 15:11:19 +0000 (15:11 +0000)] 
upstream: allow log_stderr==2 to prefix log messages with argv[0]

use this to make scp's SFTP mode error messages more scp-like

prompted by and ok deraadt@

OpenBSD-Commit-ID: 0e821dbde423fc2280e47414bdc22aaa5b4e0733

4 years agoTest against LibreSSL 3.2.6, 3.3.4, 3.4.0.
Darren Tucker [Fri, 17 Sep 2021 03:03:31 +0000 (13:03 +1000)] 
Test against LibreSSL 3.2.6, 3.3.4, 3.4.0.

4 years agoupstream: missing space character in ssh -G output broke the
djm@openbsd.org [Thu, 16 Sep 2021 05:36:03 +0000 (05:36 +0000)] 
upstream: missing space character in ssh -G output broke the

t-sshcfgparse regression test; spotted by anton@

OpenBSD-Commit-ID: bcc36fae2f233caac4baa8e58482da4aa350eed0

4 years agoupstream: allow CanonicalizePermittedCNAMEs=none in ssh_config; ok
djm@openbsd.org [Wed, 15 Sep 2021 06:56:01 +0000 (06:56 +0000)] 
upstream: allow CanonicalizePermittedCNAMEs=none in ssh_config; ok

markus@

OpenBSD-Commit-ID: 668a82ba8e56d731b26ffc5703213bfe071df623

4 years agoupstream: put back the mux_ctx memleak fix for SSH_CHANNEL_MUX_CLIENT
mbuhl@openbsd.org [Tue, 14 Sep 2021 11:04:21 +0000 (11:04 +0000)] 
upstream: put back the mux_ctx memleak fix for SSH_CHANNEL_MUX_CLIENT

OK mfriedl@

OpenBSD-Commit-ID: 1aba1da828956cacaadb81a637338734697d9798

4 years agoupstream: Do not ignore SIGINT while waiting for input if editline(3)
schwarze@openbsd.org [Sat, 11 Sep 2021 09:05:50 +0000 (09:05 +0000)] 
upstream: Do not ignore SIGINT while waiting for input if editline(3)

is not used. Instead, in non-interactive mode, exit sftp(1), like for other
serious errors. As pointed out by dtucker@, when compiled without editline(3)
support in portable OpenSSH, the el == NULL branch is also used for
interactive mode. In that case, discard the input line and provide a fresh
prompt to the user just like in the case where editline(3) is used. OK djm@

OpenBSD-Commit-ID: 7d06f4d3ebba62115527fafacf38370d09dfb393

4 years agoupstream: when using SFTP protocol, continue transferring files after a
djm@openbsd.org [Sat, 11 Sep 2021 00:40:24 +0000 (00:40 +0000)] 
upstream: when using SFTP protocol, continue transferring files after a

transfer error occurs. This matches original scp/rcp behaviour. ok dtucker@

OpenBSD-Commit-ID: dfe4558d71dd09707e9b5d6e7d2e53b793da69fa

4 years agoupstream: Document that non-interactive commands are run via the user's
dtucker@openbsd.org [Fri, 10 Sep 2021 11:38:38 +0000 (11:38 +0000)] 
upstream: Document that non-interactive commands are run via the user's

shell using the -c flag.  ok jmc@

OpenBSD-Commit-ID: 4f0d912077732eead10423afd1acf4fc0ceec477

4 years agoupstream: Document behaviour of arguments following non-interactive
dtucker@openbsd.org [Fri, 10 Sep 2021 10:26:02 +0000 (10:26 +0000)] 
upstream: Document behaviour of arguments following non-interactive

commands. Prompted by github PR#139 from EvanTheB, feedback & ok djm@ jmc@

OpenBSD-Commit-ID: fc758d1fe0471dfab4304fcad6cd4ecc3d79162a

4 years agoupstream: Clarify which file's attributes -p preserves, and that
dtucker@openbsd.org [Fri, 10 Sep 2021 07:11:11 +0000 (07:11 +0000)] 
upstream: Clarify which file's attributes -p preserves, and that

it's specifically the file mode bits. bz#3340 from calestyo at scientia.net,
ok djm@ jmc@

OpenBSD-Commit-ID: f09e6098ed1c4be00c730873049825f8ee7cb884

4 years agoupstream: openssh-7.4 was incorrectly listed twice; spotted by
djm@openbsd.org [Fri, 10 Sep 2021 05:46:09 +0000 (05:46 +0000)] 
upstream: openssh-7.4 was incorrectly listed twice; spotted by

Dmitry Belyavskiy, ok dtucker@

OpenBSD-Commit-ID: 4b823ae448f6e899927ce7b04225ac9e489f58ef

4 years agoupstream: - move CAVEATS to its correct order - use the term
jmc@openbsd.org [Thu, 9 Sep 2021 06:17:39 +0000 (06:17 +0000)] 
upstream: - move CAVEATS to its correct order - use the term

"legacy" protocol rather than "original", as the latter made the text
misleading - uppercase SCP

ok djm

OpenBSD-Commit-ID: 8479255746d5fa76a358ee59e7340fecf4245ff0

4 years agoDisable tracing on FreeBSD using procctl.
David Carlier [Wed, 8 Sep 2021 18:49:54 +0000 (19:49 +0100)] 
Disable tracing on FreeBSD using procctl.

Placed at the start of platform_disable_tracing() to prevent declaration
after code errors from strict C89 compilers (in the unlikely event that
more than one method is enabled).

4 years agoupstream: Use the SFTP protocol by default. The original scp/rcp
djm@openbsd.org [Wed, 8 Sep 2021 23:31:39 +0000 (23:31 +0000)] 
upstream: Use the SFTP protocol by default. The original scp/rcp

protocol remains available via the -O flag.

Note that ~user/ prefixed paths in SFTP mode require a protocol extension
that was first shipped in OpenSSH 8.7.

ok deraadt, after baking in snaps for a while without incident

OpenBSD-Commit-ID: 23588976e28c281ff5988da0848cb821fec9213c

4 years agoReally fix test on OpenSSL 1.1.1 stable.
Darren Tucker [Wed, 8 Sep 2021 11:09:49 +0000 (21:09 +1000)] 
Really fix test on OpenSSL 1.1.1 stable.

4 years agoCorrect OpenSSL 1.1.1 stable identifier.
Darren Tucker [Wed, 8 Sep 2021 08:51:39 +0000 (18:51 +1000)] 
Correct OpenSSL 1.1.1 stable identifier.

4 years agoIncrement nfds when coming from startup_pipe.
Darren Tucker [Wed, 8 Sep 2021 08:39:44 +0000 (18:39 +1000)] 
Increment nfds when coming from startup_pipe.

If we have to increase nfds because startup_pipe[0] is above any of the
descriptors passed in the fd_sets, we also need to add 1 to nfds since
select takes highest FD number plus one.  bz#3345 from yaroslav.kuzmin
at vmssoftware.com.

4 years agoTests for OpenSSL 3.0.0 release & 1.1.1 branch.
Darren Tucker [Wed, 8 Sep 2021 03:45:10 +0000 (13:45 +1000)] 
Tests for OpenSSL 3.0.0 release & 1.1.1 branch.

4 years agoupstream: correct my mistake in previous fix; spotted by halex
djm@openbsd.org [Wed, 8 Sep 2021 03:23:44 +0000 (03:23 +0000)] 
upstream: correct my mistake in previous fix; spotted by halex

OpenBSD-Commit-ID: 3cc62d92e3f70006bf02468fc146bfc36fffa183

4 years agoupstream: avoid NULL deref in -Y find-principals. Report and fix
djm@openbsd.org [Tue, 7 Sep 2021 06:03:51 +0000 (06:03 +0000)] 
upstream: avoid NULL deref in -Y find-principals. Report and fix

from Carlo Marcelo Arenas Belón
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

OpenBSD-Commit-ID: 6238486f8ecc888d6ccafcd9ad99e621bb41f1e0

4 years agoupstream: revision 1.381 neglected to remove
millert@openbsd.org [Mon, 6 Sep 2021 00:36:01 +0000 (00:36 +0000)] 
upstream: revision 1.381 neglected to remove

sChallengeResponseAuthentication from the enum.  Noticed by
christos@zoulas.com.  OK dtucker@

OpenBSD-Commit-ID: b533283a4dd6d04a867da411a4c7a8fbc90e34ff

4 years agoCorrect version_num for OpenSSL dev branch.
Darren Tucker [Sun, 5 Sep 2021 10:45:42 +0000 (20:45 +1000)] 
Correct version_num for OpenSSL dev branch.

4 years agoTest against OpenSSL 3 branch as well as dev.
Darren Tucker [Sun, 5 Sep 2021 09:37:39 +0000 (19:37 +1000)] 
Test against OpenSSL 3 branch as well as dev.

Now that OpenSSL development has moved to 3.1, test against the most
recent version of the openssl-3.0 branch too.

4 years agoOpenSSL development is now 3.1.*
Darren Tucker [Sun, 5 Sep 2021 09:33:22 +0000 (19:33 +1000)] 
OpenSSL development is now 3.1.*

4 years agoupstream: Use .Cm instead of .Dq in StrictHostKeyChecking list for
dtucker@openbsd.org [Fri, 3 Sep 2021 07:43:23 +0000 (07:43 +0000)] 
upstream: Use .Cm instead of .Dq in StrictHostKeyChecking list for

consistency. Patch from scop via github PR#257, ok jmc@

OpenBSD-Commit-ID: 3652a91564570779431802c31224fb4a9cf39872

4 years agoupstream: Mention using ssh -i for specifying the public key file
dtucker@openbsd.org [Fri, 3 Sep 2021 07:27:03 +0000 (07:27 +0000)] 
upstream: Mention using ssh -i for specifying the public key file

in the case where the private key is loaded into ssh-agent but is not present
locally.  Based on patch from rafork via github PR#215, ok jmc@

OpenBSD-Commit-ID: 2282e83b0ff78d2efbe705883b67240745fa5bb2

4 years agoupstream: Refer to KEX "algorithms" instead of "methods" to match
dtucker@openbsd.org [Fri, 3 Sep 2021 05:25:50 +0000 (05:25 +0000)] 
upstream: Refer to KEX "algorithms" instead of "methods" to match

other references and improve consistency.  Patch from scop via github PR#241,
ok djm@

OpenBSD-Commit-ID: 840bc94ff6861b28d8603c8e8c16499bfb65e32c

4 years agoupstream: Remove redundant attrib_clear in upload_dir_internal.
dtucker@openbsd.org [Fri, 3 Sep 2021 05:12:25 +0000 (05:12 +0000)] 
upstream: Remove redundant attrib_clear in upload_dir_internal.

The subsequent call to stat_to_attrib clears the struct as its first step
anyway. From pmeinhardt via github PR#220, ok djm@

OpenBSD-Commit-ID: f5234fc6d7425b607e179acb3383f21716f3029e

4 years agoupstream: Add test for client termination status on signal.
dtucker@openbsd.org [Fri, 3 Sep 2021 04:11:13 +0000 (04:11 +0000)] 
upstream: Add test for client termination status on signal.

Based on patch from Alexxz via github PR#235 with some tweaks, to
match patch in bz#3281.

OpenBSD-Regress-ID: d87c7446fb8b5f8b45894fbbd6875df326e729e2

4 years agoupstream: sys/param.h is not needed for any visible reason
deraadt@openbsd.org [Thu, 2 Sep 2021 21:03:54 +0000 (21:03 +0000)] 
upstream: sys/param.h is not needed for any visible reason

OpenBSD-Commit-ID: 8bdea2d0c75692e4c5777670ac039d4b01c1f368

4 years agoFix memory leak in error path.
Shchelkunov Artem [Wed, 11 Aug 2021 13:07:58 +0000 (18:07 +0500)] 
Fix memory leak in error path.

*info is allocated via xstrdup but was leaked in the PAM_AUTH_ERR path.
From github PR#266.

4 years agoupstream: Fix ssh-rsa fallback for old PuTTY interop tests.
dtucker@openbsd.org [Wed, 1 Sep 2021 03:16:06 +0000 (03:16 +0000)] 
upstream: Fix ssh-rsa fallback for old PuTTY interop tests.

OpenBSD-Regress-ID: a19ac929da604843a5b5f0f48d2c0eb6e0773d37

4 years agoupstream: Add a function to skip remaining tests.
dtucker@openbsd.org [Wed, 1 Sep 2021 00:50:27 +0000 (00:50 +0000)] 
upstream: Add a function to skip remaining tests.

Many tests skip tests for various reasons but not in a consistent way and
don't always clean up, so add that and switch the tests that do that over.

OpenBSD-Regress-ID: 72d2ec90a3ee8849486956a808811734281af735

4 years agoupstream: Specify path to PuTTY keys.
dtucker@openbsd.org [Tue, 31 Aug 2021 07:13:59 +0000 (07:13 +0000)] 
upstream: Specify path to PuTTY keys.

Portable needs this and it makes no difference on OpenBSD, so resync
them.  (Id sync only, Portable already had this.)

OpenBSD-Regress-ID: 33f6f66744455886d148527af8368811e4264162

4 years agoupstream: Better compat tests with old PuTTY.
dtucker@openbsd.org [Tue, 31 Aug 2021 06:13:23 +0000 (06:13 +0000)] 
upstream: Better compat tests with old PuTTY.

When running PuTTY interop tests and using a PuTTY version older than
0.76, re-enable the ssh-rsa host key algorithm (the 256 and 512 variants
of RSA were added some time between 0.73 and 0.76).

OpenBSD-Regress-ID: e6138d6987aa705fa1e4f216db0bb386e1ff38e1

4 years agoResync PuTTY interop tests.
Darren Tucker [Tue, 31 Aug 2021 07:04:50 +0000 (17:04 +1000)] 
Resync PuTTY interop tests.

Resync behaviour when REGRESS_INTEROP_PUTTY is not set with OpenBSD.

4 years agoupstream: Specify hostkeyalgorithms in SSHFP test.
dtucker@openbsd.org [Tue, 31 Aug 2021 01:25:27 +0000 (01:25 +0000)] 
upstream: Specify hostkeyalgorithms in SSHFP test.

Specify host key algorithms in sshd's default set for the SSHFP test,
from djm@.  Make the reason for when the test is skipped a bit clearer.

OpenBSD-Regress-ID: 4f923dfc761480d5411de17ea6f0b30de3e32cea

4 years agoupstream: adapt to RSA/SHA1 deprectation
djm@openbsd.org [Mon, 30 Aug 2021 01:15:45 +0000 (01:15 +0000)] 
upstream: adapt to RSA/SHA1 deprectation

OpenBSD-Regress-ID: 952397c39a22722880e4de9d1c50bb1a14f907bb

4 years agoupstream: After years of forewarning, disable the RSA/SHA-1
djm@openbsd.org [Sun, 29 Aug 2021 23:53:10 +0000 (23:53 +0000)] 
upstream: After years of forewarning, disable the RSA/SHA-1

signature algorithm by default. It is feasible to create colliding SHA1
hashes, so we need to deprecate its use.

RSA/SHA-256/512 remains available and will be transparently selected
instead of RSA/SHA1 for most SSH servers released in the last five+
years. There is no need to regenerate RSA keys.

The use of RSA/SHA1 can be re-enabled by adding "ssh-rsa" to the
PubkeyAcceptedAlgorithms directives on the client and server.

ok dtucker deraadt

OpenBSD-Commit-ID: 189bcc4789c7254e09e23734bdd5def8354ff1d5

4 years agoupstream: wrap at 80 columns
djm@openbsd.org [Sun, 29 Aug 2021 23:44:07 +0000 (23:44 +0000)] 
upstream: wrap at 80 columns

OpenBSD-Commit-ID: 47ca2286d6b52a9747f34da16d742879e1a37bf0

4 years agoReplace shell function with ssh-keygen -A.
Darren Tucker [Fri, 20 Aug 2021 08:14:13 +0000 (18:14 +1000)] 
Replace shell function with ssh-keygen -A.

Prevents the init script in the SysV package from trying (and failing)
to generate unsupported key types.  Remove now-unused COMMENT_OUT_ECC.
ok tim@

4 years agoRemove obsolete Redhat PAM config and init script.
Darren Tucker [Fri, 20 Aug 2021 05:39:05 +0000 (15:39 +1000)] 
Remove obsolete Redhat PAM config and init script.

4 years agodepend V_8_7_P1
Damien Miller [Fri, 20 Aug 2021 04:03:49 +0000 (14:03 +1000)] 
depend

4 years agoupdate version numbers
Damien Miller [Fri, 20 Aug 2021 03:59:43 +0000 (13:59 +1000)] 
update version numbers

4 years agoupstream: openssh-8.7
djm@openbsd.org [Fri, 20 Aug 2021 03:22:55 +0000 (03:22 +0000)] 
upstream: openssh-8.7

OpenBSD-Commit-ID: 8769dff0fd76ae3193d77bf83b439adee0f300cd

4 years agoAlso check pid in pselect_notify_setup.
Darren Tucker [Fri, 20 Aug 2021 00:48:13 +0000 (10:48 +1000)] 
Also check pid in pselect_notify_setup.

Spotted by djm@.

4 years agoPrefix pselect functions to clarify debug messages
Darren Tucker [Thu, 19 Aug 2021 22:39:33 +0000 (08:39 +1000)] 
Prefix pselect functions to clarify debug messages

4 years agoFix race in pselect replacement code.
Darren Tucker [Thu, 19 Aug 2021 22:30:42 +0000 (08:30 +1000)] 
Fix race in pselect replacement code.

On the second and subsequent calls to pselect the notify_pipe was not
added to the select readset, opening up a race that om G. Christensen
discovered on multiprocessor Solaris <=9 systems.

Also reinitialize notify_pipe if the pid changes.  This will prevent a
parent and child from using the same FD, although this is not an issue
in the current structure it might be in future.

4 years agoCheck compiler for c99 declarations after code.
Darren Tucker [Wed, 18 Aug 2021 02:51:30 +0000 (12:51 +1000)] 
Check compiler for c99 declarations after code.

The sntrup761 reference code contains c99-style declarations after code
so don't try to build that if the compiler doesn't support it.

4 years agoRemove trailing backslash on regress-unit-binaries
Darren Tucker [Tue, 17 Aug 2021 05:12:04 +0000 (15:12 +1000)] 
Remove trailing backslash on regress-unit-binaries

4 years agoPut stdint.h inside HAVE_STDINT_H.
Darren Tucker [Mon, 16 Aug 2021 21:59:27 +0000 (07:59 +1000)] 
Put stdint.h inside HAVE_STDINT_H.

From Tom G. Christensen.

4 years agoImprove github test driver script.
Darren Tucker [Mon, 16 Aug 2021 04:13:02 +0000 (14:13 +1000)] 
Improve github test driver script.

 - use a trap to always output any failed regress logs (since the script
   sets -e, the existing log output is never invoked).
 - pass LTESTS and SKIP_LTESTS when re-running with sshd options (eg.
   UsePAM).

4 years agoRemove deprecated ubuntu-16.04 test targets.
Darren Tucker [Mon, 16 Aug 2021 01:32:23 +0000 (11:32 +1000)] 
Remove deprecated ubuntu-16.04 test targets.

Github has deprecated ubuntu-16.04 and it will be removed on 20
September.