]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
7 years agoupstream commit V_7_6 anongit/V_7_6 github-selfhosted/V_7_6 github/V_7_6
djm@openbsd.org [Wed, 4 Oct 2017 18:49:30 +0000 (18:49 +0000)] 
upstream commit

fix (another) problem in PermitOpen introduced during the
channels.c refactor: the third and subsequent arguments to PermitOpen were
being silently ignored; ok markus@

Upstream-ID: 067c89f1f53cbc381628012ba776d6861e6782fd

7 years agoupstream commit V_7_6_P1
djm@openbsd.org [Mon, 2 Oct 2017 19:33:20 +0000 (19:33 +0000)] 
upstream commit

Fix PermitOpen crash; spotted by benno@, ok dtucker@ deraadt@

Upstream-ID: c2cc84ffac070d2e1ff76182c70ca230a387983c

7 years agoupdate URL again
Damien Miller [Sat, 30 Sep 2017 23:32:25 +0000 (10:32 +1100)] 
update URL again

I spotted a typo in the draft so uploaded a new version...

7 years agosync release notes URL
Damien Miller [Sat, 30 Sep 2017 23:01:56 +0000 (10:01 +1100)] 
sync release notes URL

7 years agosync contrib/ssh-copy-id with upstream
Damien Miller [Sat, 30 Sep 2017 23:01:25 +0000 (10:01 +1100)] 
sync contrib/ssh-copy-id with upstream

7 years agoupdate version in RPM spec files
Damien Miller [Sat, 30 Sep 2017 22:59:19 +0000 (09:59 +1100)] 
update version in RPM spec files

7 years agoupdate agent draft URL
Damien Miller [Sat, 30 Sep 2017 22:58:24 +0000 (09:58 +1100)] 
update agent draft URL

7 years agoupstream commit
djm@openbsd.org [Sat, 30 Sep 2017 22:26:33 +0000 (22:26 +0000)] 
upstream commit

openssh-7.6; ok deraadt@

Upstream-ID: a39c3a5b63a1baae109ae1ae4c7c34c2a59acde0

7 years agoupstream commit
jmc@openbsd.org [Wed, 27 Sep 2017 06:45:53 +0000 (06:45 +0000)] 
upstream commit

tweak EposeAuthinfo; diff from lars nooden

tweaked by sthen; ok djm dtucker

Upstream-ID: 8f2ea5d2065184363e8be7a0ba24d98a3b259748

7 years agodon't fatal ./configure for LibreSSL
Damien Miller [Thu, 28 Sep 2017 23:06:21 +0000 (16:06 -0700)] 
don't fatal ./configure for LibreSSL

7 years agoabort in configure when only openssl-1.1.x found
Damien Miller [Thu, 28 Sep 2017 21:54:34 +0000 (14:54 -0700)] 
abort in configure when only openssl-1.1.x found

We don't support openssl-1.1.x yet (see multiple threads on the
openssh-unix-dev@ mailing list for the reason), but previously
./configure would accept it and the compilation would subsequently
fail. This makes ./configure display an explicit error message and
abort.

ok dtucker@

7 years agoCheck for and handle calloc(p, 0) = NULL.
Darren Tucker [Tue, 26 Sep 2017 21:44:41 +0000 (07:44 +1000)] 
Check for and handle calloc(p, 0) = NULL.

On some platforms (AIX, maybe others) allocating zero bytes of memory
via the various *alloc functions returns NULL, which is permitted
by the standards.  Autoconf has some macros for detecting this (with
the exception of calloc for some reason) so use these and if necessary
activate shims for them.  ok djm@

7 years agoupstream commit
markus@openbsd.org [Thu, 21 Sep 2017 19:18:12 +0000 (19:18 +0000)] 
upstream commit

test reverse dynamic forwarding with SOCKS

Upstream-Regress-ID: 95cf290470f7e5e2f691e4bc6ba19b91eced2f79

7 years agosync missing changes in dynamic-forward.sh
Damien Miller [Tue, 26 Sep 2017 06:55:55 +0000 (16:55 +1000)] 
sync missing changes in dynamic-forward.sh

7 years agoAdd minimal strsignal for platforms without it.
Darren Tucker [Sun, 24 Sep 2017 23:48:10 +0000 (09:48 +1000)] 
Add minimal strsignal for platforms without it.

7 years agoupstream commit
djm@openbsd.org [Sun, 24 Sep 2017 13:45:34 +0000 (13:45 +0000)] 
upstream commit

fix inverted test on channel open failure path that
"upgraded" a transient failure into a fatal error; reported by sthen and also
seen by benno@; ok sthen@

Upstream-ID: b58b3fbb79ba224599c6cd6b60c934fc46c68472

7 years agoupstream commit
djm@openbsd.org [Sun, 24 Sep 2017 09:50:01 +0000 (09:50 +0000)] 
upstream commit

write the correct buffer when tunnel forwarding; doesn't
matter on OpenBSD (they are the same) but does matter on portable where we
use an output filter to translate os-specific tun/tap headers

Upstream-ID: f1ca94eff48404827b12e1d12f6139ee99a72284

7 years agoupstream commit
djm@openbsd.org [Sat, 23 Sep 2017 22:04:07 +0000 (22:04 +0000)] 
upstream commit

fix tunnel forwarding problem introduced in refactor;
reported by stsp@ ok markus@

Upstream-ID: 81a731cdae1122c8522134095d1a8b60fa9dcd04

7 years agoupstream commit
markus@openbsd.org [Thu, 21 Sep 2017 19:16:53 +0000 (19:16 +0000)] 
upstream commit

Add 'reverse' dynamic forwarding which combines dynamic
forwarding (-D) with remote forwarding (-R) where the remote-forwarded port
expects SOCKS-requests.

The SSH server code is unchanged and the parsing happens at the SSH
clients side. Thus the full SOCKS-request is sent over the forwarded
channel and the client parses c->output. Parsing happens in
channel_before_prepare_select(), _before_ the select bitmask is
computed in the pre[] handlers, but after network input processing
in the post[] handlers.

help and ok djm@

Upstream-ID: aa25a6a3851064f34fe719e0bf15656ad5a64b89

7 years agoupstream commit
dtucker@openbsd.org [Wed, 20 Sep 2017 05:19:00 +0000 (05:19 +0000)] 
upstream commit

Use strsignal in debug message instead of casting for the
benefit of portable where sig_atomic_t might not be int.  "much nicer"
deraadt@

Upstream-ID: 2dac6c1e40511c700bd90664cd263ed2299dcf79

7 years agoupstream commit
millert@openbsd.org [Tue, 19 Sep 2017 12:10:30 +0000 (12:10 +0000)] 
upstream commit

Use explicit_bzero() instead of bzero() before free() to
prevent the compiler from optimizing away the bzero() call.  OK djm@

Upstream-ID: cdc6197e64c9684c7250e23d60863ee1b53cef1d

7 years agoupstream commit
djm@openbsd.org [Tue, 19 Sep 2017 04:24:22 +0000 (04:24 +0000)] 
upstream commit

fix use-after-free in ~^Z escape handler path, introduced
in channels.c refactor; spotted by millert@ "makes sense" deraadt@

Upstream-ID: 8fa2cdc65c23ad6420c1e59444b0c955b0589b22

7 years agoupstream commit
dtucker@openbsd.org [Mon, 18 Sep 2017 12:03:24 +0000 (12:03 +0000)] 
upstream commit

Prevent type mismatch warning in debug on platforms where
sig_atomic_t != int.  ok djm@

Upstream-ID: 306e2375eb0364a4c68e48f091739bea4f4892ed

7 years agoupstream commit
dtucker@openbsd.org [Mon, 18 Sep 2017 09:41:52 +0000 (09:41 +0000)] 
upstream commit

Add braces missing after channels refactor.  ok markus@

Upstream-ID: 72ab325c84e010680dbc88f226e2aa96b11a3980

7 years agoadd freezero(3) replacement
Damien Miller [Tue, 19 Sep 2017 02:29:23 +0000 (12:29 +1000)] 
add freezero(3) replacement

ok dtucker@

7 years agomove FORTIFY_SOURCE into hardening options group
Damien Miller [Tue, 19 Sep 2017 00:18:56 +0000 (10:18 +1000)] 
move FORTIFY_SOURCE into hardening options group

It's still on by default, but now it's possible to turn it off using
--without-hardening. This is useful since it's known to cause problems
with some -fsanitize options. ok dtucker@

7 years agoupstream commit
bluhm@openbsd.org [Wed, 13 Sep 2017 14:58:26 +0000 (14:58 +0000)] 
upstream commit

Print SKIPPED if sudo and doas configuration is missing.
Prevents that running the regression test with wrong environment is reported
as failure.  Keep the fatal there to avoid interfering with other setups for
portable ssh. OK dtucker@

Upstream-Regress-ID: f0dc60023caef496ded341ac5aade2a606fa234e

7 years agoupstream commit
dtucker@openbsd.org [Mon, 7 Aug 2017 03:52:55 +0000 (03:52 +0000)] 
upstream commit

Remove obsolete privsep=no fallback test.

Upstream-Regress-ID: 7d6e1baa1678ac6be50c2a1555662eb1047638df

7 years agoupstream commit
dtucker@openbsd.org [Mon, 7 Aug 2017 00:53:51 +0000 (00:53 +0000)] 
upstream commit

Remove non-privsep test since disabling privsep is now
deprecated.

Upstream-Regress-ID: 77ad3f3d8d52e87f514a80f285c6c1229b108ce8

7 years agoupstream commit
dtucker@openbsd.org [Fri, 28 Jul 2017 10:32:08 +0000 (10:32 +0000)] 
upstream commit

Don't call fatal from stop_sshd since it calls cleanup
which calls stop_sshd which will probably fail in the same way.  Instead,
just bail. Differentiate between sshd dying without cleanup and not shutting
down.

Upstream-Regress-ID: f97315f538618b349e2b0bea02d6b0c9196c6bc4

7 years agoupstream commit
djm@openbsd.org [Thu, 14 Sep 2017 04:32:21 +0000 (04:32 +0000)] 
upstream commit

Revert commitid: gJtIN6rRTS3CHy9b.

-------------
identify the case where SSHFP records are missing but other DNS RR
types are present and display a more useful error message for this
case; patch by Thordur Bjornsson; bz#2501; ok dtucker@
-------------

This caused unexpected failures when VerifyHostKeyDNS=yes, SSHFP results
are missing but the user already has the key in known_hosts

Spotted by dtucker@

Upstream-ID: 97e31742fddaf72046f6ffef091ec0d823299920

7 years agoadapt portable to channels API changes
Damien Miller [Tue, 12 Sep 2017 08:01:35 +0000 (18:01 +1000)] 
adapt portable to channels API changes

7 years agoupstream commit
djm@openbsd.org [Tue, 12 Sep 2017 07:55:48 +0000 (07:55 +0000)] 
upstream commit

unused variable

Upstream-ID: 2f9ba09f2708993d35eac5aa71df910dcc52bac1

7 years agoupstream commit
djm@openbsd.org [Tue, 12 Sep 2017 07:32:04 +0000 (07:32 +0000)] 
upstream commit

fix tun/tap forwarding case in previous

Upstream-ID: 43ebe37a930320e24bca6900dccc39857840bc53

7 years agoupstream commit
djm@openbsd.org [Tue, 12 Sep 2017 06:35:31 +0000 (06:35 +0000)] 
upstream commit

Make remote channel ID a u_int

Previously we tracked the remote channel IDs in an int, but this is
strictly incorrect: the wire protocol uses uint32 and there is nothing
in-principle stopping a SSH implementation from sending, say, 0xffff0000.

In practice everyone numbers their channels sequentially, so this has
never been a problem.

ok markus@

Upstream-ID: b9f4cd3dc53155b4a5c995c0adba7da760d03e73

7 years agoupstream commit
djm@openbsd.org [Tue, 12 Sep 2017 06:32:07 +0000 (06:32 +0000)] 
upstream commit

refactor channels.c

Move static state to a "struct ssh_channels" that is allocated at
runtime and tracked as a member of struct ssh.

Explicitly pass "struct ssh" to all channels functions.

Replace use of the legacy packet APIs in channels.c.

Rework sshd_config PermitOpen handling: previously the configuration
parser would call directly into the channels layer. After the refactor
this is not possible, as the channels structures are allocated at
connection time and aren't available when the configuration is parsed.
The server config parser now tracks PermitOpen itself and explicitly
configures the channels code later.

ok markus@

Upstream-ID: 11828f161656b965cc306576422613614bea2d8f

7 years agoupstream commit
djm@openbsd.org [Thu, 7 Sep 2017 23:48:09 +0000 (23:48 +0000)] 
upstream commit

typo in comment

Upstream-ID: a93b1e6f30f1f9b854b5b964b9fd092d0c422c47

7 years agoupstream commit
jmc@openbsd.org [Mon, 4 Sep 2017 06:34:43 +0000 (06:34 +0000)] 
upstream commit

tweak previous;

Upstream-ID: bb8cc40b61b15f6a13d81da465ac5bfc65cbfc4b

7 years agoFuzzer harnesses for sig verify and pubkey parsing
Damien Miller [Fri, 8 Sep 2017 02:44:13 +0000 (12:44 +1000)] 
Fuzzer harnesses for sig verify and pubkey parsing

These are some basic clang libfuzzer harnesses for signature
verification and public key parsing. Some assembly (metaphorical)
required.

7 years agoGive configure ability to set CFLAGS/LDFLAGS later
Damien Miller [Fri, 8 Sep 2017 02:38:31 +0000 (12:38 +1000)] 
Give configure ability to set CFLAGS/LDFLAGS later

Some CFLAGS/LDFLAGS may disrupt the configure script's operation,
in particular santization and fuzzer options that break assumptions
about memory and file descriptor dispositions.

This adds two flags to configure --with-cflags-after and
--with-ldflags-after that allow specifying additional compiler and
linker options that are added to the resultant Makefiles but not
used in the configure run itself.

E.g.

env CC=clang-3.9 ./configure \
  --with-cflags-after=-fsantize=address \
  --with-ldflags-after="-g -fsanitize=address"

7 years agoupstream commit
djm@openbsd.org [Sun, 3 Sep 2017 23:33:13 +0000 (23:33 +0000)] 
upstream commit

Expand ssh_config's StrictModes option with two new
settings:

StrictModes=accept-new will automatically accept hitherto-unseen keys
but will refuse connections for changed or invalid hostkeys.

StrictModes=off is the same as StrictModes=no

Motivation:

StrictModes=no combines two behaviours for host key processing:
automatically learning new hostkeys and continuing to connect to hosts
with invalid/changed hostkeys. The latter behaviour is quite dangerous
since it removes most of the protections the SSH protocol is supposed to
provide.

Quite a few users want to automatically learn hostkeys however, so
this makes that feature available with less danger.

At some point in the future, StrictModes=no will change to be a synonym
for accept-new, with its current behaviour remaining available via
StrictModes=off.

bz#2400, suggested by Michael Samuel; ok markus

Upstream-ID: 0f55502bf75fc93a74fb9853264a8276b9680b64

7 years agoupstream commit
jmc@openbsd.org [Fri, 1 Sep 2017 15:41:26 +0000 (15:41 +0000)] 
upstream commit

remove blank line;

Upstream-ID: 2f46b51a0ddb3730020791719e94d3e418e9f423

7 years agoupstream commit
djm@openbsd.org [Fri, 1 Sep 2017 05:53:56 +0000 (05:53 +0000)] 
upstream commit

identify the case where SSHFP records are missing but
other DNS RR types are present and display a more useful error message for
this case; patch by Thordur Bjornsson; bz#2501; ok dtucker@

Upstream-ID: 8f7a5a8344f684823d8317a9708b63e75be2c244

7 years agoupstream commit
djm@openbsd.org [Fri, 1 Sep 2017 05:50:48 +0000 (05:50 +0000)] 
upstream commit

document available AuthenticationMethods; bz#2453 ok
dtucker@

Upstream-ID: 2c70576f237bb699aff59889dbf2acba4276d3d0

7 years agoupstream commit
djm@openbsd.org [Wed, 30 Aug 2017 03:59:08 +0000 (03:59 +0000)] 
upstream commit

pass packet state down to some of the channels function
(more to come...); ok markus@

Upstream-ID: d8ce7a94f4059d7ac1e01fb0eb01de0c4b36c81b

7 years agoupstream commit
jmc@openbsd.org [Tue, 29 Aug 2017 13:05:58 +0000 (13:05 +0000)] 
upstream commit

sort options;

Upstream-ID: cf21d68cf54e81968bca629aaeddc87f0c684f3c

7 years agoupstream commit
dlg@openbsd.org [Tue, 29 Aug 2017 09:42:29 +0000 (09:42 +0000)] 
upstream commit

add a -q option to ssh-add to make it quiet on success.

if you want to silence ssh-add without this you generally redirect
the output to /dev/null, but that can hide error output which you
should see.

ok djm@

Upstream-ID: 2f31b9b13f99dcf587e9a8ba443458e6c0d8997c

7 years agoupstream commit
dtucker@openbsd.org [Sun, 27 Aug 2017 00:38:41 +0000 (00:38 +0000)] 
upstream commit

Increase the buffer sizes for user prompts to ensure that
they won't be truncated by snprintf.  Based on patch from cjwatson at
debian.org via bz#2768, ok djm@

Upstream-ID: 6ffacf1abec8f40b469de5b94bfb29997d96af3e

7 years agoSwitch Capsicum header to sys/capsicum.h.
Darren Tucker [Mon, 28 Aug 2017 06:48:27 +0000 (16:48 +1000)] 
Switch Capsicum header to sys/capsicum.h.

FreeBSD's <sys/capability.h> was renamed to <sys/capsicum.h> in 2014 to
avoid future conflicts with POSIX capabilities (the last release that
didn't have it was 9.3) so switch to that.  Patch from des at des.no.

7 years agoAdd missing includes for bsd-err.c.
Darren Tucker [Sat, 26 Aug 2017 22:55:40 +0000 (08:55 +1000)] 
Add missing includes for bsd-err.c.

Patch from cjwatson at debian.org via bz#2767.

7 years agoSplit platform_sys_dir_uid into its own file
Damien Miller [Fri, 25 Aug 2017 03:25:01 +0000 (13:25 +1000)] 
Split platform_sys_dir_uid into its own file

platform.o is too heavy for libssh.a use; it calls into the server on
many platforms. Move just the function needed by misc.c into its own
file.

7 years agomisc.c needs functions from platform.c now
Damien Miller [Wed, 23 Aug 2017 10:13:18 +0000 (20:13 +1000)] 
misc.c needs functions from platform.c now

7 years agoupstream commit
djm@openbsd.org [Fri, 18 Aug 2017 05:48:04 +0000 (05:48 +0000)] 
upstream commit

add a "quiet" flag to exited_cleanly() that supresses
errors about exit status (failure due to signal is still reported)

Upstream-ID: db85c39c3aa08e6ff67fc1fb4ffa89f807a9d2f0

7 years agoupstream commit
djm@openbsd.org [Fri, 18 Aug 2017 05:36:45 +0000 (05:36 +0000)] 
upstream commit

Move several subprocess-related functions from various
locations to misc.c. Extend subprocess() to offer a little more control over
stdio disposition.

feedback & ok dtucker@

Upstream-ID: 3573dd7109d13ef9bd3bed93a3deb170fbfce049

8 years agoupstream commit
djm@openbsd.org [Sat, 12 Aug 2017 06:46:01 +0000 (06:46 +0000)] 
upstream commit

make "--" before the hostname terminate command-line
option processing completely; previous behaviour would not prevent further
options appearing after the hostname (ssh has a supported options after the
hostname for >20 years, so that's too late to change).

ok deraadt@

Upstream-ID: ef5ee50571b98ad94dcdf8282204e877ec88ad89

8 years agoupstream commit
djm@openbsd.org [Sat, 12 Aug 2017 06:42:52 +0000 (06:42 +0000)] 
upstream commit

Switch from aes256-cbc to aes256-ctr for encrypting
new-style private keys. The latter having the advantage of being supported
for no-OpenSSL builds; bz#2754 ok markus@

Upstream-ID: 54179a2afd28f93470471030567ac40431e56909

8 years agoupstream commit
djm@openbsd.org [Fri, 11 Aug 2017 04:47:12 +0000 (04:47 +0000)] 
upstream commit

refuse to a private keys when its corresponding .pub key
does not match. bz#2737 ok dtucker@

Upstream-ID: 54ff5e2db00037f9db8d61690f26ef8f16e0d913

8 years agoupstream commit
djm@openbsd.org [Fri, 11 Aug 2017 04:41:08 +0000 (04:41 +0000)] 
upstream commit

don't print verbose error message when ssh disconnects
under sftp; bz#2750; ok dtucker@

Upstream-ID: 6d83708aed77b933c47cf155a87dc753ec01f370

8 years agoupstream commit
dtucker@openbsd.org [Fri, 11 Aug 2017 04:16:35 +0000 (04:16 +0000)] 
upstream commit

Tweak previous keepalive commit: if last_time + keepalive
<= now instead of just "<" so client_alive_check will fire if the select
happens to return on exact second of the timeout.  ok djm@

Upstream-ID: e02756bd6038d11bb8522bfd75a4761c3a684fcc

8 years agoupstream commit
dtucker@openbsd.org [Fri, 11 Aug 2017 03:58:36 +0000 (03:58 +0000)] 
upstream commit

Keep track of the last time we actually heard from the
client and use this to also schedule a client_alive_check().  Prevents
activity on a forwarded port from indefinitely preventing the select timeout
so that client_alive_check() will eventually (although not optimally) be
called.

Analysis by willchan at google com via bz#2756, feedback & ok djm@

Upstream-ID: c08721e0bbda55c6d18e2760f3fe1b17fb71169e

8 years agoExpose list of completed auth methods to PAM
Damien Miller [Fri, 28 Jul 2017 04:50:59 +0000 (14:50 +1000)] 
Expose list of completed auth methods to PAM

bz#2408; ok dtucker@

8 years agofix problems in tunnel forwarding portability code
Damien Miller [Fri, 21 Jul 2017 04:38:16 +0000 (14:38 +1000)] 
fix problems in tunnel forwarding portability code

This fixes a few problems in the tun forwarding code, mostly to do
with host/network byte order confusion.

Based on a  report and patch by stepe AT centaurus.uberspace.de;
bz#2735; ok dtucker@

8 years agoupstream commit
dtucker@openbsd.org [Tue, 25 Jul 2017 09:22:25 +0000 (09:22 +0000)] 
upstream commit

Make WinSCP patterns for SSH_OLD_DHGEX more specific to
exclude WinSCP 5.10.x and up.  bz#2748, from martin at winscp.net, ok djm@

Upstream-ID: 6fd7c32e99af3952db007aa180e73142ddbc741a

8 years agoupstream commit
djm@openbsd.org [Mon, 24 Jul 2017 04:34:28 +0000 (04:34 +0000)] 
upstream commit

g/c unused variable; make a little more portable

Upstream-ID: 3f5980481551cb823c6fb2858900f93fa9217dea

8 years agoupstream commit
djm@openbsd.org [Sun, 23 Jul 2017 23:37:02 +0000 (23:37 +0000)] 
upstream commit

Allow IPQoS=none in ssh/sshd to not set an explicit
ToS/DSCP value and just use the operating system default; ok dtucker@

Upstream-ID: 77906ff8c7b660b02ba7cb1e47b17d66f54f1f7e

8 years agomention libedit
Damien Miller [Fri, 21 Jul 2017 04:24:26 +0000 (14:24 +1000)] 
mention libedit

8 years agoupstream commit
markus@openbsd.org [Wed, 19 Jul 2017 08:30:41 +0000 (08:30 +0000)] 
upstream commit

fix support for unknown key types; ok djm@

Upstream-ID: 53fb29394ed04d616d65b3748dee5aa06b07ab48

8 years agoupstream commit
djm@openbsd.org [Wed, 19 Jul 2017 01:15:02 +0000 (01:15 +0000)] 
upstream commit

switch from select() to poll() for the ssh-agent
mainloop; ok markus

Upstream-ID: 4a94888ee67b3fd948fd10693973beb12f802448

8 years agoupstream commit
dtucker@openbsd.org [Fri, 14 Jul 2017 03:18:21 +0000 (03:18 +0000)] 
upstream commit

Make ""Killed by signal 1" LogLevel verbose so it's not
shown at the default level.  Prevents it from appearing during ssh -J and
equivalent ProxyCommand configs. bz#1906, bz#2744, feedback&ok markus@

Upstream-ID: debfaa7e859b272246c2f2633335d288d2e2ae28

8 years agoupstream commit
jmc@openbsd.org [Thu, 13 Jul 2017 19:16:33 +0000 (19:16 +0000)] 
upstream commit

man pages with pseudo synopses which list filenames end
up creating very ugly output in man -k; after some discussion with ingo, we
feel the simplest fix is to remove such SYNOPSIS sections: the info is hardly
helpful at page top, is contained already in FILES, and there are
sufficiently few that just zapping them is simple;

ok schwarze, who also helpfully ran things through a build to check
output;

Upstream-ID: 3e211b99457e2f4c925c5927d608e6f97431336c

8 years agoupstream commit
espie@openbsd.org [Mon, 10 Jul 2017 14:09:59 +0000 (14:09 +0000)] 
upstream commit

zap redundant Makefile variables. okay djm@

Upstream-ID: e39b3902fe1d6c4a7ba6a3c58e072219f3c1e604

8 years agoupstream commit
jmc@openbsd.org [Sat, 8 Jul 2017 18:32:54 +0000 (18:32 +0000)] 
upstream commit

slightly rework previous, to avoid an article issue;

Upstream-ID: 15a315f0460ddd3d4e2ade1f16d6c640a8c41b30

8 years agoupstream commit
djm@openbsd.org [Fri, 7 Jul 2017 03:53:12 +0000 (03:53 +0000)] 
upstream commit

When generating all hostkeys (ssh-keygen -A), clobber
existing keys if they exist but are zero length. zero-length keys could
previously be made if ssh-keygen failed part way through generating them, so
avoid that case too. bz#2561 reported by Krzysztof Cieplucha; ok dtucker@

Upstream-ID: f662201c28ab8e1f086b5d43c59cddab5ade4044

8 years agoupstream commit
djm@openbsd.org [Sat, 1 Jul 2017 22:55:44 +0000 (22:55 +0000)] 
upstream commit

actually remove these files

Upstream-ID: 1bd41cba06a7752de4df304305a8153ebfb6b0ac

8 years agoupstream commit
djm@openbsd.org [Sat, 1 Jul 2017 13:50:45 +0000 (13:50 +0000)] 
upstream commit

remove post-SSHv1 removal dead code from rsa.c and merge
the remaining bit that it still used into ssh-rsa.c; ok markus

Upstream-ID: ac8a048d24dcd89594b0052ea5e3404b473bfa2f

8 years agomake explicit_bzero/memset safe for sz=0
Damien Miller [Fri, 14 Jul 2017 04:26:36 +0000 (14:26 +1000)] 
make explicit_bzero/memset safe for sz=0

8 years agomodified: configure.ac
Tim Rice [Wed, 12 Jul 2017 01:47:56 +0000 (18:47 -0700)] 
modified:   configure.ac
UnixWare needs BROKEN_TCGETATTR_ICANON like Solaris
Analysis by Robbie Zhang

8 years agotypo
Damien Miller [Fri, 7 Jul 2017 01:21:27 +0000 (11:21 +1000)] 
typo

8 years agoupstream commit
dtucker@openbsd.org [Fri, 30 Jun 2017 04:17:23 +0000 (04:17 +0000)] 
upstream commit

Only call close once in confree().  ssh_packet_close will
close the FD so only explicitly close non-SSH channels.  bz#2734, from
bagajjal at microsoft.com, ok djm@

Upstream-ID: a81ce0c8b023527167739fccf1732b154718ab02

8 years agoUpdate link for my patches.
Darren Tucker [Thu, 29 Jun 2017 05:40:25 +0000 (15:40 +1000)] 
Update link for my patches.

8 years agoupstream commit
djm@openbsd.org [Wed, 28 Jun 2017 01:09:22 +0000 (01:09 +0000)] 
upstream commit

Allow ssh-keygen to use a key held in ssh-agent as a CA when
signing certificates. bz#2377 ok markus

Upstream-ID: fb42e920b592edcbb5b50465739a867c09329c8f

8 years agoupstream commit
djm@openbsd.org [Sat, 24 Jun 2017 06:35:24 +0000 (06:35 +0000)] 
upstream commit

regress test for ExposeAuthInfo

Upstream-Regress-ID: 190e5b6866376f4061c411ab157ca4d4e7ae86fd

8 years agoupstream commit
djm@openbsd.org [Sat, 24 Jun 2017 07:08:57 +0000 (07:08 +0000)] 
upstream commit

correct env var name

Upstream-ID: 721e761c2b1d6a4dcf700179f16fd53a1dadb313

8 years agoupstream commit
jmc@openbsd.org [Sat, 24 Jun 2017 06:57:04 +0000 (06:57 +0000)] 
upstream commit

spelling;

Upstream-ID: 606f933c8e2d0be902ea663946bc15e3eee40b25

8 years agoupstream commit
djm@openbsd.org [Sat, 24 Jun 2017 06:38:11 +0000 (06:38 +0000)] 
upstream commit

don't pass pointer to struct sshcipher between privsep
processes, just redo the lookup in each using the already-passed cipher name.
bz#2704 based on patch from Brooks Davis; ok markus dtucker

Upstream-ID: 2eab434c09bdf549dafd7da3e32a0d2d540adbe0

8 years agoupstream commit
djm@openbsd.org [Sat, 24 Jun 2017 06:34:38 +0000 (06:34 +0000)] 
upstream commit

refactor authentication logging

optionally record successful auth methods and public credentials
used in a file accessible to user sessions

feedback and ok markus@

Upstream-ID: 090b93036967015717b9a54fd0467875ae9d32fb

8 years agoupstream commit
jmc@openbsd.org [Sat, 24 Jun 2017 06:28:50 +0000 (06:28 +0000)] 
upstream commit

word fix;

Upstream-ID: 8539bdaf2366603a34a9b2f034527ca13bb795c5

8 years agoupstream commit
djm@openbsd.org [Sat, 24 Jun 2017 05:37:44 +0000 (05:37 +0000)] 
upstream commit

switch sshconnect.c from (slightly abused) select() to
poll(); ok deraadt@ a while back

Upstream-ID: efc1937fc591bbe70ac9e9542bb984f354c8c175

8 years agoupstream commit
djm@openbsd.org [Sat, 24 Jun 2017 05:35:05 +0000 (05:35 +0000)] 
upstream commit

use HostKeyAlias if specified instead of hostname for
matching host certificate principal names; bz#2728; ok dtucker@

Upstream-ID: dc2e11c83ae9201bbe74872a0c895ae9725536dd

8 years agoupstream commit
djm@openbsd.org [Sat, 24 Jun 2017 05:24:11 +0000 (05:24 +0000)] 
upstream commit

no need to call log_init to reinitialise logged PID in
child sessions, since we haven't called openlog() in log_init() since 1999;
ok markus@

Upstream-ID: 0906e4002af5d83d3d544df75e1187c932a3cf2e

8 years agoupstream commit
mestre@openbsd.org [Fri, 23 Jun 2017 07:24:48 +0000 (07:24 +0000)] 
upstream commit

When using the escape sequence &~ the code path is
client_loop() -> client_simple_escape_filter() -> process_escapes() -> fork()
and the pledge for this path lacks the proc promise and therefore aborts the
process. The solution is to just add proc the promise to this specific
pledge.

Reported by Gregoire Jadi gjadi ! omecha.info
Insight with tb@, OK jca@

Upstream-ID: 63c05e30c28209519f476023b65b0b1b0387a05b

8 years agoupstream commit
dtucker@openbsd.org [Fri, 23 Jun 2017 03:30:42 +0000 (03:30 +0000)] 
upstream commit

Import regenerated moduli.

Upstream-ID: b25bf747544265b39af74fe0716dc8d9f5b63b95

8 years agoupstream commit
dtucker@openbsd.org [Fri, 23 Jun 2017 03:25:53 +0000 (03:25 +0000)] 
upstream commit

Run the screen twice so we end up with more candidate
groups.  ok djm@

Upstream-ID: b92c93266d8234d493857bb822260dacf4366157

8 years agoupstream commit
dtucker@openbsd.org [Wed, 14 Jun 2017 00:31:38 +0000 (00:31 +0000)] 
upstream commit

Add user@host prefix to client's "Permisison denied"
messages, useful in particular when using "stacked" connections where it's
not clear which host is denying.  bz#2720, ok djm@ markus@

Upstream-ID: de88e1e9dcb050c98e85377482d1287a9fe0d2be

8 years agoupstream commit
djm@openbsd.org [Tue, 13 Jun 2017 12:13:59 +0000 (12:13 +0000)] 
upstream commit

Do not require that unknown EXT_INFO extension values not
contain \0 characters. This would cause fatal connection errors if an
implementation sent e.g. string-encoded sub-values inside a value.

Reported by Denis Bider; ok markus@

Upstream-ID: 030e10fdc605563c040244c4b4f1d8ae75811a5c

8 years agoupstream commit
djm@openbsd.org [Tue, 13 Jun 2017 11:22:15 +0000 (11:22 +0000)] 
upstream commit

missing prototype.

Upstream-ID: f443d2be9910fd2165a0667956d03343c46f66c9

8 years agoportability for sftp globbed ls sort by mtime
Damien Miller [Sat, 10 Jun 2017 13:41:25 +0000 (23:41 +1000)] 
portability for sftp globbed ls sort by mtime

Include replacement timespeccmp() for systems that lack it.
Support time_t struct stat->st_mtime in addition to
timespec stat->st_mtim, as well as unsorted fallback.

8 years agoupstream commit
djm@openbsd.org [Sat, 10 Jun 2017 06:36:46 +0000 (06:36 +0000)] 
upstream commit

print '?' instead of incorrect link count (that the
protocol doesn't provide) for remote listings. bz#2710 ok dtucker@

Upstream-ID: c611f98a66302cea452ef10f13fff8cf0385242e

8 years agoupstream commit
djm@openbsd.org [Sat, 10 Jun 2017 06:33:34 +0000 (06:33 +0000)] 
upstream commit

implement sorting for globbed ls; bz#2649 ok dtucker@

Upstream-ID: ed3110f351cc9703411bf847ba864041fb7216a8

8 years agoupstream commit
djm@openbsd.org [Fri, 9 Jun 2017 06:47:13 +0000 (06:47 +0000)] 
upstream commit

return failure rather than fatal() for more cases during
mux negotiations. Causes the session to fall back to a non-mux connection if
they occur. bz#2707 ok dtucker@

Upstream-ID: d2a7892f464d434e1f615334a1c9d0cdb83b29ab