]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
10 years agoupstream commit
djm@openbsd.org [Wed, 11 Nov 2015 01:48:01 +0000 (01:48 +0000)] 
upstream commit

remove prototypes for long-gone s/key support; ok
 dtucker@

Upstream-ID: db5bed3c57118af986490ab23d399df807359a79

10 years agoread back from libcrypto RAND when privdropping
Damien Miller [Sat, 14 Nov 2015 07:44:49 +0000 (18:44 +1100)] 
read back from libcrypto RAND when privdropping

makes certain libcrypto implementations cache a /dev/urandom fd
in preparation of sandboxing. Based on patch by Greg Hartman.

10 years agoFix compiler warnings in the openssl header check.
Darren Tucker [Tue, 10 Nov 2015 00:14:47 +0000 (11:14 +1100)] 
Fix compiler warnings in the openssl header check.

Noted by Austin English.

10 years agoupstream commit
jmc@openbsd.org [Sun, 8 Nov 2015 23:24:03 +0000 (23:24 +0000)] 
upstream commit

-c before -H, in SYNOPSIS and usage();

Upstream-ID: 25e8c58a69e1f37fcd54ac2cd1699370acb5e404

10 years agoupstream commit
djm@openbsd.org [Sun, 8 Nov 2015 22:30:20 +0000 (22:30 +0000)] 
upstream commit

Add "ssh-keyscan -c ..." flag to allow fetching
 certificates instead of plain keys; ok markus@

Upstream-ID: 0947e2177dba92339eced9e49d3c5bf7dda69f82

10 years agoupstream commit
jmc@openbsd.org [Sun, 8 Nov 2015 22:08:38 +0000 (22:08 +0000)] 
upstream commit

remove slogin links; ok deraadt markus djm

Upstream-ID: 39ba08548acde4c54f2d4520c202c2a863a3c730

10 years agoupstream commit
djm@openbsd.org [Sun, 8 Nov 2015 21:59:11 +0000 (21:59 +0000)] 
upstream commit

fix OOB read in packet code caused by missing return
 statement found by Ben Hawkes; ok markus@ deraadt@

Upstream-ID: a3e3a85434ebfa0690d4879091959591f30efc62

10 years agoupstream commit
mmcc@openbsd.org [Fri, 6 Nov 2015 00:31:41 +0000 (00:31 +0000)] 
upstream commit

1. rlogin and rsh are long gone 2. protocol version isn't
 of core relevance here, and v1 is going away

ok markus@, deraadt@

Upstream-ID: 8b46bc94cf1ca7c8c1a75b1c958b2bb38d7579c8

10 years agoupstream commit
jmc@openbsd.org [Thu, 5 Nov 2015 09:48:05 +0000 (09:48 +0000)] 
upstream commit

"commandline" -> "command line", since there are so few
 examples of the former in the pages, so many of the latter, and in some of
 these pages we had multiple spellings;

prompted by tj

Upstream-ID: 78459d59bff74223f8139d9001ccd56fc4310659

10 years ago(re)wrap SYS_sendsyslog in ifdef.
Darren Tucker [Thu, 29 Oct 2015 09:57:34 +0000 (20:57 +1100)] 
(re)wrap SYS_sendsyslog in ifdef.

Replace ifdef that went missing in commit
c61b42f2678f21f05653ac2d3d241b48ab5d59ac.  Fixes build on older
OpenBSDs.

10 years agoupstream commit
djm@openbsd.org [Thu, 29 Oct 2015 08:05:17 +0000 (08:05 +0000)] 
upstream commit

regress test for "PubkeyAcceptedKeyTypes +..." inside a
 Match block

Upstream-Regress-ID: 246c37ed64a2e5704d4c158ccdca1ff700e10647

10 years agoupstream commit
dtucker@openbsd.org [Mon, 26 Oct 2015 02:50:58 +0000 (02:50 +0000)] 
upstream commit

Fix typo certopt->certopts in shell variable.  This would
 cause the test to hang at a host key prompt if you have an A or CNAME for
 "proxy" in your local domain.

Upstream-Regress-ID: 6ea03bcd39443a83c89e2c5606392ceb9585836a

10 years agoupstream commit
djm@openbsd.org [Thu, 29 Oct 2015 08:05:01 +0000 (08:05 +0000)] 
upstream commit

Fix "PubkeyAcceptedKeyTypes +..." inside a Match block;
 ok dtucker@

Upstream-ID: 853662c4036730b966aab77684390c47b9738c69

10 years agoupstream commit
djm@openbsd.org [Tue, 27 Oct 2015 08:54:52 +0000 (08:54 +0000)] 
upstream commit

fix execv arguments in a way less likely to cause grief
 for -portable; ok dtucker@

Upstream-ID: 5902bf0ea0371f39f1300698dc3b8e4105fc0fc5

10 years agoupstream commit
djm@openbsd.org [Tue, 27 Oct 2015 01:44:45 +0000 (01:44 +0000)] 
upstream commit

log certificate serial in verbose() messages to match the
 main auth success/fail message; ok dtucker@

Upstream-ID: dfc48b417c320b97c36ff351d303c142f2186288

10 years agoupstream commit
djm@openbsd.org [Tue, 27 Oct 2015 00:49:53 +0000 (00:49 +0000)] 
upstream commit

avoid de-const warning & shrink; ok dtucker@

Upstream-ID: 69a85ef94832378952a22c172009cbf52aaa11db

10 years agoupstream commit
dtucker@openbsd.org [Sun, 25 Oct 2015 23:42:00 +0000 (23:42 +0000)] 
upstream commit

Expand tildes in filenames passed to -i before checking
 whether or not the identity file exists.  This means that if the shell
 doesn't do the expansion (eg because the option and filename were given as a
 single argument) then we'll still add the key.  bz#2481, ok markus@

Upstream-ID: db1757178a14ac519e9a3e1a2dbd21113cb3bfc6

10 years agoupstream commit
dtucker@openbsd.org [Sun, 25 Oct 2015 23:14:03 +0000 (23:14 +0000)] 
upstream commit

Do not prepend "exec" to the shell command run by "Match
 exec" in a config file.  It's an unnecessary optimization from repurposed
 ProxyCommand code and prevents some things working with some shells.
 bz#2471, pointed out by res at qoxp.net.  ok markus@

Upstream-ID: a1ead25ae336bfa15fb58d8c6b5589f85b4c33a3

10 years agoPrevent name collisions with system glob (bz#2463)
Darren Tucker [Wed, 28 Oct 2015 23:48:23 +0000 (10:48 +1100)] 
Prevent name collisions with system glob (bz#2463)

Move glob.h from includes.h to the only caller (sftp) and override the
names for the symbols.  This prevents name collisions with the system glob
in the case where something other than ssh uses it (eg kerberos).  With
jjelen at redhat.com, ok djm@

10 years agoupstream commit
dtucker@openbsd.org [Fri, 23 Oct 2015 02:22:01 +0000 (02:22 +0000)] 
upstream commit

Update expected group sizes to match recent code changes.

Upstream-Regress-ID: 0004f0ea93428969fe75bcfff0d521c553977794

10 years agoupstream commit
djm@openbsd.org [Sat, 24 Oct 2015 22:56:19 +0000 (22:56 +0000)] 
upstream commit

fix keyscan output for multiple hosts/addrs on one line
 when host hashing or a non standard port is in use; bz#2479 ok dtucker@

Upstream-ID: 5321dabfaeceba343da3c8a8b5754c6f4a0a307b

10 years agoupstream commit
djm@openbsd.org [Sat, 24 Oct 2015 22:52:22 +0000 (22:52 +0000)] 
upstream commit

skip "Could not chdir to home directory" message when
 chrooted

patch from Christian Hesse in bz#2485 ok dtucker@

Upstream-ID: 86783c1953da426dff5b03b03ce46e699d9e5431

10 years agoupstream commit
sthen@openbsd.org [Sat, 24 Oct 2015 08:34:09 +0000 (08:34 +0000)] 
upstream commit

Handle the split of tun(4) "link0" into tap(4) in ssh
 tun-forwarding. Adapted from portable (using separate devices for this is the
 normal case in most OS). ok djm@

Upstream-ID: 90facf4c59ce73d6741db1bc926e578ef465cd39

10 years agoupstream commit
gsoares@openbsd.org [Wed, 21 Oct 2015 11:33:03 +0000 (11:33 +0000)] 
upstream commit

fix memory leak in error path ok djm@

Upstream-ID: dd2f402b0a0029b755df029fc7f0679e1365ce35

10 years agoupstream commit
mmcc@openbsd.org [Tue, 20 Oct 2015 23:24:25 +0000 (23:24 +0000)] 
upstream commit

Compare pointers to NULL rather than 0.

ok djm@

Upstream-ID: 21616cfea27eda65a06e772cc887530b9a1a27f8

10 years agoupstream commit
mmcc@openbsd.org [Tue, 20 Oct 2015 03:36:35 +0000 (03:36 +0000)] 
upstream commit

Replace a function-local allocation with stack memory.

ok djm@

Upstream-ID: c09fbbab637053a2ab9f33ca142b4e20a4c5a17e

10 years agoturn off PrintLastLog when --disable-lastlog
Damien Miller [Wed, 21 Oct 2015 22:35:24 +0000 (09:35 +1100)] 
turn off PrintLastLog when --disable-lastlog

bz#2278 from Brent Paulson

10 years agoupstream commit
djm@openbsd.org [Fri, 16 Oct 2015 22:32:22 +0000 (22:32 +0000)] 
upstream commit

increase the minimum modulus that we will send or accept in
 diffie-hellman-group-exchange to 2048 bits; ok markus@

Upstream-ID: 06dce7a24c17b999a0f5fadfe95de1ed6a1a9b6a

10 years agoupstream commit
djm@openbsd.org [Fri, 16 Oct 2015 18:40:49 +0000 (18:40 +0000)] 
upstream commit

better handle anchored FQDNs (e.g. 'cvs.openbsd.org.') in
 hostname canonicalisation - treat them as already canonical and remove the
 trailing '.' before matching ssh_config; ok markus@

Upstream-ID: f7619652e074ac3febe8363f19622aa4853b679a

10 years agoupstream commit
mmcc@openbsd.org [Fri, 16 Oct 2015 17:07:24 +0000 (17:07 +0000)] 
upstream commit

0 -> NULL when comparing with a char*.

ok dtucker@, djm@.

Upstream-ID: a928e9c21c0a9020727d99738ff64027c1272300

10 years agoupstream commit
djm@openbsd.org [Thu, 15 Oct 2015 23:51:40 +0000 (23:51 +0000)] 
upstream commit

fix some signed/unsigned integer type mismatches in
 format strings; reported by Nicholas Lemonias

Upstream-ID: 78cd55420a0eef68c4095bdfddd1af84afe5f95c

10 years agoupstream commit
djm@openbsd.org [Thu, 15 Oct 2015 23:08:23 +0000 (23:08 +0000)] 
upstream commit

argument to sshkey_from_private() and sshkey_demote()
 can't be NULL

Upstream-ID: 0111245b1641d387977a9b38da15916820a5fd1f

10 years agoneed va_copy before va_start
Damien Miller [Thu, 15 Oct 2015 23:53:14 +0000 (10:53 +1100)] 
need va_copy before va_start

reported by Nicholas Lemonias

10 years agofix compilation on systems without SYMLOOP_MAX
Damien Miller [Thu, 15 Oct 2015 22:48:28 +0000 (15:48 -0700)] 
fix compilation on systems without SYMLOOP_MAX

10 years agos/SANDBOX_TAME/SANDBOX_PLEDGE/g
Damien Miller [Wed, 14 Oct 2015 16:22:15 +0000 (09:22 -0700)] 
s/SANDBOX_TAME/SANDBOX_PLEDGE/g

10 years agoupstream commit
Damien Miller [Tue, 13 Oct 2015 21:28:19 +0000 (08:28 +1100)] 
upstream commit

revision 1.20
date: 2015/10/13 20:55:37;  author: millert;  state: Exp;  lines: +2 -2;  commitid: X39sl5ay1czgFIgp;
In rev 1.15 the sizeof argument was fixed in a strlcat() call but
the truncation check immediately following it was not updated to
match.  Not an issue in practice since the buffers are the same
size.  OK deraadt@

10 years agoupstream commit
Damien Miller [Tue, 13 Oct 2015 21:27:51 +0000 (08:27 +1100)] 
upstream commit

revision 1.19
date: 2015/01/16 16:48:51;  author: deraadt;  state: Exp;  lines: +3 -3;  commitid: 0DYulI8hhujBHMcR;
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther

10 years agoupstream commit
Damien Miller [Tue, 13 Oct 2015 21:27:08 +0000 (08:27 +1100)] 
upstream commit

revision 1.18
date: 2014/10/19 03:56:28;  author: doug;  state: Exp;  lines: +9 -9;  commitid: U6QxmtbXrGoc02S5;
Revert last commit due to changed semantics found by make release.

10 years agoupstream commit
Damien Miller [Tue, 13 Oct 2015 21:26:24 +0000 (08:26 +1100)] 
upstream commit

revision 1.17
date: 2014/10/18 20:43:52;  author: doug;  state: Exp;  lines: +10 -10;  commitid: I74hI1tVZtsspKEt;
Better POSIX compliance in realpath(3).

millert@ made changes to realpath.c based on FreeBSD's version.  I merged
Todd's changes into dl_realpath.c.

ok millert@, guenther@

10 years agoupstream commit
Damien Miller [Tue, 13 Oct 2015 21:25:55 +0000 (08:25 +1100)] 
upstream commit

revision 1.16
date: 2013/04/05 12:59:54;  author: kurt;  state: Exp;  lines: +3 -1;
- Add comments regarding copies of these files also in libexec/ld.so
okay guenther@

10 years agoupstream commit
Damien Miller [Tue, 13 Oct 2015 21:25:32 +0000 (08:25 +1100)] 
upstream commit

revision 1.15
date: 2012/09/13 15:39:05;  author: deraadt;  state: Exp;  lines: +2 -2;
specify the bounds of the dst to strlcat (both values were static and
equal, but it is more correct)
from Michal Mazurek

10 years agoupstream commit
Damien Miller [Tue, 13 Oct 2015 21:25:09 +0000 (08:25 +1100)] 
upstream commit

revision 1.14
date: 2011/07/24 21:03:00;  author: miod;  state: Exp;  lines: +35 -13;
Recent Single Unix will malloc memory if the second argument of realpath()
is NULL, and third-party software is starting to rely upon this.
Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor
tweaks from nicm@ and yours truly.

10 years agoupstream commit
djm@openbsd.org [Tue, 13 Oct 2015 16:15:21 +0000 (16:15 +0000)] 
upstream commit

apply PubkeyAcceptedKeyTypes filtering earlier, so all
 skipped keys are noted before pubkey authentication starts. ok dtucker@

Upstream-ID: ba4f52f54268a421a2a5f98bb375403f4cb044b8

10 years agoupstream commit
djm@openbsd.org [Tue, 13 Oct 2015 00:21:27 +0000 (00:21 +0000)] 
upstream commit

free the correct IV length, don't assume it's always the
 cipher blocksize; ok dtucker@

Upstream-ID: c260d9e5ec73628d9ff4b067fbb060eff5a7d298

10 years agoupstream commit
deraadt@openbsd.org [Fri, 9 Oct 2015 01:37:08 +0000 (01:37 +0000)] 
upstream commit

Change all tame callers to namechange to pledge(2).

Upstream-ID: 17e654fc27ceaf523c60f4ffd9ec7ae4e7efc7f2

10 years agohook tame(2) sandbox up to build
Damien Miller [Wed, 7 Oct 2015 17:30:48 +0000 (04:30 +1100)] 
hook tame(2) sandbox up to build

OpenBSD only for now

10 years agoupstream commit
djm@openbsd.org [Wed, 7 Oct 2015 15:59:12 +0000 (15:59 +0000)] 
upstream commit

include PubkeyAcceptedKeyTypes in ssh -G config dump

Upstream-ID: 6c097ce6ffebf6fe393fb7988b5d152a5d6b36bb

10 years agoupstream commit
sobrado@openbsd.org [Wed, 7 Oct 2015 14:45:30 +0000 (14:45 +0000)] 
upstream commit

UsePrivilegeSeparation defaults to sandbox now.

ok djm@

Upstream-ID: bff136c38bcae89df82e044d2f42de21e1ad914f

10 years agoupstream commit
djm@openbsd.org [Wed, 7 Oct 2015 00:54:06 +0000 (00:54 +0000)] 
upstream commit

don't try to change tun device flags if they are already
 what we need; makes it possible to use tun/tap networking as non- root user
 if device permissions and interface flags are pre-established; based on patch
 by Ossi Herrala

Upstream-ID: 89099ac4634cd477b066865acf54cb230780fd21

10 years agounbreak merge botch
Damien Miller [Tue, 6 Oct 2015 01:33:05 +0000 (18:33 -0700)] 
unbreak merge botch

10 years agoupstream commit
djm@openbsd.org [Tue, 6 Oct 2015 01:20:59 +0000 (01:20 +0000)] 
upstream commit

adapt to recent sshkey_parse_private_fileblob() API
 change

Upstream-Regress-ID: 5c0d818da511e33e0abf6a92a31bd7163b7ad988

10 years agoupstream commit
djm@openbsd.org [Thu, 24 Sep 2015 07:15:39 +0000 (07:15 +0000)] 
upstream commit

fix command-line option to match what was actually
 committed

Upstream-Regress-ID: 3e8c24a2044e8afd37e7ce17b69002ca817ac699

10 years agoupstream commit
djm@openbsd.org [Thu, 24 Sep 2015 06:16:53 +0000 (06:16 +0000)] 
upstream commit

regress test for CertificateFile; patch from Meghana Bhat
 via bz#2436

Upstream-Regress-ID: e7a6e980cbe0f8081ba2e83de40d06c17be8bd25

10 years agoupstream commit
djm@openbsd.org [Mon, 5 Oct 2015 17:11:21 +0000 (17:11 +0000)] 
upstream commit

some more bzero->explicit_bzero, from Michael McConville

Upstream-ID: 17f19545685c33327db2efdc357c1c9225ff00d0

10 years agoupstream commit
deraadt@openbsd.org [Fri, 2 Oct 2015 15:52:55 +0000 (15:52 +0000)] 
upstream commit

fix email

Upstream-ID: 72150f2d54b94de14ebef1ea054ef974281bf834

10 years agoupstream commit
deraadt@openbsd.org [Fri, 2 Oct 2015 01:39:52 +0000 (01:39 +0000)] 
upstream commit

a sandbox using tame ok djm

Upstream-ID: 4ca24e47895e72f5daaa02f3e3d3e5ca2d820fa3

10 years agoupstream commit
deraadt@openbsd.org [Fri, 2 Oct 2015 01:39:26 +0000 (01:39 +0000)] 
upstream commit

re-order system calls in order of risk, ok i'll be
 honest, ordered this way they look like tame... ok djm

Upstream-ID: 42a1e6d251fd8be13c8262bee026059ae6328813

10 years agoupstream commit
jmc@openbsd.org [Fri, 25 Sep 2015 18:19:54 +0000 (18:19 +0000)] 
upstream commit

some certificatefile tweaks; ok djm

Upstream-ID: 0e5a7852c28c05fc193419cc7e50e64c1c535af0

10 years agoupstream commit
djm@openbsd.org [Thu, 24 Sep 2015 06:15:11 +0000 (06:15 +0000)] 
upstream commit

add ssh_config CertificateFile option to explicitly list
 a certificate; patch from Meghana Bhat on bz#2436; ok markus@

Upstream-ID: 58648ec53c510b41c1f46d8fe293aadc87229ab8

10 years agoupstream commit
sobrado@openbsd.org [Tue, 22 Sep 2015 08:33:23 +0000 (08:33 +0000)] 
upstream commit

fix two typos.

Upstream-ID: 424402c0d8863a11b51749bacd7f8d932083b709

10 years agoupstream commit
djm@openbsd.org [Mon, 21 Sep 2015 04:31:00 +0000 (04:31 +0000)] 
upstream commit

fix possible hang on closed output; bz#2469 reported by Tomas
 Kuthan ok markus@

Upstream-ID: f7afd41810f8540f524284f1be6b970859f94fe3

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Sep 2015 04:55:01 +0000 (04:55 +0000)] 
upstream commit

skip if running as root; many systems (inc OpenBSD) allow
 root to ptrace arbitrary processes

Upstream-Regress-ID: be2b925df89360dff36f972951fa0fa793769038

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Sep 2015 03:44:21 +0000 (03:44 +0000)] 
upstream commit

try all supported key types here; bz#2455 reported by
 Jakub Jelen

Upstream-Regress-ID: 188cb7d9031cdbac3a0fa58b428b8fa2b2482bba

10 years agoupstream commit
tim@openbsd.org [Sun, 13 Sep 2015 14:39:16 +0000 (14:39 +0000)] 
upstream commit

- Fix error message: passphrase needs to be at least 5
 characters, not 4. - Remove unused function argument. - Remove two
 unnecessary variables.

OK djm@

Upstream-ID: 13010c05bfa8b523da1c0dc19e81dd180662bc30

10 years agoupstream commit
tim@openbsd.org [Sun, 13 Sep 2015 13:48:19 +0000 (13:48 +0000)] 
upstream commit

When adding keys to the agent, don't ignore the comment
 of keys for which the user is prompted for a passphrase.

Tweak and OK djm@

Upstream-ID: dc737c620a5a8d282cc4f66e3b9b624e9abefbec

10 years agoupstream commit
guenther@openbsd.org [Fri, 11 Sep 2015 08:50:04 +0000 (08:50 +0000)] 
upstream commit

Use explicit_bzero() when zeroing before free()

from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
ok millert@ djm@

Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50

10 years agoupstream commit
jmc@openbsd.org [Fri, 11 Sep 2015 06:55:46 +0000 (06:55 +0000)] 
upstream commit

sync -Q in usage() to SYNOPSIS; since it's drastically
 shorter, i've reformatted the block to sync with the man (80 cols) and saved
 a line;

Upstream-ID: 86e2c65c3989a0777a6258a77e589b9f6f354abd

10 years agoupstream commit
jmc@openbsd.org [Fri, 11 Sep 2015 06:51:39 +0000 (06:51 +0000)] 
upstream commit

tweak previous;

Upstream-ID: f29b3cfcfd9aa31fa140c393e7bd48c1c74139d6

10 years agoupstream commit
dtucker@openbsd.org [Fri, 11 Sep 2015 05:27:02 +0000 (05:27 +0000)] 
upstream commit

Update usage to match man page.

Upstream-ID: 9e85aefaecfb6aaf34c7cfd0700cd21783a35675

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Sep 2015 03:47:28 +0000 (03:47 +0000)] 
upstream commit

expand %i in ControlPath to UID; bz#2449

patch from Christian Hesse w/ feedback from dtucker@

Upstream-ID: 2ba8d303e555a84e2f2165ab4b324b41e80ab925

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Sep 2015 03:42:32 +0000 (03:42 +0000)] 
upstream commit

mention -Q key-plain and -Q key-cert; bz#2455 pointed out
 by Jakub Jelen

Upstream-ID: c8f1f8169332e4fa73ac96b0043e3b84e01d4896

10 years agoUse ssh-keygen -A when generating host keys.
Darren Tucker [Mon, 14 Sep 2015 06:24:21 +0000 (16:24 +1000)] 
Use ssh-keygen -A when generating host keys.

Use ssh-keygen -A instead of per-keytype invocations when generating host
keys.  Add tests when doing host-key-force since we can't use ssh-keygen -A
since it can't specify alternate locations.  bz#2459, ok djm@

10 years agoCorrect default value for --with-ssh1.
Darren Tucker [Fri, 11 Sep 2015 03:29:22 +0000 (13:29 +1000)] 
Correct default value for --with-ssh1.

bz#2457, from konto-mindrot.org at walimnieto.com.

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Sep 2015 03:13:36 +0000 (03:13 +0000)] 
upstream commit

more clarity on what AuthorizedKeysFile=none does; based
 on diff by Thiebaud Weksteen

Upstream-ID: 78ab87f069080f0cc3bc353bb04eddd9e8ad3704

10 years agoupstream commit
djm@openbsd.org [Wed, 9 Sep 2015 00:52:44 +0000 (00:52 +0000)] 
upstream commit

openssh_RSA_verify return type is int, so don't make it
 size_t within the function itself with only negative numbers or zero assigned
 to it. bz#2460

Upstream-ID: b6e794b0c7fc4f9f329509263c8668d35f83ea55

10 years agoupstream commit
dtucker@openbsd.org [Fri, 4 Sep 2015 08:21:47 +0000 (08:21 +0000)] 
upstream commit

Plug minor memory leaks when options are used more than
 once.  bz#2182, patch from Tiago Cunha, ok deraadt djm

Upstream-ID: 5b84d0401e27fe1614c10997010cc55933adb48e

10 years agoForce resolution of _res for correct detection.
Darren Tucker [Fri, 11 Sep 2015 03:11:02 +0000 (13:11 +1000)] 
Force resolution of _res for correct detection.

bz#2259, from sconeu at yahoo.com.

10 years agoallow getrandom syscall; from Felix von Leitner
Damien Miller [Thu, 10 Sep 2015 00:57:41 +0000 (10:57 +1000)] 
allow getrandom syscall; from Felix von Leitner

10 years agoupstream commit
jmc@openbsd.org [Fri, 4 Sep 2015 06:40:45 +0000 (06:40 +0000)] 
upstream commit

full stop belongs outside the brackets, not inside;

Upstream-ID: 99d098287767799ac33d2442a05b5053fa5a551a

10 years agoupstream commit
djm@openbsd.org [Fri, 4 Sep 2015 04:56:09 +0000 (04:56 +0000)] 
upstream commit

add a debug2() right before DNS resolution; it's a place
 where ssh could previously silently hang for a while. bz#2433

Upstream-ID: 52a1a3e0748db66518e7598352c427145692a6a0

10 years agoupstream commit
djm@openbsd.org [Fri, 4 Sep 2015 04:55:24 +0000 (04:55 +0000)] 
upstream commit

correct function name in error messages

Upstream-ID: 92fb2798617ad9561370897f4ab60adef2ff4c0e

10 years agoupstream commit
djm@openbsd.org [Fri, 4 Sep 2015 04:47:50 +0000 (04:47 +0000)] 
upstream commit

better document ExitOnForwardFailure; bz#2444, ok
 dtucker@

Upstream-ID: a126209b5a6d9cb3117ac7ab5bc63d284538bfc2

10 years agoupstream commit
djm@openbsd.org [Fri, 4 Sep 2015 04:44:08 +0000 (04:44 +0000)] 
upstream commit

don't record hostbased authentication hostkeys as user
 keys in test for multiple authentication with the same key

Upstream-ID: 26b368fa2cff481f47f37e01b8da1ae5b57b1adc

10 years agoupstream commit
djm@openbsd.org [Fri, 4 Sep 2015 03:57:38 +0000 (03:57 +0000)] 
upstream commit

remove extra newline in nethack-mode hostkey; from
 Christian Hesse bz#2686

Upstream-ID: 4f56368b1cc47baeea0531912186f66007fd5b92

10 years agoupstream commit
djm@openbsd.org [Fri, 4 Sep 2015 04:23:10 +0000 (04:23 +0000)] 
upstream commit

trim junk from end of file; bz#2455 from Jakub Jelen

Upstream-Regress-ID: a4e64e8931e40d23874b047074444eff919cdfe6

10 years agoupstream commit
jsg@openbsd.org [Wed, 2 Sep 2015 07:51:12 +0000 (07:51 +0000)] 
upstream commit

Fix occurrences of "r = func() != 0" which result in the
 wrong error codes being returned due to != having higher precedence than =.

ok deraadt@ markus@

Upstream-ID: 5fc35c9fc0319cc6fca243632662d2f06b5fd840

10 years agodon't check for yp_match; ok tim@
Damien Miller [Wed, 2 Sep 2015 23:11:22 +0000 (09:11 +1000)] 
don't check for yp_match; ok tim@

10 years agoupstream commit
djm@openbsd.org [Fri, 21 Aug 2015 23:57:48 +0000 (23:57 +0000)] 
upstream commit

Improve printing of KEX offers and decisions

The debug output now labels the client and server offers and the
negotiated options. ok markus@

Upstream-ID: 8db921b3f92a4565271b1c1fbce6e7f508e1a2cb

10 years agoupstream commit
djm@openbsd.org [Fri, 21 Aug 2015 23:53:08 +0000 (23:53 +0000)] 
upstream commit

Fix printing (ssh -G ...) of HostKeyAlgorithms=+...
 Reported by Bryan Drewery

Upstream-ID: 19ad20c41bd5971e006289b6f9af829dd46c1293

10 years agoupstream commit
djm@openbsd.org [Fri, 21 Aug 2015 23:52:30 +0000 (23:52 +0000)] 
upstream commit

Fix expansion of HostkeyAlgorithms=+...

Reported by Bryan Drewery

Upstream-ID: 70ca1deea39d758ba36d36428ae832e28566f78d

10 years agoupstream commit
deraadt@openbsd.org [Fri, 21 Aug 2015 23:29:31 +0000 (23:29 +0000)] 
upstream commit

Improve size == 0, count == 0 checking in mm_zalloc,
 which is "array" like. Discussed with tedu, millert, otto.... and ok djm

Upstream-ID: 899b021be43b913fad3eca1aef44efe710c53e29

10 years agoexpose POLLHUP and POLLNVAL for netcat.c
Damien Miller [Fri, 21 Aug 2015 05:45:02 +0000 (15:45 +1000)] 
expose POLLHUP and POLLNVAL for netcat.c

10 years agowe don't use Github for issues/pull-requests V_7_1_P1
Damien Miller [Fri, 21 Aug 2015 04:49:03 +0000 (14:49 +1000)] 
we don't use Github for issues/pull-requests

10 years agofix URL for connect.c
Damien Miller [Fri, 21 Aug 2015 04:43:55 +0000 (14:43 +1000)] 
fix URL for connect.c

10 years agoupdate version numbers for 7.1
Damien Miller [Fri, 21 Aug 2015 03:47:10 +0000 (13:47 +1000)] 
update version numbers for 7.1

10 years agoupstream commit
djm@openbsd.org [Fri, 21 Aug 2015 03:45:26 +0000 (03:45 +0000)] 
upstream commit

openssh-7.1

Upstream-ID: ff7b1ef4b06caddfb45e08ba998128c88be3d73f

10 years agoupstream commit
djm@openbsd.org [Fri, 21 Aug 2015 03:42:19 +0000 (03:42 +0000)] 
upstream commit

fix inverted logic that broke PermitRootLogin; reported
 by Mantas Mikulenas; ok markus@

Upstream-ID: 260dd6a904c1bb7e43267e394b1c9cf70bdd5ea5

10 years agoupstream commit
deraadt@openbsd.org [Thu, 20 Aug 2015 22:32:42 +0000 (22:32 +0000)] 
upstream commit

Do not cast result of malloc/calloc/realloc* if stdlib.h
 is in scope ok krw millert

Upstream-ID: 5e50ded78cadf3841556649a16cc4b1cb6c58667

10 years agoupstream commit
naddy@openbsd.org [Thu, 20 Aug 2015 19:20:06 +0000 (19:20 +0000)] 
upstream commit

In the certificates section, be consistent about using
 "host_key" and "user_key" for the respective key types.  ok sthen@ deraadt@

Upstream-ID: 9e037ea3b15577b238604c5533e082a3947f13cb

10 years agoupstream commit
djm@openbsd.org [Wed, 19 Aug 2015 23:21:42 +0000 (23:21 +0000)] 
upstream commit

Better compat matching for WinSCP, add compat matching
 for FuTTY (fork of PuTTY); ok markus@ deraadt@

Upstream-ID: 24001d1ac115fa3260fbdc329a4b9aeb283c5389