]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
8 years agoremove configure --with-ssh1
Damien Miller [Sun, 30 Apr 2017 23:55:56 +0000 (09:55 +1000)] 
remove configure --with-ssh1

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:29:10 +0000 (23:29 +0000)] 
upstream commit

flense SSHv1 support from ssh-agent, considerably
simplifying it

ok markus

Upstream-ID: 71d772cdcefcb29f76e01252e8361e6fc2dfc365

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:28:41 +0000 (23:28 +0000)] 
upstream commit

obliterate ssh1.h and some dead code that used it

ok markus@

Upstream-ID: 1ca9159a9fb95618f9d51e069ac8e1131a087343

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:28:12 +0000 (23:28 +0000)] 
upstream commit

exterminate the -1 flag from scp

ok markus@

Upstream-ID: 26d247f7065da15056b209cef5f594ff591b89db

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:26:54 +0000 (23:26 +0000)] 
upstream commit

purge the last traces of SSHv1 from the TTY modes
handling code

ok markus

Upstream-ID: 963a19f1e06577377c38a3b7ce468f121b966195

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:26:16 +0000 (23:26 +0000)] 
upstream commit

remove the (in)famous SSHv1 CRC compensation attack
detector.

Despite your cameo in The Matrix movies, you will not be missed.

ok markus

Upstream-ID: 44261fce51a56d93cdb2af7b6e184be629f667e0

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:25:03 +0000 (23:25 +0000)] 
upstream commit

undo some local debugging stuff that I committed by
accident

Upstream-ID: fe5b31f69a60d47171836911f144acff77810217

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:23:54 +0000 (23:23 +0000)] 
upstream commit

remove SSHv1 support from packet and buffer APIs

ok markus@

Upstream-ID: bfc290053d40b806ecac46317d300677d80e1dc9

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:21:54 +0000 (23:21 +0000)] 
upstream commit

remove SSHv1-related buffers from client code

Upstream-ID: dca5d01108f891861ceaf7ba1c0f2eb274e0c7dd

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:18:44 +0000 (23:18 +0000)] 
upstream commit

remove KEY_RSA1

ok markus@

Upstream-ID: 7408517b077c892a86b581e19f82a163069bf133

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:18:22 +0000 (23:18 +0000)] 
upstream commit

remove SSHv1 configuration options and man pages bits

ok markus@

Upstream-ID: 84638c23546c056727b7a7d653c72574e0f19424

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

remove SSH1 make flag and associated files ok markus@

Upstream-ID: ba9feacc5787337c413db7cf26ea3d53f854cfef

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:15:04 +0000 (23:15 +0000)] 
upstream commit

remove SSHv1 ciphers; ok markus@

Upstream-ID: e5ebc5e540d7f23a8c1266db1839794d4d177890

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:13:25 +0000 (23:13 +0000)] 
upstream commit

remove compat20/compat13/compat15 variables

ok markus@

Upstream-ID: 43802c035ceb3fef6c50c400e4ecabf12354691c

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:11:45 +0000 (23:11 +0000)] 
upstream commit

remove options.protocol and client Protocol
configuration knob

ok markus@

Upstream-ID: 5a967f5d06e2d004b0235457b6de3a9a314e9366

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:10:43 +0000 (23:10 +0000)] 
upstream commit

unifdef WITH_SSH1 ok markus@

Upstream-ID: 9716e62a883ef8826c57f4d33b4a81a9cc7755c7

8 years agoupstream commit
jmc@openbsd.org [Sat, 29 Apr 2017 06:06:01 +0000 (06:06 +0000)] 
upstream commit

tweak previous;

Upstream-ID: a3abc6857455299aa42a046d232b7984568bceb9

8 years agoupstream commit
djm@openbsd.org [Sat, 29 Apr 2017 04:12:25 +0000 (04:12 +0000)] 
upstream commit

allow ssh-keygen to include arbitrary string or flag
certificate extensions and critical options. ok markus@ dtucker@

Upstream-ID: 2cf28dd6c5489eb9fc136e0b667ac3ea10241646

8 years agoupstream commit
jmc@openbsd.org [Fri, 28 Apr 2017 06:15:03 +0000 (06:15 +0000)] 
upstream commit

sort;

Upstream-ID: 7e6b56e52b039cf44d0418e9de9aca20a2d2d15a

8 years agoTypo.
Darren Tucker [Fri, 28 Apr 2017 04:44:28 +0000 (14:44 +1000)] 
Typo.

Upstream-Regress-ID: 1e6b51ddf767cbad0a4e63eb08026c127e654308

8 years agoAdd 2 regress commits I applied by hand.
Darren Tucker [Fri, 28 Apr 2017 04:41:17 +0000 (14:41 +1000)] 
Add 2 regress commits I applied by hand.

Upstream-Regress-ID: 30c20180c87cbc99fa1020489fe7fd8245b6420c
Upstream-Regress-ID: 1e6b51ddf767cbad0a4e63eb08026c127e654308

8 years agoMerge integrity.sh rev 1.22.
Darren Tucker [Fri, 28 Apr 2017 04:33:43 +0000 (14:33 +1000)] 
Merge integrity.sh rev 1.22.

Merge missing bits from Colin Watson's patch in bz#2658 which make integrity
tests more robust against timeouts.  ok djm@

8 years agoId sync for integrity.sh rev 1.21 which pulls in some shell portability fixes
Darren Tucker [Fri, 28 Apr 2017 04:30:03 +0000 (14:30 +1000)] 
Id sync for integrity.sh rev 1.21 which pulls in some shell portability fixes

8 years agoupstream commit
jsg@openbsd.org [Mon, 17 Apr 2017 11:02:31 +0000 (11:02 +0000)] 
upstream commit

Change COMPILER_VERSION tests which limited additional
warnings to gcc4 to instead skip them on gcc3 as clang can handle
-Wpointer-sign and -Wold-style-definition.

Upstream-Regress-ID: e48d7dc13e48d9334b8195ef884dfbc51316012f

8 years agoupstream commit
djm@openbsd.org [Fri, 28 Apr 2017 03:24:53 +0000 (03:24 +0000)] 
upstream commit

include key fingerprint in "Offering public key" debug
message

Upstream-ID: 964749f820c2ed4cf6a866268b1a05e907315c52

8 years agoupstream commit
millert@openbsd.org [Fri, 28 Apr 2017 03:21:12 +0000 (03:21 +0000)] 
upstream commit

Avoid relying on implementation-specific behavior when
detecting whether the timestamp or file size overflowed.  If time_t and off_t
are not either 32-bit or 64-bit scp will exit with an error. OK djm@

Upstream-ID: f31caae73ddab6df496b7bbbf7da431e267ad135

8 years agoupstream commit
dtucker@openbsd.org [Fri, 28 Apr 2017 03:20:27 +0000 (03:20 +0000)] 
upstream commit

Add SyslogFacility option to ssh(1) matching the
equivalent option in sshd(8).  bz#2705, patch from erahn at arista.com, ok
djm@

Upstream-ID: d5115c2c0193ceb056ed857813b2a7222abda9ed

8 years agoupstream commit
jsg@openbsd.org [Thu, 27 Apr 2017 13:40:05 +0000 (13:40 +0000)] 
upstream commit

remove a static array unused since rev 1.306 spotted by
clang ok djm@

Upstream-ID: 249b3eed2446f6074ba2219ccc46919dd235a7b8

8 years agoupstream commit
millert@openbsd.org [Thu, 27 Apr 2017 11:53:12 +0000 (11:53 +0000)] 
upstream commit

Avoid potential signed int overflow when parsing the file
size. Use strtoul() instead of parsing manually.  OK djm@

Upstream-ID: 1f82640861c7d905bbb05e7d935d46b0419ced02

8 years agoFix typo in "socketcall".
Darren Tucker [Mon, 24 Apr 2017 22:32:27 +0000 (08:32 +1000)] 
Fix typo in "socketcall".

Pointed out by jjelen at redhat.com.

8 years agoDeny socketcall in seccomp filter on ppc64le.
Darren Tucker [Mon, 24 Apr 2017 09:40:31 +0000 (19:40 +1000)] 
Deny socketcall in seccomp filter on ppc64le.

OpenSSL is using socket() calls (in FIPS mode) when handling ECDSA keys
in privsep child. The socket() syscall is already denied in the seccomp
filter, but in ppc64le kernel, it is implemented using socketcall()
syscall, which is not denied yet (only SYS_SHUTDOWN is allowed) and
therefore fails hard.

Patch from jjelen at redhat.com.

8 years agoupstream commit
schwarze@openbsd.org [Mon, 17 Apr 2017 14:31:23 +0000 (14:31 +0000)] 
upstream commit

Recognize nl_langinfo(CODESET) return values "646" and ""
as aliases for "US-ASCII", useful for different versions of NetBSD and
Solaris. Found by dtucker@ and by Tom G. Christensen <tgc at jupiterrise dot
com>. OK dtucker@ deraadt@

Upstream-ID: 38c2133817cbcae75c88c63599ac54228f0fa384

8 years agoupstream commit
jsg@openbsd.org [Mon, 17 Apr 2017 11:02:31 +0000 (11:02 +0000)] 
upstream commit

Change COMPILER_VERSION tests which limited additional
warnings to gcc4 to instead skip them on gcc3 as clang can handle
-Wpointer-sign and -Wold-style-definition.

Upstream-ID: 5cbe348aa76dc1adf55be6c0e388fafaa945439a

8 years agoupstream commit
djm@openbsd.org [Tue, 4 Apr 2017 00:24:56 +0000 (00:24 +0000)] 
upstream commit

disallow creation (of empty files) in read-only mode;
reported by Michal Zalewski, feedback & ok deraadt@

Upstream-ID: 5d9c8f2fa8511d4ecf95322994ffe73e9283899b

8 years agoupstream commit
deraadt@openbsd.org [Sun, 26 Mar 2017 00:18:52 +0000 (00:18 +0000)] 
upstream commit

incorrect renditions of this quote bother me

Upstream-ID: 1662be3ebb7a71d543da088119c31d4d463a9e49

8 years agoCheck for and use gcc's -pipe.
Darren Tucker [Fri, 31 Mar 2017 00:04:43 +0000 (11:04 +1100)] 
Check for and use gcc's -pipe.

Speeds up configure and build by a couple of percent.  ok djm@

8 years agoImport fmt_scaled.c rev 1.16 from OpenBSD.
Darren Tucker [Wed, 29 Mar 2017 05:34:44 +0000 (16:34 +1100)] 
Import fmt_scaled.c rev 1.16 from OpenBSD.

Fix overly-conservative overflow checks on mulitplications and add checks
on additions.  This allows scan_scaled to work up to +/-LLONG_MAX (LLONG_MIN
will still be flagged as a range error).  ok millert@

8 years agoImport fmt_scaled.c rev 1.15 from OpenBSD.
Darren Tucker [Wed, 29 Mar 2017 05:34:02 +0000 (16:34 +1100)] 
Import fmt_scaled.c rev 1.15 from OpenBSD.

Collapse underflow and overflow checks into a single block.
ok djm@ millert@

8 years agoImport fmt_scaled.c rev 1.14 from OpenBSD.
Darren Tucker [Wed, 29 Mar 2017 05:32:57 +0000 (16:32 +1100)] 
Import fmt_scaled.c rev 1.14 from OpenBSD.

Catch integer underflow in scan_scaled reported by Nicolas Iooss.
ok deraadt@ djm@

8 years agoDon't check privsep user or path when unprivileged
Darren Tucker [Wed, 29 Mar 2017 01:39:39 +0000 (12:39 +1100)] 
Don't check privsep user or path when unprivileged

If running with privsep (mandatory now) as a non-privileged user, we
don't chroot or change to an unprivileged user however we still checked
the existence of the user and directory.  Don't do those checks if we're
not going to use them.  Based in part on a patch from Lionel Fourquaux
via Corinna Vinschen, ok djm@

8 years agoRemove SHA256 EVP wrapper implementation.
Darren Tucker [Tue, 28 Mar 2017 23:50:31 +0000 (10:50 +1100)] 
Remove SHA256 EVP wrapper implementation.

All supported versions of OpenSSL should now have SHA256 so remove our
EVP wrapper implementaion.  ok djm@

8 years agoRemove check for OpenSSL < 0.9.8g.
Darren Tucker [Tue, 28 Mar 2017 23:23:58 +0000 (10:23 +1100)] 
Remove check for OpenSSL < 0.9.8g.

We no longer support OpenSSL < 1.0.1 so remove check for unreliable ECC
in OpenSSL < 0.9.8g.

8 years agoRemove compat code for OpenSSL < 0.9.7.
Darren Tucker [Tue, 28 Mar 2017 23:16:15 +0000 (10:16 +1100)] 
Remove compat code for OpenSSL < 0.9.7.

Resyncs that code with OpenBSD upstream.

8 years agoRemove SSHv1 code path.
Darren Tucker [Tue, 28 Mar 2017 22:50:54 +0000 (09:50 +1100)] 
Remove SSHv1 code path.

Server-side support for Protocol 1 has been removed so remove !compat20
PAM code path.

8 years agoEnable ldns when using ldns-config.
Darren Tucker [Thu, 23 Mar 2017 22:44:56 +0000 (09:44 +1100)] 
Enable ldns when using ldns-config.

Actually enable ldns when attempting to use ldns-config.  bz#2697, patch
from fredrik at fornwall.net.

8 years agoMissing header on Linux/s390
Damien Miller [Wed, 22 Mar 2017 01:43:02 +0000 (12:43 +1100)] 
Missing header on Linux/s390

Patch from Jakub Jelen

8 years agoupstream commit
djm@openbsd.org [Mon, 20 Mar 2017 22:08:06 +0000 (22:08 +0000)] 
upstream commit

remove /usr/bin/time calls around tests, makes diffing test
runs harder. Based on patch from Mike Frysinger

Upstream-Regress-ID: 81c1083b14dcf473b23d2817882f40b346ebc95c

8 years agoFix syntax error on Linux/X32
Damien Miller [Mon, 20 Mar 2017 21:47:55 +0000 (08:47 +1100)] 
Fix syntax error on Linux/X32

Patch from Mike Frysinger

8 years agoAdd llabs() implementation. V_7_5_P1
Darren Tucker [Mon, 20 Mar 2017 02:38:27 +0000 (13:38 +1100)] 
Add llabs() implementation.

8 years agocrank version numbers
Damien Miller [Mon, 20 Mar 2017 01:23:04 +0000 (12:23 +1100)] 
crank version numbers

8 years agoupstream commit
djm@openbsd.org [Mon, 20 Mar 2017 01:18:59 +0000 (01:18 +0000)] 
upstream commit

openssh-7.5

Upstream-ID: b8b9a4a949427c393cd868215e1724ceb3467ee5

8 years agoI'm a doofus.
Damien Miller [Mon, 20 Mar 2017 01:07:20 +0000 (12:07 +1100)] 
I'm a doofus.

Unbreak obvious syntax error.

8 years agoon Cygwin, check paths from server for backslashes
Damien Miller [Mon, 20 Mar 2017 00:53:34 +0000 (11:53 +1100)] 
on Cygwin, check paths from server for backslashes

Pointed out by Jann Horn of Google Project Zero

8 years agoYet another synonym for ASCII: "646"
Damien Miller [Mon, 20 Mar 2017 00:48:34 +0000 (11:48 +1100)] 
Yet another synonym for ASCII: "646"

Used by NetBSD; this unbreaks mprintf() and friends there for the C
locale (caught by dtucker@ and his menagerie of test systems).

8 years agocreate test mux socket in /tmp
Damien Miller [Sun, 19 Mar 2017 22:58:34 +0000 (09:58 +1100)] 
create test mux socket in /tmp

Creating the socket in $OBJ could blow past the (quite limited)
path limit for Unix domain sockets. As a bandaid for bz#2660,
reported by Colin Watson; ok dtucker@

8 years agoupstream commit
markus@openbsd.org [Wed, 15 Mar 2017 07:07:39 +0000 (07:07 +0000)] 
upstream commit

disallow KEXINIT before NEWKEYS; ok djm; report by
vegard.nossum at oracle.com

Upstream-ID: 3668852d1f145050e62f1da08917de34cb0c5234

8 years agoInclude includes.h for compat bits.
Darren Tucker [Thu, 16 Mar 2017 03:05:46 +0000 (14:05 +1100)] 
Include includes.h for compat bits.

8 years agoWrap stdint.h in #ifdef HAVE_STDINT_H
Darren Tucker [Thu, 16 Mar 2017 02:45:17 +0000 (13:45 +1100)] 
Wrap stdint.h in #ifdef HAVE_STDINT_H

8 years agoAdapt Cygwin config script to privsep knob removal
Damien Miller [Thu, 16 Mar 2017 00:22:42 +0000 (11:22 +1100)] 
Adapt Cygwin config script to privsep knob removal

Patch from Corinna Vinschen.

8 years agoupstream commit
deraadt@openbsd.org [Wed, 15 Mar 2017 03:52:30 +0000 (03:52 +0000)] 
upstream commit

accidents happen to the best of us; ok djm

Upstream-ID: b7a9dbd71011ffde95e06f6945fe7197dedd1604

8 years agoupstream commit
djm@openbsd.org [Wed, 15 Mar 2017 02:25:09 +0000 (02:25 +0000)] 
upstream commit

fix regression in 7.4: deletion of PKCS#11-hosted keys
would fail unless they were specified by full physical pathname. Report and
fix from Jakub Jelen via bz#2682; ok dtucker@

Upstream-ID: 5b5bc20ca11cacb5d5eb29c3f93fd18425552268

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

Fix segfault when sshd attempts to load RSA1 keys (can
only happen when protocol v.1 support is enabled for the client). Reported by
Jakub Jelen in bz#2686; ok dtucker

Upstream-ID: 8fdaec2ba4b5f65db1d094f6714ce64b25d871d7

8 years agoupstream commit
djm@openbsd.org [Tue, 14 Mar 2017 07:19:07 +0000 (07:19 +0000)] 
upstream commit

Mark the sshd_config UsePrivilegeSeparation option as
deprecated, effectively making privsep mandatory in sandboxing mode. ok
markus@ deraadt@

(note: this doesn't remove the !privsep code paths, though that will
happen eventually).

Upstream-ID: b4c52666256c4dd865f8ce9431af5d6ce2d74a0a

8 years agoMake seccomp-bpf sandbox work on Linux/X32
Damien Miller [Tue, 14 Mar 2017 07:26:29 +0000 (18:26 +1100)] 
Make seccomp-bpf sandbox work on Linux/X32

Allow clock_gettime syscall with X32 bit masked off. Apparently
this is required for at least some kernel versions. bz#2142
Patch mostly by Colin Watson. ok dtucker@

8 years agorequire OpenSSL >=1.0.1
Damien Miller [Tue, 14 Mar 2017 07:01:52 +0000 (18:01 +1100)] 
require OpenSSL >=1.0.1

8 years agoRemove macro trickery; no binary change
Damien Miller [Tue, 14 Mar 2017 06:48:43 +0000 (17:48 +1100)] 
Remove macro trickery; no binary change

This stops the SC_ALLOW(), SC_ALLOW_ARG() and SC_DENY() macros
prepending __NR_ to the syscall number parameter and just makes
them explicit in the macro invocations.

No binary change in stripped object file before/after.

8 years agosupport ioctls for ICA crypto card on Linux/s390
Damien Miller [Tue, 14 Mar 2017 02:15:18 +0000 (13:15 +1100)] 
support ioctls for ICA crypto card on Linux/s390

Based on patch from Eduardo Barretto; ok dtucker@

8 years agoPlumb conversion test into makefile.
Darren Tucker [Tue, 14 Mar 2017 03:19:36 +0000 (14:19 +1100)] 
Plumb conversion test into makefile.

8 years agoupstream commit
dtucker@openbsd.org [Tue, 14 Mar 2017 01:20:29 +0000 (01:20 +0000)] 
upstream commit

Add unit test for convtime().

Upstream-Regress-ID: 8717bc0ca4c21120f6dd3a1d3b7a363f707c31e1

8 years agoupstream commit
dtucker@openbsd.org [Tue, 14 Mar 2017 01:10:07 +0000 (01:10 +0000)] 
upstream commit

Add ASSERT_LONG_* helpers.

Upstream-Regress-ID: fe15beaea8f5063c7f21b0660c722648e3d76431

8 years agoupstream commit
dtucker@openbsd.org [Tue, 14 Mar 2017 00:55:37 +0000 (00:55 +0000)] 
upstream commit

Fix convtime() overflow test on boundary condition,
spotted by & ok djm.

Upstream-ID: 51f14c507ea87a3022e63f574100613ab2ba5708

8 years agoupstream commit
dtucker@openbsd.org [Tue, 14 Mar 2017 00:25:03 +0000 (00:25 +0000)] 
upstream commit

Check for integer overflow when parsing times in
convtime().  Reported by nicolas.iooss at m4x.org, ok djm@

Upstream-ID: 35e6a4e98f6fa24df50bfb8ba1307cf70e966f13

8 years agoAdd a "unit" target to run only unit tests.
Darren Tucker [Tue, 14 Mar 2017 02:38:15 +0000 (13:38 +1100)] 
Add a "unit" target to run only unit tests.

8 years agoFix weakness in seccomp-bpf sandbox arg inspection
Damien Miller [Tue, 14 Mar 2017 01:24:47 +0000 (12:24 +1100)] 
Fix weakness in seccomp-bpf sandbox arg inspection

Syscall arguments are passed via an array of 64-bit values in struct
seccomp_data, but we were only inspecting the bottom 32 bits and not
even those correctly for BE systems.

Fortunately, the only case argument inspection was used was in the
socketcall filtering so using this for sandbox escape seems
impossible.

ok dtucker

8 years agoupstream commit
djm@openbsd.org [Sat, 11 Mar 2017 23:44:16 +0000 (23:44 +0000)] 
upstream commit

regress tests for loading certificates without public keys;
bz#2617 based on patch from Adam Eijdenberg; ok markus@ dtucker@

Upstream-Regress-ID: 0145d19328ed995b73fe2d9da33596b17429d0d0

8 years agoupstream commit
djm@openbsd.org [Sat, 11 Mar 2017 23:40:26 +0000 (23:40 +0000)] 
upstream commit

allow ssh to use certificates accompanied by a private
key file but no corresponding plain *.pub public key. bz#2617 based on patch
from Adam Eijdenberg; ok dtucker@ markus@

Upstream-ID: 295668dca2c39505281577217583ddd2bd4b00b9

8 years agoupstream commit
markus@openbsd.org [Sat, 11 Mar 2017 13:07:35 +0000 (13:07 +0000)] 
upstream commit

Don't count the initial block twice when computing how
many bytes to discard for the work around for the attacks against CBC-mode.
ok djm@; report from Jean Paul, Kenny, Martin and Torben @ RHUL

Upstream-ID: f445f509a4e0a7ba3b9c0dae7311cb42458dc1e2

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 07:18:32 +0000 (07:18 +0000)] 
upstream commit

krl.c

Upstream-ID: fc5e695d5d107d730182e2da7b23f00b489e0ee1

8 years agosync fmt_scaled.c with OpenBSD
Damien Miller [Sat, 11 Mar 2017 23:48:14 +0000 (10:48 +1100)] 
sync fmt_scaled.c with OpenBSD

revision 1.13
date: 2017/03/11 23:37:23;  author: djm;  state: Exp;  lines: +14 -1;  commitid: jnFKyHkB3CEiEZ2R;
fix signed integer overflow in scan_scaled. Found by Nicolas Iooss
using AFL against ssh_config. ok deraadt@ millert@
----------------------------
revision 1.12
date: 2013/11/29 19:00:51;  author: deraadt;  state: Exp;  lines: +6 -5;
fairly simple unsigned char casts for ctype
ok krw
----------------------------
revision 1.11
date: 2012/11/12 14:07:20;  author: halex;  state: Exp;  lines: +4 -2;
make scan_scaled set errno to EINVAL rather than ERANGE if it encounters
an invalid multiplier, like the man page says it should

"looks sensible" deraadt@, ok ian@
----------------------------
revision 1.10
date: 2009/06/20 15:00:04;  author: martynas;  state: Exp;  lines: +4 -4;
use llabs instead of the home-grown version;  and some comment changes
ok ian@, millert@
----------------------------

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 05:01:13 +0000 (05:01 +0000)] 
upstream commit

When updating hostkeys, accept RSA keys if
HostkeyAlgorithms contains any RSA keytype. Previously, ssh could ignore RSA
keys when any of the ssh-rsa-sha2-* methods was enabled in HostkeyAlgorithms
nit ssh-rsa (SHA1 signatures) was not. bz#2650 reported by Luis Ressel; ok
dtucker@

Upstream-ID: c5e8cfee15c42f4a05d126158a0766ea06da79d2

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 04:24:55 +0000 (04:24 +0000)] 
upstream commit

make hostname matching really insensitive to case;
bz#2685, reported by Petr Cerny; ok dtucker@

Upstream-ID: e467622ff154269e36ba8b6c9e3d105e1c4a9253

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 03:52:48 +0000 (03:52 +0000)] 
upstream commit

reword a comment to make it fit 80 columns

Upstream-ID: 4ef509a66b96c7314bbcc87027c2af71fa9d0ba4

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 04:27:32 +0000 (04:27 +0000)] 
upstream commit

better match sshd config parser behaviour: fatal() if
line is overlong, increase line buffer to match sshd's; bz#2651 reported by
Don Fong; ok dtucker@

Upstream-ID: b175ae7e0ba403833f1ee566edf10f67443ccd18

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

ensure hostname is lower-case before hashing it;
bz#2591 reported by Griff Miller II; ok dtucker@

Upstream-ID: c3b8b93804f376bd00d859b8bcd9fc0d86b4db17

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 04:24:55 +0000 (04:24 +0000)] 
upstream commit

make hostname matching really insensitive to case;
bz#2685, reported by Petr Cerny; ok dtucker@

Upstream-ID: e632b7a9bf0d0558d5ff56dab98b7cca6c3db549

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 04:11:00 +0000 (04:11 +0000)] 
upstream commit

Remove old null check from config dumper.  Patch from
jjelen at redhat.com vi bz#2687, ok djm@

Upstream-ID: 824ab71467b78c4bab0dd1b3a38e8bc5f63dd528

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 04:07:20 +0000 (04:07 +0000)] 
upstream commit

fix regression in 7.4 server-sig-algs, where we were
accidentally excluding SHA2 RSA signature methods. bz#2680, patch from Nuno
Goncalves; ok dtucker@

Upstream-ID: 81ac8bfb30960447740b9b8f6a214dcf322f12e8

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 03:53:11 +0000 (03:53 +0000)] 
upstream commit

Check for NULL return value from key_new.  Patch from
jjelen at redhat.com via bz#2687, ok djm@

Upstream-ID: 059e33cd43cba88dc8caf0b1936fd4dd88fd5b8e

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 03:52:48 +0000 (03:52 +0000)] 
upstream commit

reword a comment to make it fit 80 columns

Upstream-ID: b4b48b4487c0821d16e812c40c9b09f03b28e349

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 03:48:57 +0000 (03:48 +0000)] 
upstream commit

Check for NULL argument to sshkey_read.  Patch from
jjelen at redhat.com via bz#2687, ok djm@

Upstream-ID: c2d00c2ea50c4861d271d0a586f925cc64a87e0e

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 03:45:40 +0000 (03:45 +0000)] 
upstream commit

Plug some mem leaks mostly on error paths.  From jjelen
at redhat.com via bz#2687, ok djm@

Upstream-ID: 3fb030149598957a51b7c8beb32bf92cf30c96f2

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 03:24:48 +0000 (03:24 +0000)] 
upstream commit

Plug mem leak on GLOB_NOMATCH case.  From jjelen at
redhat.com via bz#2687, ok djm@

Upstream-ID: 8016a7ae97719d3aa55fb723fc2ad3200058340d

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 03:22:40 +0000 (03:22 +0000)] 
upstream commit

Plug descriptor leaks of auth_sock.  From jjelen at
redhat.com via bz#2687, ok djm@

Upstream-ID: 248acb99a5ed2fdca37d1aa33c0fcee7be286d88

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 03:18:24 +0000 (03:18 +0000)] 
upstream commit

correctly hash hosts with a port number. Reported by Josh
Powers in bz#2692; ok dtucker@

Upstream-ID: 468e357ff143e00acc05bdd2803a696b3d4b6442

8 years agoupstream commit
djm@openbsd.org [Fri, 10 Mar 2017 03:15:58 +0000 (03:15 +0000)] 
upstream commit

don't truncate off \r\n from long stderr lines; bz#2688,
reported by Brian Dyson; ok dtucker@

Upstream-ID: cdfdc4ba90639af807397ce996153c88af046ca4

8 years agoupstream commit
dtucker@openbsd.org [Fri, 10 Mar 2017 02:59:51 +0000 (02:59 +0000)] 
upstream commit

Validate digest arg in ssh_digest_final; from jjelen at
redhat.com via bz#2687, ok djm@

Upstream-ID: dbe5494dfddfe523fab341a3dab5a79e7338f878

8 years agoCheck for NULL from malloc.
Darren Tucker [Fri, 10 Mar 2017 02:40:18 +0000 (13:40 +1100)] 
Check for NULL from malloc.

Part of bz#2687, from jjelen at redhat.com.

8 years agoIf OSX is using launchd, remove screen no.
Darren Tucker [Fri, 10 Mar 2017 02:22:32 +0000 (13:22 +1100)] 
If OSX is using launchd, remove screen no.

Check for socket with and without screen number.  From Apple and Jakob
Schlyter via bz#2341, with contributions from Ron Frederick, ok djm@

8 years agoupstream commit
djm@openbsd.org [Wed, 8 Mar 2017 12:07:47 +0000 (12:07 +0000)] 
upstream commit

quote [host]:port in generated ProxyJump commandline; the
[ / ] characters can confuse some shells (e.g. zsh). Reported by Lauri
Tirkkonen via bugs@

Upstream-ID: 65cdd161460e1351c3d778e974c1c2a4fa4bc182

8 years agoupstream commit
dtucker@openbsd.org [Mon, 6 Mar 2017 02:03:20 +0000 (02:03 +0000)] 
upstream commit

Check l->hosts before dereferencing; fixes potential null
pointer deref. ok djm@

Upstream-ID: 81c0327c6ec361da794b5c680601195cc23d1301