]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
9 years agoupstream commit
djm@openbsd.org [Mon, 7 Mar 2016 19:02:43 +0000 (19:02 +0000)] 
upstream commit

refactor canohost.c: move functions that cache results closer
 to the places that use them (authn and session code). After this, no state is
 cached in canohost.c

feedback and ok markus@

Upstream-ID: 5f2e4df88d4803fc8ec59ec53629105e23ce625e

9 years agohook unittests/misc/kexfuzz into build
Damien Miller [Fri, 4 Mar 2016 04:11:55 +0000 (15:11 +1100)] 
hook unittests/misc/kexfuzz into build

9 years agoupstream commit
dtucker@openbsd.org [Fri, 4 Mar 2016 02:48:06 +0000 (02:48 +0000)] 
upstream commit

Filter debug messages out of log before picking the last
 two lines. Should prevent problems if any more debug output is added late in
 the connection.

Upstream-Regress-ID: 345d0a9589c381e7d640a4ead06cfaadf4db1363

9 years agoupstream commit
djm@openbsd.org [Fri, 4 Mar 2016 02:30:36 +0000 (02:30 +0000)] 
upstream commit

add KEX fuzzer harness; ok deraadt@

Upstream-Regress-ID: 3df5242d30551b12b828aa9ba4a4cec0846be8d1

9 years agoupstream commit
dtucker@openbsd.org [Thu, 3 Mar 2016 00:46:53 +0000 (00:46 +0000)] 
upstream commit

Look back 3 lines for possible error messages.  Changes
 to the code mean that "Bad packet length" errors are 3 lines back instead of
 the previous two, which meant we didn't skip some offsets that we intended
 to.

Upstream-Regress-ID: 24f36912740a634d509a3144ebc8eb7c09b9c684

9 years agoupstream commit
djm@openbsd.org [Fri, 4 Mar 2016 03:35:44 +0000 (03:35 +0000)] 
upstream commit

fix ClientAliveInterval when a time-based RekeyLimit is
 set; previously keepalive packets were not being sent. bz#2252 report and
 analysis by Christian Wittenhorst and Garrett Lee feedback and ok dtucker@

Upstream-ID: d48f9deadd35fdacdd5106b41bb07630ddd4aa81

9 years agoupstream commit
dtucker@openbsd.org [Wed, 2 Mar 2016 22:43:52 +0000 (22:43 +0000)] 
upstream commit

Improve accuracy of reported transfer speeds by waiting
 for the ack from the other end.  Pointed out by mmcc@, ok deraadt@ markus@

Upstream-ID: 99f1cf15c9a8f161086b814d414d862795ae153d

9 years agoupstream commit
dtucker@openbsd.org [Wed, 2 Mar 2016 22:42:40 +0000 (22:42 +0000)] 
upstream commit

Improve precision of progressmeter for sftp and scp by
 storing sub-second timestamps.  Pointed out by mmcc@, ok deraadt@ markus@

Upstream-ID: 38fd83a3d83dbf81c8ff7b5d1302382fe54970ab

9 years agoupstream commit
jca@openbsd.org [Mon, 29 Feb 2016 20:22:36 +0000 (20:22 +0000)] 
upstream commit

Print ssize_t with %zd; ok deraadt@ mmcc@

Upstream-ID: 0590313bbb013ff6692298c98f7e0be349d124bd

9 years agoupstream commit
djm@openbsd.org [Sun, 28 Feb 2016 22:27:00 +0000 (22:27 +0000)] 
upstream commit

rearrange DH public value tests to be a little more clear

rearrange DH private value generation to explain rationale more
clearly and include an extra sanity check.

ok deraadt

Upstream-ID: 9ad8a07e1a12684e1b329f9bd88941b249d4b2ad

9 years agoImport updated moduli file from OpenBSD.
Darren Tucker [Tue, 1 Mar 2016 04:24:20 +0000 (15:24 +1100)] 
Import updated moduli file from OpenBSD.

Note that 1.5k bit groups have been removed.

9 years agoAdd a note about using xlc on AIX. V_7_2_P1
Darren Tucker [Fri, 26 Feb 2016 03:40:04 +0000 (14:40 +1100)] 
Add a note about using xlc on AIX.

9 years agoSkip PrintLastLog in config dump mode.
Darren Tucker [Tue, 23 Feb 2016 23:44:25 +0000 (10:44 +1100)] 
Skip PrintLastLog in config dump mode.

When DISABLE_LASTLOG is set, do not try to include PrintLastLog in the
config dump since it'll be reported as UNKNOWN.

9 years agoupdate spec/README versions ahead of release
Damien Miller [Tue, 23 Feb 2016 09:17:23 +0000 (20:17 +1100)] 
update spec/README versions ahead of release

9 years agoput back portable patchlevel to p1
Damien Miller [Tue, 23 Feb 2016 09:16:53 +0000 (20:16 +1100)] 
put back portable patchlevel to p1

9 years agoupstream commit
djm@openbsd.org [Tue, 23 Feb 2016 09:14:34 +0000 (09:14 +0000)] 
upstream commit

openssh-7.2

Upstream-ID: 9db776b26014147fc907ece8460ef2bcb0f11e78

9 years agoDisable tests where fs perms are incorrect
Damien Miller [Tue, 23 Feb 2016 05:12:13 +0000 (16:12 +1100)] 
Disable tests where fs perms are incorrect

Some tests have strict requirements on the filesystem permissions
for certain files and directories. This adds a regress/check-perm
tool that copies the relevant logic from sshd to exactly test
the paths in question. This lets us skip tests when the local
filesystem doesn't conform to our expectations rather than
continuing and failing the test run.

ok dtucker@

9 years agofix sandbox on OSX Lion
Damien Miller [Tue, 23 Feb 2016 01:56:59 +0000 (12:56 +1100)] 
fix sandbox on OSX Lion

sshd was failing with:

ssh_sandbox_child: sandbox_init: dlopen(/usr/lib/libsandbox.1.dylib, 261):cw
  image not found [preauth]

caused by chroot before sandboxing. Avoid by explicitly linking libsandbox
to sshd. Spotted by Darren.

9 years agoupstream commit
djm@openbsd.org [Tue, 23 Feb 2016 01:34:14 +0000 (01:34 +0000)] 
upstream commit

fix spurious error message when incorrect passphrase
 entered for keys; reported by espie@ ok deraadt@

Upstream-ID: 58b2e46e63ed6912ed1ee780bd3bd8560f9a5899

9 years agoupstream commit
sobrado@openbsd.org [Sat, 20 Feb 2016 23:06:23 +0000 (23:06 +0000)] 
upstream commit

set ssh(1) protocol version to 2 only.

ok djm@

Upstream-ID: e168daf9d27d7e392e3c9923826bd8e87b2b3a10

9 years agoupstream commit
sobrado@openbsd.org [Sat, 20 Feb 2016 23:02:39 +0000 (23:02 +0000)] 
upstream commit

add missing ~/.ssh/id_ecdsa and ~/.ssh/id_ed25519 to
 IdentityFile.

ok djm@

Upstream-ID: 6ce99466312e4ae7708017c3665e3edb976f70cf

9 years agoupstream commit
sobrado@openbsd.org [Sat, 20 Feb 2016 23:01:46 +0000 (23:01 +0000)] 
upstream commit

AddressFamily defaults to any.

ok djm@

Upstream-ID: 0d94aa06a4b889bf57a7f631c45ba36d24c13e0c

10 years agoMake Solaris privs code build on older systems.
Darren Tucker [Thu, 18 Feb 2016 22:05:39 +0000 (09:05 +1100)] 
Make Solaris privs code build on older systems.

Not all systems with Solaris privs have priv_basicset so factor that
out and provide backward compatibility code.  Similarly, not all have
PRIV_NET_ACCESS so wrap that in #ifdef.  Based on code from
alex at cooperi.net and djm@ with help from carson at taltos.org and
wieland at purdue.edu.

10 years agoupstream commit
djm@openbsd.org [Wed, 17 Feb 2016 22:20:14 +0000 (22:20 +0000)] 
upstream commit

rekey refactor broke SSH1; spotted by Tom G. Christensen

Upstream-ID: 43f0d57928cc077c949af0bfa71ef574dcb58243

10 years agoupstream commit
djm@openbsd.org [Wed, 17 Feb 2016 08:57:34 +0000 (08:57 +0000)] 
upstream commit

rsa-sha2-512,rsa-sha2-256 cannot be selected explicitly
 in *KeyTypes options yet. Remove them from the lists of algorithms for now.
 committing on behalf of markus@ ok djm@

Upstream-ID: c6e8820eb8e610ac21551832c0c89684a9a51bb7

10 years agoupstream commit
jmc@openbsd.org [Wed, 17 Feb 2016 07:38:19 +0000 (07:38 +0000)] 
upstream commit

since these pages now clearly tell folks to avoid v1,
 normalise the docs from a v2 perspective (i.e. stop pointing out which bits
 are v2 only);

ok/tweaks djm ok markus

Upstream-ID: eb474f8c36fb6a532dc05c282f7965e38dcfa129

10 years agoupstream commit
djm@openbsd.org [Wed, 17 Feb 2016 05:29:04 +0000 (05:29 +0000)] 
upstream commit

make sandboxed privilege separation the default, not just
 for new installs; "absolutely" deraadt@

Upstream-ID: 5221ef3b927d2df044e9aa3f5db74ae91743f69b

10 years agoupstream commit
jmc@openbsd.org [Tue, 16 Feb 2016 07:47:54 +0000 (07:47 +0000)] 
upstream commit

no need to state that protocol 2 is the default twice;

Upstream-ID: b1e4c36b0c2e12e338e5b66e2978f2ac953b95eb

10 years agoupstream commit
djm@openbsd.org [Tue, 16 Feb 2016 05:11:04 +0000 (05:11 +0000)] 
upstream commit

Replace list of ciphers and MACs adjacent to -1/-2 flag
 descriptions in ssh(1) with a strong recommendation not to use protocol 1.
 Add a similar warning to the Protocol option descriptions in ssh_config(5)
 and sshd_config(5);

prompted by and ok mmcc@

Upstream-ID: 961f99e5437d50e636feca023978950a232ead5e

10 years agoupstream commit
djm@openbsd.org [Tue, 16 Feb 2016 03:37:48 +0000 (03:37 +0000)] 
upstream commit

add a "Close session" log entry (at loglevel=verbose) to
 correspond to the existing "Starting session" one. Also include the session
 id number to make multiplexed sessions more apparent.

feedback and ok dtucker@

Upstream-ID: e72d2ac080e02774376325136e532cb24c2e617c

10 years agoupstream commit
djm@openbsd.org [Wed, 17 Feb 2016 02:24:17 +0000 (02:24 +0000)] 
upstream commit

include bad $SSH_CONNECTION in failure output

Upstream-Regress-ID: b22d72edfde78c403aaec2b9c9753ef633cc0529

10 years agoRollback addition of va_start.
Darren Tucker [Wed, 17 Feb 2016 02:37:09 +0000 (13:37 +1100)] 
Rollback addition of va_start.

va_start was added in 0f754e29dd3760fc0b172c1220f18b753fb0957e, however
it has the wrong number of args and it's not usable in non-variadic
functions anyway so it breaks things (for example Solaris 2.6 as
reported by Tom G. Christensen).i  ok djm@

10 years agoLook for gethostbyname in libresolv and libnsl.
Darren Tucker [Tue, 16 Feb 2016 22:48:15 +0000 (09:48 +1100)] 
Look for gethostbyname in libresolv and libnsl.

Should fix build problem on Solaris 2.6 reported by Tom G. Christensen.

10 years agomake existing ssh_malloc_init only for __OpenBSD__
Damien Miller [Mon, 15 Feb 2016 23:45:02 +0000 (10:45 +1100)] 
make existing ssh_malloc_init only for __OpenBSD__

10 years agoupstream commit
djm@openbsd.org [Mon, 15 Feb 2016 23:32:37 +0000 (23:32 +0000)] 
upstream commit

memleak of algorithm name in mm_answer_sign; reported by
 Jakub Jelen

Upstream-ID: ccd742cd25952240ebd23d7d4d6b605862584d08

10 years agoupstream commit
dtucker@openbsd.org [Mon, 15 Feb 2016 09:47:49 +0000 (09:47 +0000)] 
upstream commit

Add a function to enable security-related malloc_options.
  With and ok deraadt@, something similar has been in the snaps for a while.

Upstream-ID: 43a95523b832b7f3b943d2908662191110c380ed

10 years agosync ssh-copy-id with upstream 783ef08b0a75
Damien Miller [Mon, 15 Feb 2016 23:34:39 +0000 (10:34 +1100)] 
sync ssh-copy-id with upstream 783ef08b0a75

10 years agoupstream commit
djm@openbsd.org [Fri, 12 Feb 2016 00:20:30 +0000 (00:20 +0000)] 
upstream commit

avoid fatal() for PKCS11 tokens that present empty key IDs
 bz#1773, ok markus@

Upstream-ID: 044a764fee526f2c4a9d530bd10695422d01fc54

10 years agoupstream commit
djm@openbsd.org [Thu, 11 Feb 2016 02:56:32 +0000 (02:56 +0000)] 
upstream commit

sync crypto algorithm lists in ssh_config(5) and
 sshd_config(5) with current reality. bz#2527

Upstream-ID: d7fd1b6c1ed848d866236bcb1d7049d2bb9b2ff6

10 years agoupstream commit
djm@openbsd.org [Thu, 11 Feb 2016 02:21:34 +0000 (02:21 +0000)] 
upstream commit

fix regression in openssh-6.8 sftp client: existing
 destination directories would incorrectly terminate recursive uploads;
 bz#2528

Upstream-ID: 3306be469f41f26758e3d447987ac6d662623e18

10 years agoupstream commit
djm@openbsd.org [Tue, 9 Feb 2016 05:30:04 +0000 (05:30 +0000)] 
upstream commit

turn off more old crypto in the client: hmac-md5, ripemd,
 truncated HMACs, RC4, blowfish. ok markus@ dtucker@

Upstream-ID: 96aa11c2c082be45267a690c12f1d2aae6acd46e

10 years agoupstream commit
djm@openbsd.org [Mon, 8 Feb 2016 23:40:12 +0000 (23:40 +0000)] 
upstream commit

don't attempt to percent_expand() already-canonicalised
 addresses, avoiding unnecessary failures when attempting to connect to scoped
 IPv6 addresses (that naturally contain '%' characters)

Upstream-ID: f24569cffa1a7cbde5f08dc739a72f4d78aa5c6a

10 years agoupstream commit
djm@openbsd.org [Mon, 8 Feb 2016 10:57:07 +0000 (10:57 +0000)] 
upstream commit

refactor activation of rekeying

This makes automatic rekeying internal to the packet code (previously
the server and client loops needed to assist). In doing to it makes
application of rekey limits more accurate by accounting for packets
about to be sent as well as packets queued during rekeying events
themselves.

Based on a patch from dtucker@ which was in turn based on a patch
Aleksander Adamowski in bz#2521; ok markus@

Upstream-ID: a441227fd64f9739850ca97b4cf794202860fcd8

10 years agoupstream commit
naddy@openbsd.org [Fri, 5 Feb 2016 13:28:19 +0000 (13:28 +0000)] 
upstream commit

Only check errno if read() has returned an error.  EOF is
 not an error. This fixes a problem where the mux master would sporadically
 fail to notice that the client had exited. ok mikeb@ djm@

Upstream-ID: 3c2dadc21fac6ef64665688aac8a75fffd57ae53

10 years agoupstream commit
jsg@openbsd.org [Fri, 5 Feb 2016 04:31:21 +0000 (04:31 +0000)] 
upstream commit

avoid an uninitialised value when NumberOfPasswordPrompts
 is 0 ok markus@ djm@

Upstream-ID: 11b068d83c2865343aeb46acf1e9eec00f829b6b

10 years agoupstream commit
djm@openbsd.org [Fri, 5 Feb 2016 03:07:06 +0000 (03:07 +0000)] 
upstream commit

mention internal DH-GEX fallback groups; bz#2302

Upstream-ID: e7b395fcca3122cd825515f45a2e41c9a157e09e

10 years agoupstream commit
djm@openbsd.org [Fri, 5 Feb 2016 02:37:56 +0000 (02:37 +0000)] 
upstream commit

better description for MaxSessions; bz#2531

Upstream-ID: e2c0d74ee185cd1a3e9d4ca1f1b939b745b354da

10 years agoavoid FreeBSD RCS Id in comment
Damien Miller [Wed, 27 Jan 2016 06:45:56 +0000 (17:45 +1100)] 
avoid FreeBSD RCS Id in comment

Change old $FreeBSD version string in comment so it doesn't
become an RCS ident downstream; requested by des AT des.no

10 years agoupstream commit
djm@openbsd.org [Thu, 4 Feb 2016 23:43:48 +0000 (23:43 +0000)] 
upstream commit

printf argument casts to avoid warnings on strict
 compilers

Upstream-ID: 7b9f6712cef01865ad29070262d366cf13587c9c

10 years agoupstream commit
millert@openbsd.org [Mon, 1 Feb 2016 21:18:17 +0000 (21:18 +0000)] 
upstream commit

Avoid ugly "DISPLAY "(null)" invalid; disabling X11
 forwarding" message when DISPLAY is not set.  This could also result in a
 crash on systems with a printf that doesn't handle NULL.  OK djm@

Upstream-ID: 20ee0cfbda678a247264c20ed75362042b90b412

10 years agoupstream commit
dtucker@openbsd.org [Fri, 29 Jan 2016 05:18:15 +0000 (05:18 +0000)] 
upstream commit

Add regression test for RekeyLimit parsing of >32bit values
 (4G and 8G).

Upstream-Regress-ID: 548390350c62747b6234f522a99c319eee401328

10 years agoupstream commit
dtucker@openbsd.org [Fri, 29 Jan 2016 23:04:46 +0000 (23:04 +0000)] 
upstream commit

Remove leftover roaming dead code.  ok djm markus.

Upstream-ID: 13d1f9c8b65a5109756bcfd3b74df949d53615be

10 years agoupstream commit
djm@openbsd.org [Fri, 29 Jan 2016 05:46:01 +0000 (05:46 +0000)] 
upstream commit

include packet type of non-data packets in debug3 output;
 ok markus dtucker

Upstream-ID: 034eaf639acc96459b9c5ce782db9fcd8bd02d41

10 years agoupstream commit
dtucker@openbsd.org [Fri, 29 Jan 2016 03:31:03 +0000 (03:31 +0000)] 
upstream commit

Revert "account for packets buffered but not yet
 processed" change as it breaks for very small RekeyLimit values due to
 continuous rekeying.  ok djm@

Upstream-ID: 7e03f636cb45ab60db18850236ccf19079182a19

10 years agoupstream commit
dtucker@openbsd.org [Fri, 29 Jan 2016 02:54:45 +0000 (02:54 +0000)] 
upstream commit

Allow RekeyLimits in excess of 4G up to 2**63 bits
 (limited by the return type of scan_scaled).  Part of bz#2521, ok djm.

Upstream-ID: 13bea82be566b9704821b1ea05bf7804335c7979

10 years agoupstream commit
dtucker@openbsd.org [Fri, 29 Jan 2016 02:42:46 +0000 (02:42 +0000)] 
upstream commit

Account for packets buffered but not yet processed when
 computing whether or not it is time to perform rekeying.  bz#2521, based
 loosely on a patch from olo at fb.com, ok djm@

Upstream-ID: 67e268b547f990ed220f3cb70a5624d9bda12b8c

10 years agoupstream commit
djm@openbsd.org [Wed, 27 Jan 2016 06:44:58 +0000 (06:44 +0000)] 
upstream commit

change old $FreeBSD version string in comment so it doesn't
 become an RCS ident downstream; requested by des AT des.no

Upstream-ID: 8ca558c01f184e596b45e4fc8885534b2c864722

10 years agoupstream commit
djm@openbsd.org [Wed, 27 Jan 2016 00:53:12 +0000 (00:53 +0000)] 
upstream commit

make the debug messages a bit more useful here

Upstream-ID: 478ccd4e897e0af8486b294aa63aa3f90ab78d64

10 years agoupstream commit
jsg@openbsd.org [Sat, 23 Jan 2016 05:31:35 +0000 (05:31 +0000)] 
upstream commit

Zero a stack buffer with explicit_bzero() instead of
 memset() when returning from client_loop() for consistency with
 buffer_free()/sshbuf_free().

ok dtucker@ deraadt@ djm@

Upstream-ID: bc9975b2095339811c3b954694d7d15ea5c58f66

10 years agoupstream commit
dtucker@openbsd.org [Wed, 20 Jan 2016 09:22:39 +0000 (09:22 +0000)] 
upstream commit

Include sys/time.h for gettimeofday.  From sortie at
 maxsi.org.

Upstream-ID: 6ed0c33b836d9de0a664cd091e86523ecaa2fb3b

10 years agoupstream commit
markus@openbsd.org [Thu, 14 Jan 2016 22:56:56 +0000 (22:56 +0000)] 
upstream commit

fd leaks; report Qualys Security Advisory team; ok
 deraadt@

Upstream-ID: 4ec0f12b9d8fa202293c9effa115464185aa071d

10 years agoupstream commit
markus@openbsd.org [Thu, 14 Jan 2016 16:17:39 +0000 (16:17 +0000)] 
upstream commit

remove roaming support; ok djm@

Upstream-ID: 2cab8f4b197bc95776fb1c8dc2859dad0c64dc56

10 years agoupstream commit
deraadt@openbsd.org [Thu, 14 Jan 2016 14:34:34 +0000 (14:34 +0000)] 
upstream commit

Disable experimental client-side roaming support.  Server
 side was disabled/gutted for years already, but this aspect was surprisingly
 forgotten. Thanks for report from Qualys

Upstream-ID: 2328004b58f431a554d4c1bf67f5407eae3389df

10 years agobump version numbers
Damien Miller [Thu, 14 Jan 2016 00:08:19 +0000 (11:08 +1100)] 
bump version numbers

10 years agoopenssh-7.1p2
Damien Miller [Thu, 14 Jan 2016 00:04:04 +0000 (11:04 +1100)] 
openssh-7.1p2

10 years agoforcibly disable roaming support in the client 37/head
Damien Miller [Thu, 14 Jan 2016 14:30:36 +0000 (01:30 +1100)] 
forcibly disable roaming support in the client

10 years agoupstream commit
djm@openbsd.org [Wed, 13 Jan 2016 23:04:47 +0000 (23:04 +0000)] 
upstream commit

eliminate fallback from untrusted X11 forwarding to trusted
 forwarding when the X server disables the SECURITY extension; Reported by
 Thomas Hoger; ok deraadt@

Upstream-ID: f76195bd2064615a63ef9674a0e4096b0713f938

10 years agoupstream commit 34/head
djm@openbsd.org [Tue, 12 Jan 2016 23:42:54 +0000 (23:42 +0000)] 
upstream commit

use explicit_bzero() more liberally in the buffer code; ok
 deraadt

Upstream-ID: 0ece37069fd66bc6e4f55eb1321f93df372b65bf

10 years agoSupport Illumos/Solaris fine-grained privileges
Damien Miller [Fri, 8 Jan 2016 03:24:56 +0000 (14:24 +1100)] 
Support Illumos/Solaris fine-grained privileges

Includes a pre-auth privsep sandbox and several pledge()
emulations. bz#2511, patch by Alex Wilson.

ok dtucker@

10 years agoupstream commit
djm@openbsd.org [Thu, 31 Dec 2015 00:33:52 +0000 (00:33 +0000)] 
upstream commit

fix three bugs in KRL code related to (unused) signature
 support: verification length was being incorrectly calculated, multiple
 signatures were being incorrectly processed and a NULL dereference that
 occurred when signatures were verified. Reported by Carl Jackson

Upstream-ID: e705e97ad3ccce84291eaa651708dd1b9692576b

10 years agoupstream commit
djm@openbsd.org [Wed, 30 Dec 2015 23:46:14 +0000 (23:46 +0000)] 
upstream commit

unused prototype

Upstream-ID: f3eef4389d53ed6c0d5c77dcdcca3060c745da97

10 years agoupstream commit
guenther@openbsd.org [Sat, 26 Dec 2015 20:51:35 +0000 (20:51 +0000)] 
upstream commit

Use pread/pwrite instead separate lseek+read/write for
 lastlog. Cast to off_t before multiplication to avoid truncation on ILP32

ok kettenis@ mmcc@

Upstream-ID: fc40092568cd195719ddf1a00aa0742340d616cf

10 years agoupstream commit
semarie@openbsd.org [Sat, 26 Dec 2015 07:46:03 +0000 (07:46 +0000)] 
upstream commit

adjust pledge promises for ControlMaster: when using
 "ask" or "autoask", the process will use ssh-askpass for asking confirmation.

problem found by halex@

ok halex@

Upstream-ID: 38a58b30ae3eef85051c74d3c247216ec0735f80

10 years agoupstream commit
djm@openbsd.org [Sun, 13 Dec 2015 22:42:23 +0000 (22:42 +0000)] 
upstream commit

unbreak connections with peers that set
 first_kex_follows; fix from Matt Johnston va bz#2515

Upstream-ID: decc88ec4fc7515594fdb42b04aa03189a44184b

10 years agoupstream commit
doug@openbsd.org [Fri, 11 Dec 2015 17:41:37 +0000 (17:41 +0000)] 
upstream commit

Add "id" to ssh-agent pledge for subprocess support.

Found the hard way by Jan Johansson when using ssh-agent with X.  Also,
rearranged proc/exec and retval to match other pledge calls in the tree.

ok djm@

Upstream-ID: 914255f6850e5e7fa830a2de6c38605333b584db

10 years agoupstream commit
mmcc@openbsd.org [Fri, 11 Dec 2015 04:21:11 +0000 (04:21 +0000)] 
upstream commit

Remove NULL-checks before sshbuf_free().

ok djm@

Upstream-ID: 5ebed00ed5f9f03b119a345085e8774565466917

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Dec 2015 03:24:25 +0000 (03:24 +0000)] 
upstream commit

include remote port number in a few more messages; makes
 tying log messages together into a session a bit easier; bz#2503 ok dtucker@

Upstream-ID: 9300dc354015f7a7368d94a8ff4a4266a69d237e

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Dec 2015 03:20:09 +0000 (03:20 +0000)] 
upstream commit

don't try to load SSHv1 private key when compiled without
 SSHv1 support. From Iain Morgan bz#2505

Upstream-ID: 8b8e7b02a448cf5e5635979df2d83028f58868a7

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Dec 2015 03:19:09 +0000 (03:19 +0000)] 
upstream commit

use SSH_MAX_PUBKEY_BYTES consistently as buffer size when
 reading key files. Increase it to match the size of the buffers already being
 used.

Upstream-ID: 1b60586b484b55a947d99a0b32bd25e0ced56fae

10 years agoupstream commit
mmcc@openbsd.org [Fri, 11 Dec 2015 02:31:47 +0000 (02:31 +0000)] 
upstream commit

Remove NULL-checks before sshkey_free().

ok djm@

Upstream-ID: 3e35afe8a25e021216696b5d6cde7f5d2e5e3f52

10 years agoupstream commit
dtucker@openbsd.org [Fri, 11 Dec 2015 02:29:03 +0000 (02:29 +0000)] 
upstream commit

fflush stdout so that output is seen even when running in
 debug mode when output may otherwise not be flushed.  Patch from dustin at
 null-ptr.net.

Upstream-ID: b0c6b4cd2cdb01d7e9eefbffdc522e35b5bc4acc

10 years agoIncrease robustness of redhat/openssh.spec
Darren Tucker [Tue, 15 Dec 2015 04:23:49 +0000 (15:23 +1100)] 
Increase robustness of redhat/openssh.spec

 - remove configure --with-rsh, because this option isn't supported anymore
 - replace last occurrence of BuildPreReq by BuildRequires
 - update grep statement to query the krb5 include directory

Patch from CarstenGrohmann via github, ok djm.

10 years agoAllow --without-ssl-engine with --without-openssl
Darren Tucker [Tue, 15 Dec 2015 04:10:32 +0000 (15:10 +1100)] 
Allow --without-ssl-engine with --without-openssl

Patch from Mike Frysinger via github.

10 years agoInclude openssl crypto.h for SSLeay.
Darren Tucker [Tue, 15 Dec 2015 03:27:09 +0000 (14:27 +1100)] 
Include openssl crypto.h for SSLeay.

Patch from doughdemon via github.

10 years agoAdd sys/time.h for gettimeofday.
Darren Tucker [Tue, 15 Dec 2015 02:59:12 +0000 (13:59 +1100)] 
Add sys/time.h for gettimeofday.

Should allow it it compile with MUSL libc.  Based on patch from
doughdemon via github.

10 years agoupstream commit
djm@openbsd.org [Fri, 11 Dec 2015 02:20:28 +0000 (02:20 +0000)] 
upstream commit

correct error messages; from Tomas Kuthan bz#2507

Upstream-ID: 7454a0affeab772398052954c79300aa82077093

10 years agoupstream commit
mmcc@openbsd.org [Fri, 11 Dec 2015 00:20:04 +0000 (00:20 +0000)] 
upstream commit

Pass (char *)NULL rather than (char *)0 to execl and
 execlp.

ok dtucker@

Upstream-ID: 56c955106cbddba86c3dd9bbf786ac0d1b361492

10 years agoupstream commit
mmcc@openbsd.org [Thu, 10 Dec 2015 17:08:40 +0000 (17:08 +0000)] 
upstream commit

Remove NULL-checks before free().

ok dtucker@

Upstream-ID: e3d3cb1ce900179906af36517b5eea0fb15e6ef8

10 years agoupstream commit
mmcc@openbsd.org [Thu, 10 Dec 2015 07:01:35 +0000 (07:01 +0000)] 
upstream commit

Fix a couple "the the" typos. ok dtucker@

Upstream-ID: ec364c5af32031f013001fd28d1bd3dfacfe9a72

10 years agoupstream commit
markus@openbsd.org [Mon, 7 Dec 2015 20:04:09 +0000 (20:04 +0000)] 
upstream commit

stricter encoding type checks for ssh-rsa; ok djm@

Upstream-ID: 8cca7c787599a5e8391e184d0b4f36fdc3665650

10 years agoDon't set IPV6_V6ONLY on OpenBSD
Damien Miller [Tue, 8 Dec 2015 22:18:45 +0000 (09:18 +1100)] 
Don't set IPV6_V6ONLY on OpenBSD

It isn't necessary and runs afoul of pledge(2) restrictions.

10 years agoupstream commit
djm@openbsd.org [Mon, 7 Dec 2015 02:20:46 +0000 (02:20 +0000)] 
upstream commit

basic unit tests for rsa-sha2-* signature types

Upstream-Regress-ID: 7dc4b9db809d578ff104d591b4d86560c3598d3c

10 years agoupstream commit
markus@openbsd.org [Sat, 5 Dec 2015 20:53:21 +0000 (20:53 +0000)] 
upstream commit

prefer rsa-sha2-512 over -256 for hostkeys, too; noticed
 by naddy@

Upstream-ID: 685f55f7ec566a8caca587750672723a0faf3ffe

10 years agoupstream commit
tobias@openbsd.org [Fri, 4 Dec 2015 21:51:06 +0000 (21:51 +0000)] 
upstream commit

Properly handle invalid %-format by calling fatal.

ok deraadt, djm

Upstream-ID: 5692bce7d9f6eaa9c488cb93d3b55e758bef1eac

10 years agoupstream commit
markus@openbsd.org [Fri, 4 Dec 2015 16:41:28 +0000 (16:41 +0000)] 
upstream commit

implement SHA2-{256,512} for RSASSA-PKCS1-v1_5 signatures
 (user and host auth) based on draft-rsa-dsa-sha2-256-03.txt and
 draft-ssh-ext-info-04.txt; with & ok djm@

Upstream-ID: cf82ce532b2733e5c4b34bb7b7c94835632db309

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

clean up agent_fd handling; properly initialise it to -1
 and make tests consistent

ok markus@

Upstream-ID: ac9554323d5065745caf17b5e37cb0f0d4825707

10 years agoupstream commit
semarie@openbsd.org [Thu, 3 Dec 2015 17:00:18 +0000 (17:00 +0000)] 
upstream commit

pledges ssh client:   - mux client: which is used when
 ControlMaster is in use.     will end with "stdio proc tty" (proc is to
 permit sending SIGWINCH to mux master on window resize)

  - client loop: several levels of pledging depending of your used options

ok deraadt@

Upstream-ID: 21676155a700e51f2ce911e33538e92a2cd1d94b

10 years agoupstream commit
doug@openbsd.org [Wed, 2 Dec 2015 08:30:50 +0000 (08:30 +0000)] 
upstream commit

Add "cpath" to the ssh-agent pledge so the cleanup
 handler can unlink().

ok djm@

Upstream-ID: 9e632991d48241d56db645602d381253a3d8c29d

10 years agoupstream commit
djm@openbsd.org [Wed, 2 Dec 2015 08:00:58 +0000 (08:00 +0000)] 
upstream commit

ssh-agent pledge needs proc for askpass; spotted by todd@

Upstream-ID: 349aa261b29cc0e7de47ef56167769c432630b2a

10 years agoupstream commit
djm@openbsd.org [Tue, 1 Dec 2015 23:29:24 +0000 (23:29 +0000)] 
upstream commit

basic pledge() for ssh-agent, more refinement needed

Upstream-ID: 5b5b03c88162fce549e45e1b6dd833f20bbb5e13