]>
git.ipfire.org Git - thirdparty/openssh-portable.git/log
dtucker@openbsd.org [Fri, 6 Sep 2019 04:24:06 +0000 (04:24 +0000)]
upstream: Check for RSA support before using it for the user key,
otherwise use
ed25519 which is supported when built without OpenSSL.
OpenBSD-Regress-ID:
3d23ddfe83c5062f00ac845d463f19a2ec78c0f7
Darren Tucker [Fri, 6 Sep 2019 04:07:10 +0000 (14:07 +1000)]
Provide explicit path to configure-check.
On some platforms (at least OpenBSD) make won't search VPATH for target
files, so building out-of-tree will fail at configure-check. Provide
explicit path. ok djm@
djm@openbsd.org [Fri, 6 Sep 2019 01:58:50 +0000 (01:58 +0000)]
upstream: better error code for bad arguments; inspired by
OpenBSD-Commit-ID:
dfc263b6041de7f0ed921a1de0b81ddebfab1e0a
Damien Miller [Thu, 5 Sep 2019 11:38:40 +0000 (21:38 +1000)]
revert config.h/config.h.in freshness checks
turns out autoreconf and configure don't touch some files if their content
doesn't change, so the mtime can't be relied upon in a makefile rule
Damien Miller [Thu, 5 Sep 2019 10:54:39 +0000 (20:54 +1000)]
extend autoconf freshness test
make it cover config.h.in and config.h separately
Damien Miller [Thu, 5 Sep 2019 10:34:54 +0000 (20:34 +1000)]
check that configure/config.h is up to date
Ensure they are newer than the configure.ac / aclocal.m4 source
djm@openbsd.org [Thu, 5 Sep 2019 10:05:51 +0000 (10:05 +0000)]
upstream: if a PKCS#11 token returns no keys then try to login and
refetch them. Based on patch from Jakub Jelen; bz#2430 ok markus@
OpenBSD-Commit-ID:
ab53bd6ddd54dd09e54a8bfbed1a984496f08b43
djm@openbsd.org [Thu, 5 Sep 2019 09:35:19 +0000 (09:35 +0000)]
upstream: sprinkle in some explicit errors here, otherwise the
percolate all the way up to dispatch_run_fatal() and lose all meaninful
context
to help with bz#3063; ok dtucker@
OpenBSD-Commit-ID:
5b2da83bb1c4a3471444b7910b2120ae36438a0a
djm@openbsd.org [Thu, 5 Sep 2019 09:25:13 +0000 (09:25 +0000)]
upstream: only send ext_info for KEX_INITIAL; bz#2929 ok dtucker
OpenBSD-Commit-ID:
00f5c6062f6863769f5447c6346f78c05d2e4a63
jmc@openbsd.org [Thu, 5 Sep 2019 05:47:23 +0000 (05:47 +0000)]
upstream: macro fix; ok djm
OpenBSD-Commit-ID:
e891dd6c7996114cb32f0924cb7898ab55efde6e
Damien Miller [Thu, 5 Sep 2019 05:46:39 +0000 (15:46 +1000)]
update fuzzing makefile to more recent clang
Damien Miller [Thu, 5 Sep 2019 05:45:32 +0000 (15:45 +1000)]
fuzzer for sshsig allowed_signers option parsing
djm@openbsd.org [Thu, 5 Sep 2019 05:42:59 +0000 (05:42 +0000)]
upstream: memleak on error path; found by libfuzzer
OpenBSD-Commit-ID:
34d44cb0fb5bdb5fcbc6b02b804e71b20a7a5fc7
djm@openbsd.org [Thu, 5 Sep 2019 04:55:32 +0000 (04:55 +0000)]
upstream: expose allowed_signers options parsing code in header for
fuzzing
rename to make more consistent with philosophically-similar auth
options parsing API.
OpenBSD-Commit-ID:
0c67600ef04187f98e2912ca57b60c22a8025b7c
naddy@openbsd.org [Wed, 4 Sep 2019 20:31:15 +0000 (20:31 +0000)]
upstream: Call comma-separated lists as such to clarify semantics.
Options such as Ciphers take values that may be a list of ciphers; the
complete list, not indiviual elements, may be prefixed with a dash or plus
character to remove from or append to the default list, respectively.
Users might read the current text as if each elment took an optional prefix,
so tweak the wording from "values" to "list" to prevent such ambiguity for
all options supporting these semantics.
Fix instances missed in first commit. ok jmc@ kn@
OpenBSD-Commit-ID:
7112522430a54fb9f15a7a26d26190ed84d5e417
jmc@openbsd.org [Wed, 4 Sep 2019 05:56:54 +0000 (05:56 +0000)]
upstream: tweak previous;
OpenBSD-Commit-ID:
0abd728aef6b5b35f6db43176aa83b7e3bf3ce27
naddy@openbsd.org [Tue, 3 Sep 2019 20:51:49 +0000 (20:51 +0000)]
upstream: repair typo and editing mishap
OpenBSD-Commit-ID:
d125ab720ca71ccf9baf83e08ddc8c12a328597e
Damien Miller [Thu, 5 Sep 2019 01:09:28 +0000 (11:09 +1000)]
Fuzzer harness for sshsig
Damien Miller [Tue, 3 Sep 2019 08:45:42 +0000 (18:45 +1000)]
oops; missed including the actual file
Damien Miller [Tue, 3 Sep 2019 08:44:10 +0000 (18:44 +1000)]
portability fixes for sshsig
djm@openbsd.org [Tue, 3 Sep 2019 08:37:45 +0000 (08:37 +0000)]
upstream: regress test for sshsig; feedback and ok markus@
OpenBSD-Regress-ID:
74c0974f2cdae8d9599b9d76a09680bae55d8a8b
djm@openbsd.org [Tue, 3 Sep 2019 08:37:06 +0000 (08:37 +0000)]
upstream: only add plain keys to prevent any certs laying around
from confusing the test.
OpenBSD-Regress-ID:
b8f1508f822bc560b98dea910e61ecd76f34100f
djm@openbsd.org [Tue, 3 Sep 2019 08:35:27 +0000 (08:35 +0000)]
upstream: sshsig tweaks and improvements from and suggested by
Markus
ok markus/me
OpenBSD-Commit-ID:
ea4f46ad5a16b27af96e08c4877423918c4253e9
djm@openbsd.org [Tue, 3 Sep 2019 08:34:19 +0000 (08:34 +0000)]
upstream: sshsig: lightweight signature and verification ability
for OpenSSH
This adds a simple manual signature scheme to OpenSSH.
Signatures can be made and verified using ssh-keygen -Y sign|verify
Signatures embed the key used to make them. At verification time, this
is matched via principal name against an authorized_keys-like list
of allowed signers.
Mostly by Sebastian Kinne w/ some tweaks by me
ok markus@
OpenBSD-Commit-ID:
2ab568e7114c933346616392579d72be65a4b8fb
djm@openbsd.org [Tue, 3 Sep 2019 08:32:11 +0000 (08:32 +0000)]
upstream: move authorized_keys option parsing helpsers to misc.c
and make them public; ok markus@
OpenBSD-Commit-ID:
c18bcb2a687227b3478377c981c2d56af2638ea2
djm@openbsd.org [Tue, 3 Sep 2019 08:31:20 +0000 (08:31 +0000)]
upstream: make get_sigtype public as sshkey_get_sigtype(); ok
markus@
OpenBSD-Commit-ID:
01f8cdbec63350490d2249f41112c5780d1cfbb8
djm@openbsd.org [Tue, 3 Sep 2019 08:30:47 +0000 (08:30 +0000)]
upstream: move advance_past_options to authfile.c and make it
public; ok markus@
OpenBSD-Commit-ID:
edda2fbba2c5b1f48e60f857a2010479e80c5f3c
djm@openbsd.org [Tue, 3 Sep 2019 08:29:58 +0000 (08:29 +0000)]
upstream: move skip_space() to misc.c and make it public; ok
markus@
OpenBSD-Commit-ID:
caa77e8a3b210948e29ad3e28c5db00852961eae
djm@openbsd.org [Tue, 3 Sep 2019 08:29:15 +0000 (08:29 +0000)]
upstream: authfd: add function to check if key is in agent
This commit adds a helper function which allows the caller to
check if a given public key is present in ssh-agent.
work by Sebastian Kinne; ok markus@
OpenBSD-Commit-ID:
d43c5826353e1fdc1af71eb42961b30782c7bd13
djm@openbsd.org [Tue, 3 Sep 2019 08:28:30 +0000 (08:28 +0000)]
upstream: fix memleak in ssh_free_identitylist(); ok markus@
OpenBSD-Commit-ID:
aa51f77ae2c5330a1f61b2d22933f24a443f9abf
djm@openbsd.org [Tue, 3 Sep 2019 08:27:52 +0000 (08:27 +0000)]
upstream: factor out confirm_overwrite(); ok markus@
OpenBSD-Commit-ID:
304e95381b39c774c8fced7e5328b106a3ff0400
djm@openbsd.org [Mon, 2 Sep 2019 23:46:46 +0000 (23:46 +0000)]
upstream: constify an argument
OpenBSD-Commit-ID:
724bafc9f993746ad4303e95bede2c030de6233b
djm@openbsd.org [Mon, 2 Sep 2019 00:19:25 +0000 (00:19 +0000)]
upstream: downgrade PKCS#11 "provider returned no slots" warning
from log level error to debug. This is common when attempting to enumerate
keys on smartcard readers with no cards plugged in. bz#3058 ok dtucker@
OpenBSD-Commit-ID:
bb8839ddeb77c271390488af1b771041d43e49c6
djm@openbsd.org [Sun, 1 Sep 2019 23:47:32 +0000 (23:47 +0000)]
upstream: print comment when printing pubkey from private
bz#3052; ok dtucker
OpenBSD-Commit-ID:
a91b2a8d5f1053d34d7fce44523c53fb534ba914
Damien Miller [Mon, 2 Sep 2019 00:28:42 +0000 (10:28 +1000)]
fixed test in OSX closefrom() replacement
from likan_999.student AT sina.com
Damien Miller [Mon, 2 Sep 2019 00:22:02 +0000 (10:22 +1000)]
retain Solaris PRIV_FILE_LINK_ANY in sftp-server
Dropping this privilege removes the ability to create hard links to
files owned by other users. This is required for the legacy sftp rename
operation.
bz#3036; approach ok Alex Wilson (the original author of the Solaris
sandbox/pledge replacement code)
dtucker@openbsd.org [Fri, 30 Aug 2019 05:08:28 +0000 (05:08 +0000)]
upstream: Use
ed25519 for most hostkey rotation tests since it's
supported even when built without OpenSSL. Use RSA for the secondary type
test if supported, otherwise skip it. Fixes this test for !OpenSSL builds.
OpenBSD-Regress-ID:
101cb34a84fd974c623bdb2e496f25a6e91be109
bluhm@openbsd.org [Thu, 22 Aug 2019 21:47:27 +0000 (21:47 +0000)]
upstream: Test did not compile due to missing symbols. Add source
sshbuf-misc.c to regress as it was done in ssh make file. from Moritz Buhl
OpenBSD-Regress-ID:
9e1c23476bb845f3cf3d15d9032da3ed0cb2fcf5
Damien Miller [Fri, 30 Aug 2019 04:26:19 +0000 (14:26 +1000)]
tweak warning flags
Enable -Wextra if compiler supports it
Set -Wno-error=format-truncation if available to prevent expected
string truncations in openbsd-compat from breaking -Werror builds
Damien Miller [Fri, 30 Aug 2019 03:21:38 +0000 (13:21 +1000)]
proc_pidinfo()-based closefrom() for OS X
Refactor closefrom() to use a single brute-force close() loop fallback.
Based on patch from likan_999.student@sina.com in bz#3049. ok dtucker@
kn@openbsd.org [Fri, 16 Aug 2019 11:16:32 +0000 (11:16 +0000)]
upstream: Call comma-separated lists as such to clarify semantics
Options such as Ciphers take values that may be a list of ciphers; the
complete list, not indiviual elements, may be prefixed with a dash or plus
character to remove from or append to the default list respectively.
Users might read the current text as if each elment took an optional prefix,
so tweak the wording from "values" to "list" to prevent such ambiguity for
all options supporting this semantics (those that provide a list of
available elements via "ssh -Q ...").
Input and OK jmc
OpenBSD-Commit-ID:
4fdd175b0e5f5cb10ab3f26ccc38a93bb6515d57
djm@openbsd.org [Fri, 16 Aug 2019 06:35:27 +0000 (06:35 +0000)]
upstream: include sshbuf-misc.c in SRCS_BASE
OpenBSD-Commit-ID:
99dd10e72c04e93849981d43d64c946619efa474
Darren Tucker [Sat, 24 Aug 2019 05:12:11 +0000 (15:12 +1000)]
Fix pasto in fallback code.
There is no parameter called "pathname", it should simply be "path".
bz#3059, patch from samuel at cendio.se.
Damien Miller [Fri, 23 Aug 2019 00:19:30 +0000 (10:19 +1000)]
use SC_ALLOW_ARG_MASK to limit mmap protections
Restrict to PROT_(READ|WRITE|NONE), i.e. exclude PROT_EXEC
Damien Miller [Fri, 23 Aug 2019 00:08:48 +0000 (10:08 +1000)]
allow mprotect(2) with PROT_(READ|WRITE|NONE) only
Used by some hardened heap allocators. Requested by Yegor
Timoshenko in https://github.com/openssh/openssh-portable/pull/142
djm@openbsd.org [Fri, 16 Aug 2019 06:13:15 +0000 (06:13 +0000)]
upstream: switch percent_expand() to use sshbuf instead of a limited
fixed buffer; ok markus@
OpenBSD-Commit-ID:
3f9ef20bca5ef5058b48c1cac67c53b9a1d15711
djm@openbsd.org [Fri, 9 Aug 2019 05:05:54 +0000 (05:05 +0000)]
upstream: produce a useful error message if the user's shell is set
incorrectly during "match exec" processing. bz#2791 reported by Dario
Bertini; ok dtucker
OpenBSD-Commit-ID:
cf9eddd6a6be726cb73bd9c3936f3888cd85c03d
dtucker@openbsd.org [Fri, 9 Aug 2019 04:24:03 +0000 (04:24 +0000)]
upstream: Change description of TCPKeepAlive from "inactive" to
"unresponsive" to clarify what it checks for. Patch from jblaine at
kickflop.net via github pr#129, ok djm@.
OpenBSD-Commit-ID:
3682f8ec7227f5697945daa25d11ce2d933899e9
dtucker@openbsd.org [Thu, 8 Aug 2019 08:02:57 +0000 (08:02 +0000)]
upstream: Allow the maximimum uint32 value for the argument passed to
-b which allows better error messages from later validation. bz#3050, ok
djm@
OpenBSD-Commit-ID:
10adf6876b2401b3dc02da580ebf67af05861673
naddy@openbsd.org [Mon, 5 Aug 2019 21:45:27 +0000 (21:45 +0000)]
upstream: Many key types are supported now, so take care to check
the size restrictions and apply the default size only to the matching key
type. tweak and ok dtucker@
OpenBSD-Commit-ID:
b825de92d79cc4cba19b298c61e99909488ff57e
dtucker@openbsd.org [Mon, 5 Aug 2019 11:50:33 +0000 (11:50 +0000)]
upstream: Remove now-redundant perm_ok arg since
sshkey_load_private_type will now return SSH_ERR_KEY_BAD_PERMISSIONS in that
case. Patch from jitendra.sharma at intel.com, ok djm@
OpenBSD-Commit-ID:
07916a17ed0a252591b71e7fb4be2599cb5b0c77
Darren Tucker [Mon, 5 Aug 2019 11:36:48 +0000 (21:36 +1000)]
Fix mem leak in unit test.
Patch from jitendra.sharma at intel.com.
djm@openbsd.org [Fri, 2 Aug 2019 01:41:24 +0000 (01:41 +0000)]
upstream: fix some memleaks in test_helper code
bz#3037 from Jitendra Sharma
OpenBSD-Regress-ID:
71440fa9186f5842a65ce9a27159385c6cb6f751
djm@openbsd.org [Fri, 2 Aug 2019 01:23:19 +0000 (01:23 +0000)]
upstream: typo; from Christian Hesse
OpenBSD-Commit-ID:
82f6de7438ea7ee5a14f44fdf5058ed57688fdc3
djm@openbsd.org [Tue, 30 Jul 2019 05:04:49 +0000 (05:04 +0000)]
upstream: let sshbuf_find/cmp take a void* for the
search/comparison argument, instead of a u_char*. Saves callers needing to
cast.
OpenBSD-Commit-ID:
d63b69b7c5dd570963e682f758f5a47b825605ed
mestre@openbsd.org [Wed, 24 Jul 2019 08:57:00 +0000 (08:57 +0000)]
upstream: When using a combination of a Yubikey+GnuPG+remote
forwarding the gpg-agent (and options ControlMaster+RemoteForward in
ssh_config(5)) then the codepath taken will call mux_client_request_session
-> mm_send_fd -> sendmsg(2). Since sendmsg(2) is not allowed in that codepath
then pledge(2) kills the process.
The solution is to add "sendfd" to pledge(2), which is not too bad considering
a little bit later we reduce pledge(2) to only "stdio proc tty" in that
codepath.
Problem reported and diff provided by Timothy Brown <tbrown at freeshell.org>
OK deraadt@
OpenBSD-Commit-ID:
7ce38b6542bbec00e441595d0a178e970a9472ac
dtucker@openbsd.org [Tue, 23 Jul 2019 23:06:57 +0000 (23:06 +0000)]
upstream: Fix typo in CASignatureAlgorithms wherein what should be
a comma is a dot. Patch from hnj2 via github pr#141.
OpenBSD-Commit-ID:
01f5a460438ff1af09aab483c0a70065309445f0
Darren Tucker [Mon, 29 Jul 2019 06:04:01 +0000 (16:04 +1000)]
Report success of individual tests as well as all.
This puts the "all tests passed" message back at the end where the
test harnesses can find it.
Damien Miller [Sun, 28 Jul 2019 23:49:23 +0000 (09:49 +1000)]
convert to UTF-8; from Mike Frysinger
dtucker@openbsd.org [Fri, 26 Jul 2019 04:22:21 +0000 (04:22 +0000)]
upstream: Restrict limit-keytype to types supported by build. This
means we have to skip a couple tests when only one key type is supported.
OpenBSD-Regress-ID:
22d05befb9c7ce21ce8dc22acf1ffe9e2ef2e95e
Darren Tucker [Thu, 25 Jul 2019 08:36:28 +0000 (18:36 +1000)]
Remove override disabling DH-GEX.
The DH-GEX override doesn't work when build without OpenSSL, and
we'll prefer curve25519 these days, removing the need for it.
dtucker@openbsd.org [Thu, 25 Jul 2019 09:17:35 +0000 (09:17 +0000)]
upstream: Only use supported key types during KRL test, preferring
ed25519 since it's supported by both OpenSSL and non-OpenSSL builds.
OpenBSD-Regress-ID:
9f2bb3eadd50fcc8245b1bd8fd6f0e53602f71aa
dtucker@openbsd.org [Thu, 25 Jul 2019 08:48:11 +0000 (08:48 +0000)]
upstream: Switch keys-command test from rsa to
ed25519 since it's
supported for both OpenSSL and non-OpenSSL builds.
OpenBSD-Regress-ID:
174be4be876edd493e4a5c851e5bc579885e7a0a
dtucker@openbsd.org [Thu, 25 Jul 2019 08:28:15 +0000 (08:28 +0000)]
upstream: Make certificate tests work with the supported key
algorithms. Allows tests to pass when built without OpenSSL.
OpenBSD-Regress-ID:
617169a6dd9d06db3697a449d9a26c284eca20fc
dtucker@openbsd.org [Tue, 23 Jul 2019 13:49:14 +0000 (13:49 +0000)]
upstream: Construct list of key types to test based on the types
supported by the binaries.
OpenBSD-Regress-ID:
fcbd115efacec8ab0ecbdb3faef79ac696cb1d62
dtucker@openbsd.org [Tue, 23 Jul 2019 13:32:48 +0000 (13:32 +0000)]
upstream: Only use DSA key type in tests if binaries support it.
OpenBSD-Regress-ID:
770e31fe61dc33ed8eea9c04ce839b33ddb4dc96
Darren Tucker [Wed, 24 Jul 2019 04:21:19 +0000 (14:21 +1000)]
Split test targets further.
Splits test into file-tests, t-exec, unit and interop-tests and their
respective dependencies. Should allow running any set individually
without having to build the other dependencies that are not needed
for that specific test.
Darren Tucker [Wed, 24 Jul 2019 01:20:18 +0000 (11:20 +1000)]
Add lib dependencies for regress binary targets.
Darren Tucker [Tue, 23 Jul 2019 14:12:51 +0000 (00:12 +1000)]
Make "unit" a dependency of "test".
Darren Tucker [Tue, 23 Jul 2019 13:24:47 +0000 (23:24 +1000)]
upstream rev 1.28: fix comment typo.
Darren Tucker [Tue, 23 Jul 2019 13:06:22 +0000 (23:06 +1000)]
Split regress-binaries into two targets.
Split the binaries for the unit tests out into a regress-unit-binaries
target, and add a dependency on it for only the unit tests. This allows
us to run the integration tests only ("make t-exec") without building
the unit tests, which allows us to run a subset of the tests when
building --without-openssl without trying (and failing) to build the
unit tests.
This means there are two targets for "unit" which I *think* is valid
(it works in testing, and makedepend will generate Makefiles of this
form)a but I could be wrong.
dtucker@openbsd.org [Tue, 23 Jul 2019 08:19:29 +0000 (08:19 +0000)]
upstream: Skip DH group generation test if binaries don't support
DH-GEX.
OpenBSD-Regress-ID:
7c918230d969ecf7656babd6191a74526bffbffd
dtucker@openbsd.org [Tue, 23 Jul 2019 07:55:29 +0000 (07:55 +0000)]
upstream: Only test conversion of key types supported by the
binaries.
OpenBSD-Regress-ID:
e3f0938a0a7407e2dfbb90abc3ec979ab6e8eeea
dtucker@openbsd.org [Tue, 23 Jul 2019 07:39:43 +0000 (07:39 +0000)]
upstream: Only add ssh-dss to allowed key types if it's supported
by the binary.
OpenBSD-Regress-ID:
395a54cab16e9e4ece9aec047ab257954eebd413
Darren Tucker [Tue, 23 Jul 2019 12:36:39 +0000 (22:36 +1000)]
Remove sys/cdefs.h include.
It's not needed on -portable (that's handled by includes.h) and not all
platforms have it.
Darren Tucker [Tue, 23 Jul 2019 12:25:44 +0000 (22:25 +1000)]
Add headers to prevent warnings w/out OpenSSL.
Darren Tucker [Tue, 23 Jul 2019 12:11:50 +0000 (22:11 +1000)]
Include stdlib.h for free() and calloc().
Darren Tucker [Tue, 23 Jul 2019 11:51:22 +0000 (21:51 +1000)]
Re-apply portability changes to current sha2.{c,h}.
Rather than attempt to apply 14 years' worth of changes to OpenBSD's sha2
I imported the current versions directly then re-applied the portability
changes. This also allowed re-syncing digest-libc.c against upstream.
Darren Tucker [Tue, 23 Jul 2019 10:27:51 +0000 (20:27 +1000)]
Import current sha2.c and sha2.h from OpenBSD.
These are not changed from their original state, the next commit will
re-apply the portable changes.
Darren Tucker [Mon, 22 Jul 2019 22:11:22 +0000 (08:11 +1000)]
Rename valgrind "errors" to "failures".
When valgrind is enabled, test-exec.sh counts the number of invocations
that valgrind detects failures in, not the total number of errors detected.
This makes the name to be more accurate.
Darren Tucker [Fri, 19 Jul 2019 08:51:18 +0000 (18:51 +1000)]
Skip running sftp-chroot under Valgrind.
dtucker@openbsd.org [Sat, 20 Jul 2019 09:50:58 +0000 (09:50 +0000)]
upstream: Remove the sleeps and thus races from the forwarding
test. They were originally required to work with Protocol 1, but now we can
use ssh -N and the control socket without the sleeps. While there, suppress
output fro the control exit commands.
OpenBSD-Regress-ID:
4c51a1d651242f12c90074c18c61008a74c1c790
dtucker@openbsd.org [Sat, 20 Jul 2019 09:37:31 +0000 (09:37 +0000)]
upstream: Allow SLEEPTIME to be overridden.
OpenBSD-Regress-ID:
1596ab168729954be3d219933b2d01cc93687e76
dtucker@openbsd.org [Sat, 20 Jul 2019 09:14:40 +0000 (09:14 +0000)]
upstream: Move sleep time into a variable so that we can increase
it for platforms or configurations that are much slower then usual.
OpenBSD-Regress-ID:
88586cabc800062c260d0b876bdcd4ca3f58a872
djm@openbsd.org [Fri, 19 Jul 2019 03:45:44 +0000 (03:45 +0000)]
upstream: add regression tests for scp for out-of-destination path file
creation by Harry Sintonen via Jakub Jelen in bz3007
OpenBSD-Regress-ID:
01ae5fbc6ce400b2df5a84dc3152a9e31f354c07
djm@openbsd.org [Fri, 19 Jul 2019 03:38:01 +0000 (03:38 +0000)]
upstream: Accept the verbose flag when searching for host keys in known
hosts (i.e. "ssh-keygen -vF host") to print the matching host's random- art
signature too. bz#3003 "amusing, pretty" deraadt@
OpenBSD-Commit-ID:
686221a5447d6507f40a2ffba5393984d889891f
Darren Tucker [Fri, 19 Jul 2019 03:50:25 +0000 (13:50 +1000)]
Revert one dependency per line change.
It turns out that having such a large number of lines in the .depend
file will cause the memory usage of awk during AC_SUBST to blow up on at
least NetBSD's awk, causing configure to fail.
Damien Miller [Fri, 19 Jul 2019 03:19:19 +0000 (13:19 +1000)]
fix SIGWINCH delivery of Solaris for mux sessions
Remove PRIV_PROC_SESSION which was limiting ability to send SIGWINCH
signals to other sessions. bz#3030; report and fix from Darren Moffat
Darren Tucker [Fri, 19 Jul 2019 03:20:03 +0000 (13:20 +1000)]
Force dependencies one per line.
Force makedepend to output one dependency per line, which will make
reading diffs against it much easier. ok djm@
Darren Tucker [Fri, 19 Jul 2019 03:18:07 +0000 (13:18 +1000)]
make depend.
Darren Tucker [Fri, 19 Jul 2019 03:16:11 +0000 (13:16 +1000)]
Show when skipping valgrind for a test.
Darren Tucker [Fri, 19 Jul 2019 00:41:56 +0000 (10:41 +1000)]
Enable connect-privsep test with valgrind.
connect-privsep seems to work OK with valgrind now so don't skip
valgrind on it.
Darren Tucker [Thu, 18 Jul 2019 21:43:07 +0000 (07:43 +1000)]
Show valgrind results and error counts.
Darren Tucker [Thu, 18 Jul 2019 03:40:12 +0000 (13:40 +1000)]
Fix format string integer type in error message.
djm@openbsd.org [Thu, 18 Jul 2019 13:26:00 +0000 (13:26 +0000)]
upstream: fix off-by-one in sshbuf_dtob64() base64 wrapping that could
cause extra newlines to be appended at the end of the base64 text (ugly, but
harmless). Found and fixed by Sebastian Kinne
OpenBSD-Commit-ID:
9fe290bd68f706ed8f986a7704ca5a2bd32d7b68
Darren Tucker [Thu, 18 Jul 2019 01:09:38 +0000 (11:09 +1000)]
Fail tests if Valgrind enabled and reports errors.
Also dump the failing valgrind report to stdout (not the cleanest
solution, but better than nothing).
Darren Tucker [Thu, 18 Jul 2019 00:17:54 +0000 (10:17 +1000)]
Allow low-priv tests to write to pipe dir.
When running regression tests with Valgrind and SUDO, the low-priv agent
tests need to be able to create pipes in the appropriate directory.
Darren Tucker [Wed, 17 Jul 2019 11:24:55 +0000 (21:24 +1000)]
Put valgrind vgdb files to a specific directory.
Valgrind by default puts vgdb files and pipes under /tmp, however it
is not always able to clean them up, which can cause test failures when
there's a pid/file collision. Using a specific directory ensures that
we can clean up and start clean.
djm@openbsd.org [Tue, 16 Jul 2019 22:16:49 +0000 (22:16 +0000)]
upstream: adapt to sshbuf_dtob64() change
OpenBSD-Regress-ID:
82374a83edf0955fd1477169eee3f5d6467405a6
dtucker@openbsd.org [Tue, 16 Jul 2019 03:21:54 +0000 (03:21 +0000)]
upstream: Remove ssh1 files from CLEANFILES since ssh1 no longer
supported.
OpenBSD-Regress-ID:
5b9ae869dc669bac05939b4a2fdf44ee067acfa0