]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
8 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

8 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

8 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

8 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

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

tweak previous;

Upstream-ID: bb8cc40b61b15f6a13d81da465ac5bfc65cbfc4b

8 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.

8 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"

8 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

8 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

8 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

8 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

8 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

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

sort options;

Upstream-ID: cf21d68cf54e81968bca629aaeddc87f0c684f3c

8 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

8 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

8 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.

8 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.

8 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.

8 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

8 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

8 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

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

in description of public key authentication, mention that
the server will send debug messages to the client for some error conditions
after authentication has completed. bz#2709 ok dtucker

Upstream-ID: 750127dbd58c5a2672c2d28bc35fe221fcc8d1dd

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

better translate libcrypto errors by looking deeper in
the accursed error stack for codes that indicate the wrong passphrase was
supplied for a PEM key. bz#2699 ok dtucker@

Upstream-ID: 4da4286326d570f4f0489459bb71f6297e54b681

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

Add comments referring to the relevant RFC sections for
rekeying behaviour.

Upstream-ID: 6fc8e82485757a27633f9175ad00468f49a07d40

8 years agodrop two more privileges in the Solaris sandbox
Damien Miller [Fri, 9 Jun 2017 04:43:47 +0000 (14:43 +1000)] 
drop two more privileges in the Solaris sandbox

Drop PRIV_DAX_ACCESS and PRIV_SYS_IB_INFO.
Patch from huieying.lee AT oracle.com via bz#2723

8 years agoWrap stdint.h include in #ifdef.
Darren Tucker [Fri, 9 Jun 2017 03:36:29 +0000 (13:36 +1000)] 
Wrap stdint.h include in #ifdef.

8 years agoupstream commit
djm@openbsd.org [Wed, 7 Jun 2017 01:48:15 +0000 (01:48 +0000)] 
upstream commit

unbreak after sshv1 purge

Upstream-Regress-ID: 8ea01a92d5f571b9fba88c1463a4254a7552d51b

8 years agoupstream commit
dtucker@openbsd.org [Tue, 6 Jun 2017 09:12:17 +0000 (09:12 +0000)] 
upstream commit

Fix compression output stats broken in rev 1.201.  Patch
originally by Russell Coker via Debian bug #797964 and Christoph Biedl.  ok
djm@

Upstream-ID: 83a1903b95ec2e4ed100703debb4b4a313b01016

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

rationalise the long list of manual CDIAGFLAGS that we
add; most of these were redundant to -Wall -Wextra

Upstream-ID: ea80f445e819719ccdcb237022cacfac990fdc5c

8 years agoupstream commit
djm@openbsd.org [Thu, 1 Jun 2017 06:59:21 +0000 (06:59 +0000)] 
upstream commit

no need to bzero allocated space now that we use use
recallocarray; ok deraadt@

Upstream-ID: 53333c62ccf97de60b8cb570608c1ba5ca5803c8

8 years agoupstream commit
djm@openbsd.org [Thu, 1 Jun 2017 06:58:25 +0000 (06:58 +0000)] 
upstream commit

unconditionally zero init size of buffer; ok markus@
deraadt@

Upstream-ID: 218963e846d8f26763ba25afe79294547b99da29

8 years agoavoid compiler warning
Damien Miller [Thu, 1 Jun 2017 06:25:09 +0000 (16:25 +1000)] 
avoid compiler warning

8 years agoupstream commit
djm@openbsd.org [Thu, 1 Jun 2017 06:16:43 +0000 (06:16 +0000)] 
upstream commit

some warnings spotted by clang; ok markus@

Upstream-ID: 24381d68ca249c5cee4388ceb0f383fa5b43991b

8 years agoadd recallocarray replacement and dependency
Damien Miller [Thu, 1 Jun 2017 05:25:13 +0000 (15:25 +1000)] 
add recallocarray replacement and dependency

recallocarray() needs getpagesize() so add a tiny replacement for that.

8 years agoadd *.0 manpage droppings
Damien Miller [Thu, 1 Jun 2017 05:16:24 +0000 (15:16 +1000)] 
add *.0 manpage droppings

8 years agoupstream commit
djm@openbsd.org [Thu, 1 Jun 2017 04:51:58 +0000 (04:51 +0000)] 
upstream commit

fix casts re constness

Upstream-ID: e38f2bac162b37dbaf784d349c8327a6626fa266

8 years agoupstream commit
markus@openbsd.org [Wed, 31 May 2017 10:54:00 +0000 (10:54 +0000)] 
upstream commit

make sure we don't pass a NULL string to vfprintf
(triggered by the principals-command regress test); ok bluhm

Upstream-ID: eb49854f274ab37a0b57056a6af379a0b7111990

8 years agoupstream commit
markus@openbsd.org [Wed, 31 May 2017 10:04:29 +0000 (10:04 +0000)] 
upstream commit

use SO_ZEROIZE for privsep communication (if available)

Upstream-ID: abcbb6d2f8039fc4367a6a78096e5d5c39de4a62

8 years agoupstream commit
deraadt@openbsd.org [Wed, 31 May 2017 09:15:42 +0000 (09:15 +0000)] 
upstream commit

Switch to recallocarray() for a few operations.  Both
growth and shrinkage are handled safely, and there also is no need for
preallocation dances. Future changes in this area will be less error prone.
Review and one bug found by markus

Upstream-ID: 822d664d6a5a1d10eccb23acdd53578a679d5065

8 years agoupstream commit
deraadt@openbsd.org [Wed, 31 May 2017 08:58:52 +0000 (08:58 +0000)] 
upstream commit

These shutdown() SHUT_RDWR are not needed before close()
ok djm markus claudio

Upstream-ID: 36f13ae4ba10f5618cb9347933101eb4a98dbcb5

8 years agoupstream commit
markus@openbsd.org [Wed, 31 May 2017 08:09:45 +0000 (08:09 +0000)] 
upstream commit

clear session keys from memory; ok djm@

Upstream-ID: ecd178819868975affd5fd6637458b7c712b6a0f

8 years agoupstream commit
markus@openbsd.org [Wed, 31 May 2017 07:00:13 +0000 (07:00 +0000)] 
upstream commit

remove now obsolete ctx from ssh_dispatch_run; ok djm@

Upstream-ID: 9870aabf7f4d71660c31fda91b942b19a8e68d29

8 years agoupstream commit
markus@openbsd.org [Wed, 31 May 2017 05:34:14 +0000 (05:34 +0000)] 
upstream commit

use the ssh_dispatch_run_fatal variant

Upstream-ID: 28c5b364e37c755d1b22652b8cd6735a05c625d8

8 years agoupstream commit
djm@openbsd.org [Wed, 31 May 2017 05:08:46 +0000 (05:08 +0000)] 
upstream commit

another ctx => ssh conversion (in GSSAPI code)

Upstream-ID: 4d6574c3948075c60608d8e045af42fe5b5d8ae0

8 years agofix conversion of kexc25519s.c to struct ssh too
Damien Miller [Wed, 31 May 2017 04:56:07 +0000 (14:56 +1000)] 
fix conversion of kexc25519s.c to struct ssh too

git cvsimport missed this commit for some reason

8 years agoupstream commit
djm@openbsd.org [Wed, 31 May 2017 04:29:44 +0000 (04:29 +0000)] 
upstream commit

spell out that custom options/extensions should follow the
usual SSH naming rules, e.g. "extension@example.com"

Upstream-ID: ab326666d2fad40769ec96b5a6de4015ffd97b8d

8 years agoupstream commit
djm@openbsd.org [Wed, 31 May 2017 04:17:12 +0000 (04:17 +0000)] 
upstream commit

one more void *ctx => struct ssh *ssh conversion

Upstream-ID: d299d043471c10214cf52c03daa10f1c232759e2

8 years agoupstream commit
djm@openbsd.org [Wed, 31 May 2017 00:43:04 +0000 (00:43 +0000)] 
upstream commit

fix possible OOB strlen() in SOCKS4A hostname parsing;
ok markus@

Upstream-ID: c67297cbeb0e5a19d81752aa18ec44d31270cd11

8 years agoupstream commit
jmc@openbsd.org [Tue, 30 May 2017 19:38:17 +0000 (19:38 +0000)] 
upstream commit

tweak previous;

Upstream-ID: 66987651046c42d142f7318c9695fb81a6d14031

8 years agoupstream commit
bluhm@openbsd.org [Tue, 30 May 2017 18:58:37 +0000 (18:58 +0000)] 
upstream commit

Add RemoteCommand option to specify a command in the
ssh config file instead of giving it on the client's command line.  This
command will be executed on the remote host.  The feature allows to automate
tasks using ssh config. OK markus@

Upstream-ID: 5d982fc17adea373a9c68cae1021ce0a0904a5ee

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:29:59 +0000 (14:29 +0000)] 
upstream commit

switch auth2 to ssh_dispatch API; ok djm@

Upstream-ID: a752ca19e2782900dd83060b5c6344008106215f

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:27:22 +0000 (14:27 +0000)] 
upstream commit

switch auth2-none.c to modern APIs; ok djm@

Upstream-ID: 07252b58e064d332214bcabbeae8e08c44b2001b

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:26:49 +0000 (14:26 +0000)] 
upstream commit

switch auth2-passwd.c to modern APIs; ok djm@

Upstream-ID: cba0a8b72b4f97adfb7e3b3fd2f8ba3159981fc7

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:25:42 +0000 (14:25 +0000)] 
upstream commit

switch auth2-hostbased.c to modern APIs; ok djm@

Upstream-ID: 146af25c36daeeb83d5dbbb8ca52b5d25de88f4e