]>
git.ipfire.org Git - thirdparty/openssh-portable.git/log
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.
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
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
Damien Miller [Fri, 20 Aug 2021 04:03:49 +0000 (14:03 +1000)]
depend
Damien Miller [Fri, 20 Aug 2021 03:59:43 +0000 (13:59 +1000)]
update version numbers
djm@openbsd.org [Fri, 20 Aug 2021 03:22:55 +0000 (03:22 +0000)]
upstream: openssh-8.7
OpenBSD-Commit-ID:
8769dff0fd76ae3193d77bf83b439adee0f300cd
Darren Tucker [Fri, 20 Aug 2021 00:48:13 +0000 (10:48 +1000)]
Also check pid in pselect_notify_setup.
Spotted by djm@.
Darren Tucker [Thu, 19 Aug 2021 22:39:33 +0000 (08:39 +1000)]
Prefix pselect functions to clarify debug messages
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.
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.
Darren Tucker [Tue, 17 Aug 2021 05:12:04 +0000 (15:12 +1000)]
Remove trailing backslash on regress-unit-binaries
Darren Tucker [Mon, 16 Aug 2021 21:59:27 +0000 (07:59 +1000)]
Put stdint.h inside HAVE_STDINT_H.
From Tom G. Christensen.
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).
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.
Darren Tucker [Sun, 15 Aug 2021 13:25:26 +0000 (23:25 +1000)]
Skip agent ptrace test on hurd.
Darren Tucker [Sun, 15 Aug 2021 09:37:22 +0000 (19:37 +1000)]
Add hurd test target.
Darren Tucker [Sun, 15 Aug 2021 02:45:10 +0000 (12:45 +1000)]
Skip scp3 tests on all dfly58 and 60 configs.
Tim Rice [Sat, 14 Aug 2021 20:08:07 +0000 (13:08 -0700)]
openbsd-compat/openbsd-compat.h: put bsd-signal.h before bsd-misc.h
to get sigset_t from signal.h needed for the pselect replacement.
Darren Tucker [Fri, 13 Aug 2021 03:21:00 +0000 (13:21 +1000)]
Test OpenSSH from OpenBSD head on 6.8 and 6.9.
Darren Tucker [Fri, 13 Aug 2021 03:00:14 +0000 (13:00 +1000)]
Skip scp3 test on dragonfly 58 and 60.
The tests hang, so skip until we figure them out.
djm@openbsd.org [Thu, 12 Aug 2021 23:59:25 +0000 (23:59 +0000)]
upstream: mention that CASignatureAlgorithms accepts +/- similarly to
the other algorithm list directives; ok jmc bz#3335
OpenBSD-Commit-ID:
0d46b53995817052c78e2dce9dbd133963b073d9
schwarze@openbsd.org [Thu, 12 Aug 2021 09:59:00 +0000 (09:59 +0000)]
upstream: In the editline(3) branch of the sftp(1) event loop,
handle SIGINT rather than ignoring it, such that the user can use Ctrl-C to
discard the currently edited command line and get a fresh prompt, just like
in ftp(1), bc(1), and in shells.
It is critical to not use ssl_signal() for this particular case
because that function unconditionally sets SA_RESTART, but here we
need the signal to interrupt the read(2) in the el_gets(3) event loop.
OK dtucker@ deraadt@
OpenBSD-Commit-ID:
8025115a773f52e9bb562eaab37ea2e021cc7299
naddy@openbsd.org [Wed, 11 Aug 2021 14:07:54 +0000 (14:07 +0000)]
upstream: scp: tweak man page and error message for -3 by default
Now that the -3 option is enabled by default, flip the documentation
and error message logic from "requires -3" to "blocked by -R".
ok djm@
OpenBSD-Commit-ID:
a872592118444fb3acda5267b2a8c3d4c4252020
naddy@openbsd.org [Wed, 11 Aug 2021 14:05:19 +0000 (14:05 +0000)]
upstream: scp: do not spawn ssh with two -s flags for
remote-to-remote copies
Do not add another "-s" to the argument vector every time an SFTP
connection is initiated. Instead, introduce a subsystem flag to
do_cmd() and add "-s" when the flag is set.
ok djm@
OpenBSD-Commit-ID:
25df69759f323661d31b2e1e790faa22e27966c1
djm@openbsd.org [Wed, 11 Aug 2021 08:55:04 +0000 (08:55 +0000)]
upstream: test -Oprint-pubkey
OpenBSD-Regress-ID:
3d51afb6d1f287975fb6fddd7a2c00a3bc5094e0
djm@openbsd.org [Wed, 11 Aug 2021 08:54:17 +0000 (08:54 +0000)]
upstream: when verifying sshsig signatures, support an option
(-Oprint-pubkey) to dump the full public key to stdout; based on patch from
Fabian Stelzer; ok markus@
OpenBSD-Commit-ID:
0598000e5b9adfb45d42afa76ff80daaa12fc3e2
djm@openbsd.org [Wed, 11 Aug 2021 05:21:32 +0000 (05:21 +0000)]
upstream: oops, missed one more %p
OpenBSD-Commit-ID:
e7e62818d1564cc5cd9086eaf7a51cbd1a9701eb
djm@openbsd.org [Wed, 11 Aug 2021 05:20:17 +0000 (05:20 +0000)]
upstream: remove a bunch of %p in format strings; leftovers of
debuggings past. prompted by Michael Forney, ok dtucker@
OpenBSD-Commit-ID:
4853a0d6c9cecaba9ecfcc19066e52d3a8dcb2ac
Darren Tucker [Tue, 10 Aug 2021 23:21:09 +0000 (09:21 +1000)]
Add includes.h to compat tests.
On platforms where closefrom returns void (eg glibc>=2.34) the prototype
for closefrom in its compat tests would cause compile errors. Remove
this and have the tests pull in the compat headers in the same way as
the main code. bz#3336.
djm@openbsd.org [Tue, 10 Aug 2021 03:35:45 +0000 (03:35 +0000)]
upstream: adapt to scp -M flag change; make scp3.sh test SFTP mode too
OpenBSD-Regress-ID:
43fea26704a0f0b962b53c1fabcb68179638f9c0
djm@openbsd.org [Tue, 10 Aug 2021 03:33:34 +0000 (03:33 +0000)]
upstream: Prepare for a future where scp(1) uses the SFTP protocol by
default. Replace recently added -M option to select the protocol with -O
(olde) and -s (SFTP) flags, and label the -s flag with a clear warning that
it will be removed in the near future (so no, don't use it in scripts!).
prompted by/feedback from deraadt@
OpenBSD-Commit-ID:
92ad72cc6f0023c9be9e316d8b30eb6d8d749cfc
djm@openbsd.org [Mon, 9 Aug 2021 23:56:36 +0000 (23:56 +0000)]
upstream: make scp -3 the default for remote-to-remote copies. It
provides a much better and more intuitive user experience and doesn't require
exposing credentials to the source host.
thanks naddy@ for catching the missing argument in usage()
"Yes please!" - markus@
"makes a lot of sense" - deraadt@
"the right thing to do" - dtucker@
OpenBSD-Commit-ID:
d0d2af5f0965c5192ba5b2fa461c9f9b130e5dd9
djm@openbsd.org [Mon, 9 Aug 2021 23:49:31 +0000 (23:49 +0000)]
upstream: make scp in SFTP mode try to use relative paths as much
as possible. Previosuly, it would try to make relative and ~/-rooted paths
absolute before requesting transfers.
prompted by and much discussion deraadt@
ok markus@
OpenBSD-Commit-ID:
46639d382ea99546a4914b545fa7b00fa1be5566
djm@openbsd.org [Mon, 9 Aug 2021 23:47:44 +0000 (23:47 +0000)]
upstream: SFTP protocol extension to allow the server to expand
~-prefixed paths, in particular ~user ones. Allows scp in sftp mode to accept
these paths, like scp in rcp mode does.
prompted by and much discussion deraadt@
ok markus@
OpenBSD-Commit-ID:
7d794def9e4de348e1e777f6030fc9bafdfff392
djm@openbsd.org [Mon, 9 Aug 2021 23:44:32 +0000 (23:44 +0000)]
upstream: when scp is in SFTP mode, try to deal better with ~
prefixed paths. ~user paths aren't supported, but ~/ paths will be accepted
and prefixed with the SFTP server starting directory (more to come)
prompted by and discussed with deraadt@
ok markus@
OpenBSD-Commit-ID:
263a071f14555c045fd03132a8fb6cbd983df00d
djm@openbsd.org [Mon, 9 Aug 2021 07:21:01 +0000 (07:21 +0000)]
upstream: on fatal errors, make scp wait for ssh connection before
exiting avoids LogLevel=verbose (or greater) messages from ssh appearing
after scp has returned exited and control has returned to the shell; ok
markus@
(this was originally committed as r1.223 along with unrelated stuff that
I rolled back in r1.224)
OpenBSD-Commit-ID:
1261fd667ad918484889ed3d7aec074f3956a74b
djm@openbsd.org [Mon, 9 Aug 2021 07:19:12 +0000 (07:19 +0000)]
upstream: rever r1.223 - I accidentally committed unrelated changes
OpenBSD-Commit-ID:
fb73f3865b2647a27dd94db73d6589506a9625f9
djm@openbsd.org [Mon, 9 Aug 2021 07:16:09 +0000 (07:16 +0000)]
upstream: show only the final path component in the progress meter;
more useful with long paths (that may truncate) and better matches
traditional scp behaviour; spotted by naddy@ ok deraadt@
OpenBSD-Commit-ID:
26b544d0074f03ebb8a3ebce42317d8d7ee291a3
djm@openbsd.org [Mon, 9 Aug 2021 07:13:54 +0000 (07:13 +0000)]
upstream: on fatal errors, make scp wait for ssh connection before
exiting avoids LogLevel=verbose (or greater) messages from ssh appearing
after scp has returned exited and control has returned to the shell; ok
markus@
OpenBSD-Commit-ID:
ef9dab5ef5ae54a6a4c3b15d380568e94263456c
dtucker@openbsd.org [Sun, 8 Aug 2021 08:49:09 +0000 (08:49 +0000)]
upstream: xstrdup environment variable used by ForwardAgent. bz#3328
from goetze at dovetail.com, ok djm@ deraadt@
OpenBSD-Commit-ID:
760320dac1c3b26904284ba417a7d63fccc5e742
dtucker@openbsd.org [Sun, 8 Aug 2021 08:27:28 +0000 (08:27 +0000)]
upstream: Although it's POSIX, not all shells used in Portable support
the implicit 'in "$@"' after 'for i'.
OpenBSD-Regress-ID:
3c9aec6bca4868f85d2742b6ba5223fce110bdbc
Darren Tucker [Sun, 8 Aug 2021 07:39:56 +0000 (17:39 +1000)]
Move portable specific settings down.
This brings the top hunk of the file back in sync with OpenBSD
so patches to the CVS Id should apply instead of always being
rejected.
dtucker@openbsd.org [Sun, 8 Aug 2021 07:27:52 +0000 (07:27 +0000)]
upstream: Move setting of USER further down the startup In portable
we have to change this and having it in the same hunk as the CVS Id string
means applying changes fails every. single. time.
OpenBSD-Regress-ID:
87cd603eb6db58c9b430bf90adacb7f90864429b
dtucker@openbsd.org [Sun, 8 Aug 2021 06:38:33 +0000 (06:38 +0000)]
upstream: Drop -q in ssh-log-wrapper.sh to preserve logs.
scp and sftp like to add -q to the command line passed to ssh which
overrides the LogLevel we set in the config files and suppresses output
to the debug logs so drop any "-q" from the invoked ssh. In the one
case where we actually want to use -q in the banner test, call the ssh
binary directly bypassing the logging wrapper.
OpenBSD-Regress-ID:
e2c97d3c964bda33a751374c56f65cdb29755b75
dtucker@openbsd.org [Sat, 7 Aug 2021 01:57:08 +0000 (01:57 +0000)]
upstream: Fix prototype mismatch for do_cmd. ok djm@
OpenBSD-Commit-ID:
1c1598bb5237a7ae0be99152f185e0071163714d
djm@openbsd.org [Sat, 7 Aug 2021 01:55:01 +0000 (01:55 +0000)]
upstream: sftp-client.c needs poll.h
remove unused variable
OpenBSD-Commit-ID:
233ac6c012cd23af62f237167a661db391055a16
Darren Tucker [Sat, 7 Aug 2021 01:30:57 +0000 (11:30 +1000)]
Include poll.h and friends for struct pollfd.
djm@openbsd.org [Sat, 7 Aug 2021 00:14:17 +0000 (00:14 +0000)]
upstream: do_upload() used a near-identical structure for
tracking expected status replies from the server to what do_download() was
using.
Refactor it to use the same structure and factor out some common
code into helper functions.
OpenBSD-Commit-ID:
0c167df8ab6df4a5292c32421922b0cf379e9054
djm@openbsd.org [Sat, 7 Aug 2021 00:12:09 +0000 (00:12 +0000)]
upstream: make scp(1) in SFTP mode follow symlinks like
traditional scp(1) ok markus@
OpenBSD-Commit-ID:
97255e55be37e8e26605e4ba1e69f9781765d231
djm@openbsd.org [Sat, 7 Aug 2021 00:10:49 +0000 (00:10 +0000)]
upstream: fix incorrect directory permissions on scp -3
transfers; ok markus@
OpenBSD-Commit-ID:
64b2abaa5635a2be65ee2e77688ad9bcebf576c2
djm@openbsd.org [Sat, 7 Aug 2021 00:09:57 +0000 (00:09 +0000)]
upstream: a bit more debugging of file attributes being
sent/received over the wire
OpenBSD-Commit-ID:
f68c4e207b08ef95200a8b2de499d422808e089b
djm@openbsd.org [Sat, 7 Aug 2021 00:08:52 +0000 (00:08 +0000)]
upstream: make scp(1) in SFTP mode output better match original
scp(1) by suppressing "Retrieving [path]" lines that were emitted to support
the interactive sftp(1) client. ok markus@
OpenBSD-Commit-ID:
06be293df5f156a18f366079be2f33fa68001acc
djm@openbsd.org [Sat, 7 Aug 2021 00:07:18 +0000 (00:07 +0000)]
upstream: factor out a structure duplicated between downloading
and crossloading; ok markus@
OpenBSD-Commit-ID:
96eede24d520569232086a129febe342e4765d39
djm@openbsd.org [Sat, 7 Aug 2021 00:06:30 +0000 (00:06 +0000)]
upstream: use sftp_client crossloading to implement scp -3
feedback/ok markus@
OpenBSD-Commit-ID:
7db4c0086cfc12afc9cfb71d4c2fd3c7e9416ee9
djm@openbsd.org [Sat, 7 Aug 2021 00:02:41 +0000 (00:02 +0000)]
upstream: support for "cross"-loading files/directories, i.e.
downloading from one SFTP server while simultaneously uploading to another.
feedback & ok markus@
OpenBSD-Commit-ID:
3982878e29d8df0fa4ddc502f5ff6126ac714235
djm@openbsd.org [Sat, 7 Aug 2021 00:01:29 +0000 (00:01 +0000)]
upstream: factor our SSH2_FXP_OPEN calls into their own function;
"looks fine" markus@
OpenBSD-Commit-ID:
d3dea2153f08855c6d9dacc01973248944adeffb
djm@openbsd.org [Sat, 7 Aug 2021 00:00:33 +0000 (00:00 +0000)]
upstream: prepare for scp -3 implemented via sftp
OpenBSD-Commit-ID:
194aac0dd87cb175334b71c2a30623a5ad55bb44
dtucker@openbsd.org [Fri, 6 Aug 2021 09:00:18 +0000 (09:00 +0000)]
upstream: Make diff invocation more portable.
POSIX does not require diff to have -N, so compare in both directions
with just -r, which should catch missing files in either directory.
OpenBSD-Regress-ID:
0e2ec8594556a6f369ed5a0a90c6806419b845f7
djm@openbsd.org [Wed, 4 Aug 2021 21:28:00 +0000 (21:28 +0000)]
upstream: regression test for scp -3
OpenBSD-Regress-ID:
b44375d125c827754a1f722ec6b6b75b634de05d
dtucker@openbsd.org [Fri, 6 Aug 2021 05:04:42 +0000 (05:04 +0000)]
upstream: Document "ProxyJump none". bz#3334.
OpenBSD-Commit-ID:
f78cc6f55731f2cd35c3a41d5352ac1ee419eba7
dtucker@openbsd.org [Wed, 4 Aug 2021 01:34:55 +0000 (01:34 +0000)]
upstream: Allow for different (but POSIX compliant) behaviour of
basename(3) and prevent a use-after-free in that case in the new sftp-compat
code.
POSIX allows basename(3) to either return a pointer to static storage
or modify the passed string and return a pointer to that. OpenBSD does
the former and works as is, but on other platforms "filename" points
into "tmp" which was just freed. This makes the freeing of tmp
consistent with the other variable in the loop.
Pinpointed by the -portable Valgrind regress test. ok djm@ deraadt@
OpenBSD-Commit-ID:
750f3c19bd4440e4210e30dd5d7367386e833374
Damien Miller [Wed, 4 Aug 2021 01:05:11 +0000 (11:05 +1000)]
use openbsd-compat glob.h is required
Darren Tucker [Tue, 3 Aug 2021 11:03:23 +0000 (21:03 +1000)]
Missing space between macro arg and punctuation.
From jmc@
Darren Tucker [Tue, 3 Aug 2021 11:02:33 +0000 (21:02 +1000)]
Avoid lines >80 chars. From jmc@
djm@openbsd.org [Tue, 3 Aug 2021 01:05:24 +0000 (01:05 +0000)]
upstream: regression tests for scp SFTP protocol support; mostly by
Jakub Jelen in GHPR#194 ok markus
OpenBSD-Regress-ID:
36f1458525bcb111741ec8547eaf58b13cddc715
anton@openbsd.org [Thu, 29 Jul 2021 15:34:09 +0000 (15:34 +0000)]
upstream: Treat doas with arguments as a valid SUDO variable.
Allows one to specify SUDO="doas -n" which I do while running make regress.
ok dtucker@
OpenBSD-Regress-ID:
4fe5814b5010dbf0885500d703bea06048d11005
djm@openbsd.org [Mon, 2 Aug 2021 23:38:27 +0000 (23:38 +0000)]
upstream: support for using the SFTP protocol for file transfers in
scp, via a new "-M sftp" option. Marked as experimental for now.
Some corner-cases exist, in particular there is no attempt to
provide bug-compatibility with scp's weird "double shell" quoting
rules.
Mostly by Jakub Jelen in GHPR#194 with some tweaks by me. ok markus@
Thanks jmc@ for improving the scp.1 bits.
OpenBSD-Commit-ID:
6ce4c9157ff17b650ace571c9f7793d92874051c
jmc@openbsd.org [Fri, 30 Jul 2021 14:28:13 +0000 (14:28 +0000)]
upstream: fix a formatting error and add some Xr; from debian at
helgefjell de
removed references to rlogin etc. as no longer relevant;
suggested by djm
ok djm dtucker
OpenBSD-Commit-ID:
3c431c303068d3aec5bb18573a0bd5e0cd77c5ae
jmc@openbsd.org [Fri, 30 Jul 2021 14:25:01 +0000 (14:25 +0000)]
upstream: fix a formatting error and mark up known_hosts
consistently; issues reported by debian at helgefjell de
ok djm dtucker
OpenBSD-Commit-ID:
a1fd8d21dc77f507685443832df0c9700481b0ce
jmc@openbsd.org [Wed, 28 Jul 2021 05:57:42 +0000 (05:57 +0000)]
upstream: no need to talk about version 2 with the -Q option, so
rewrite the text to read better;
issue reported by debian at helgefjell de
ok djm dtucker
OpenBSD-Commit-ID:
59fe2e8219c37906740ad062e0fdaea487dbe9cf
jmc@openbsd.org [Tue, 27 Jul 2021 14:28:46 +0000 (14:28 +0000)]
upstream: word fix; reported by debian at helgefjell de
OpenBSD-Commit-ID:
0c6fd22142422a25343c5bd1a618f31618f41ece
jmc@openbsd.org [Tue, 27 Jul 2021 14:14:25 +0000 (14:14 +0000)]
upstream: standardise the grammar in the options list; issue
reported by debian at helgefjell de
ok dtucker djm
OpenBSD-Commit-ID:
7ac15575045d82f4b205a42cc7d5207fe4c3f8e6
Darren Tucker [Mon, 2 Aug 2021 08:56:29 +0000 (18:56 +1000)]
Check for RLIMIT_NOFILE before trying to use it.
Darren Tucker [Tue, 27 Jul 2021 07:45:34 +0000 (17:45 +1000)]
lastenv is only used in setenv.
Prevents an unused variable warning on platforms that have setenv but
not unsetenv.
Darren Tucker [Mon, 26 Jul 2021 02:45:30 +0000 (12:45 +1000)]
Move SUDO to "make test" command line.
Environment variables don't get passed by vmrun, so move to command
line.
Darren Tucker [Sun, 25 Jul 2021 13:26:36 +0000 (23:26 +1000)]
Set SUDO for tests and cleanup.
Darren Tucker [Sun, 25 Jul 2021 12:37:55 +0000 (22:37 +1000)]
Pass OPENSSL=no to make tests too.
dtucker@openbsd.org [Sun, 25 Jul 2021 12:27:37 +0000 (12:27 +0000)]
upstream: Skip unit and makefile-based key conversion tests when
we're building with OPENSSL=no.
OpenBSD-Regress-ID:
20455ed9a977c93f846059d1fcb48e29e2c8d732
dtucker@openbsd.org [Sun, 25 Jul 2021 12:13:03 +0000 (12:13 +0000)]
upstream: Replace OPENSSL as the variable that points to the
openssl binary with OPENSSL_BIN. This will allow us to use the OPENSSL
variable from mk.conf or the make(1) command line indicating if we're
building with our without OpenSSL, and ultimately get the regress tests
working in the OPENSSL=no configuration.
OpenBSD-Regress-ID:
2d788fade3264d7803e5b54cae8875963f688c4e
dtucker@openbsd.org [Sat, 24 Jul 2021 02:57:28 +0000 (02:57 +0000)]
upstream: Skip RFC4716 format import and export tests when built
without OpenSSL.
OpenBSD-Regress-ID:
d2c2d5d38c1acc2b88cc99cfe00a2eb8bb39dfa4
dtucker@openbsd.org [Sat, 24 Jul 2021 02:51:14 +0000 (02:51 +0000)]
upstream: Don't omit ssh-keygen -y from usage when built without
OpenSSL. It is actually available, albeit only for
ed25519 keys.
OpenBSD-Commit-ID:
7a254c33d0e6a55c30c6b016a8d298d3cb7a7674
dtucker@openbsd.org [Sat, 24 Jul 2021 02:08:13 +0000 (02:08 +0000)]
upstream: Exclude key conversion options from usage when built
without OpenSSL since those are not available, similar to what we currently
do with the moduli screening options. We can also use this to skip the
conversion regression tests in this case.
OpenBSD-Commit-ID:
3c82caa398cf99cd4518c23bba5a2fc66b16bafe
Darren Tucker [Sat, 24 Jul 2021 03:02:51 +0000 (13:02 +1000)]
Test OpenBSD upstream with and without OpenSSL.
djm@openbsd.org [Sat, 24 Jul 2021 01:54:23 +0000 (01:54 +0000)]
upstream: test for first-match-wins in authorized_keys environment=
options
OpenBSD-Regress-ID:
1517c90276fe84b5dc5821c59f88877fcc34c0e8
dtucker@openbsd.org [Fri, 23 Jul 2021 05:53:02 +0000 (05:53 +0000)]
upstream: Simplify keygen-convert by using $SSH_KEYTYPES directly.
OpenBSD-Regress-ID:
cdbe408ec3671ea9ee9b55651ee551370d2a4108
djm@openbsd.org [Sat, 24 Jul 2021 01:55:19 +0000 (01:55 +0000)]
upstream: don't leak environment= variable when it is not the first
match
OpenBSD-Commit-ID:
7fbdc3dfe0032deaf003fd937eeb4d434ee4efe0
jmc@openbsd.org [Fri, 23 Jul 2021 06:01:17 +0000 (06:01 +0000)]
upstream: punctuation;
OpenBSD-Commit-ID:
64be152e378c45975073ab1c07e0db7eddd15806
djm@openbsd.org [Fri, 23 Jul 2021 05:56:47 +0000 (05:56 +0000)]
upstream: mention in comment that read_passphrase(..., RP_ALLOW_STDIN)
will try to use askpass first. bz3314
convert a couple of debug() -> debug_f() while here
OpenBSD-Commit-ID:
c7e812aebc28fcc5db06d4710e0f73613dee545c
dtucker@openbsd.org [Fri, 23 Jul 2021 05:07:16 +0000 (05:07 +0000)]
upstream: Test conversion of
ed25519 and ecdsa keys too.
OpenBSD-Regress-ID:
3676d2d00e58e0d6d37f2878f108cc2b83bbe4bb
dtucker@openbsd.org [Fri, 23 Jul 2021 04:56:21 +0000 (04:56 +0000)]
upstream: Add test for exporting pubkey from a passphrase-protected
private key.
OpenBSD-Regress-ID:
da99d93e7b235fbd5b5aaa01efc411225e6ba8ac
djm@openbsd.org [Fri, 23 Jul 2021 03:54:55 +0000 (03:54 +0000)]
upstream: regression test for time-limited signature keys
OpenBSD-Regress-ID:
2a6f3bd900dbee0a3c96f1ff23e032c93ab392bc
djm@openbsd.org [Fri, 23 Jul 2021 05:24:02 +0000 (05:24 +0000)]
upstream: note successful authentication method in final "Authenticated
to ..." message and partial auth success messages (all at LogLevel=verbose)
ok dtucker@
OpenBSD-Commit-ID:
06834b89ceb89f8f16c5321d368a66c08f441984
djm@openbsd.org [Fri, 23 Jul 2021 04:04:52 +0000 (04:04 +0000)]
upstream: Add a ForkAfterAuthentication ssh_config(5) counterpart
to the ssh(1) -f flag. Last part of GHPR231 from Volker Diels-Grabsch. ok
dtucker
OpenBSD-Commit-ID:
b18aeda12efdebe2093d55263c90fe4ea0bce0d3
djm@openbsd.org [Fri, 23 Jul 2021 04:00:59 +0000 (04:00 +0000)]
upstream: Add a StdinNull directive to ssh_config(5) that allows
the config file to do the same thing as -n does on the ssh(1) commandline.
Patch from Volker Diels-Grabsch via GHPR231; ok dtucker
OpenBSD-Commit-ID:
66ddf3f15c76796d4dcd22ff464aed1edd62468e
djm@openbsd.org [Fri, 23 Jul 2021 03:57:20 +0000 (03:57 +0000)]
upstream: make authorized_keys environment="..." directives
first-match-wins and more strictly limit their maximum number; prompted by
OOM reported by OSS-fuzz (35470).
feedback and ok dtucker@
OpenBSD-Commit-ID:
01f63fc10dcd995e7aed9c378ad879161af83121
djm@openbsd.org [Fri, 23 Jul 2021 03:37:52 +0000 (03:37 +0000)]
upstream: Let allowed signers files used by ssh-keygen(1)
signatures support key lifetimes, and allow the verification mode to specify
a signature time to check at. This is intended for use by git to support
signing objects using ssh keys. ok dtucker@
OpenBSD-Commit-ID:
3e2c67b7dcd94f0610194d1e8e4907829a40cf31
dtucker@openbsd.org [Mon, 19 Jul 2021 08:48:33 +0000 (08:48 +0000)]
upstream: Use SUDO when setting up hostkey.
OpenBSD-Regress-ID:
990cf4481cab8dad62e90818a9b4b36c533851a7
dtucker@openbsd.org [Mon, 19 Jul 2021 05:08:54 +0000 (05:08 +0000)]
upstream: Increase time margin for rekey tests. Should help
reliability on very heavily loaded hosts.
OpenBSD-Regress-ID:
4c28a0fce3ea89ebde441d7091464176e9730533
Darren Tucker [Mon, 19 Jul 2021 03:47:51 +0000 (13:47 +1000)]
Add sshfp-connect.sh file missed in previous.
dtucker@openbsd.org [Mon, 19 Jul 2021 03:13:28 +0000 (03:13 +0000)]
upstream: Ensure that all returned SSHFP records for the specified host
name and hostkey type match instead of only one. While there, simplify the
code somewhat and add some debugging. Based on discussion in bz#3322, ok
djm@.
OpenBSD-Commit-ID:
0a6a0a476eb7f9dfe8fe2c05a1a395e3e9b22ee4