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

10 years agoRevert "stub for pledge(2) for systems that lack it"
Damien Miller [Sun, 29 Nov 2015 23:53:25 +0000 (10:53 +1100)] 
Revert "stub for pledge(2) for systems that lack it"

This reverts commit 14c887c8393adde2d9fd437d498be30f8c98535c.

dtucker beat me to it :/

10 years agorevert 7d4c7513: bring back S/Key prototypes
Damien Miller [Sun, 29 Nov 2015 23:37:03 +0000 (10:37 +1100)] 
revert 7d4c7513: bring back S/Key prototypes

(but leave RCSID changes)

10 years agostub for pledge(2) for systems that lack it
Damien Miller [Sun, 29 Nov 2015 22:45:29 +0000 (09:45 +1100)] 
stub for pledge(2) for systems that lack it

10 years agoupstream commit
djm@openbsd.org [Sun, 29 Nov 2015 22:18:37 +0000 (22:18 +0000)] 
upstream commit

pledge, better fatal() messages; feedback deraadt@

Upstream-ID: 3e00f6ccfe2b9a7a2d1dbba5409586180801488f

10 years agoupstream commit
deraadt@openbsd.org [Sat, 28 Nov 2015 06:50:52 +0000 (06:50 +0000)] 
upstream commit

do not leak temp file if there is no known_hosts file
 from craig leres, ok djm

Upstream-ID: c820497fd5574844c782e79405c55860f170e426

10 years agoAdd a null implementation of pledge.
Darren Tucker [Sun, 29 Nov 2015 20:23:53 +0000 (07:23 +1100)] 
Add a null implementation of pledge.

Fixes builds on almost everything.

10 years agoupstream commit
djm@openbsd.org [Sat, 28 Nov 2015 06:41:03 +0000 (06:41 +0000)] 
upstream commit

don't include port number in tcpip-forward replies for
 requests that don't allocate a port; bz#2509 diagnosed by Ron Frederick ok
 markus

Upstream-ID: 77efad818addb61ec638b5a2362f1554e21a970a

10 years agoupstream commit
deraadt@openbsd.org [Fri, 27 Nov 2015 00:49:31 +0000 (00:49 +0000)] 
upstream commit

pledge "stdio rpath wpath cpath fattr tty proc exec"
 except for the -p option (which sadly has insane semantics...) ok semarie
 dtucker

Upstream-ID: 8854bbd58279abe00f6c33f8094bdc02c8c65059

10 years agoupstream commit
halex@openbsd.org [Fri, 20 Nov 2015 23:04:01 +0000 (23:04 +0000)] 
upstream commit

allow comment change for all supported formats

ok djm@

Upstream-ID: 5fc477cf2f119b2d44aa9c683af16cb00bb3744b

10 years agoupstream commit
djm@openbsd.org [Fri, 20 Nov 2015 01:45:29 +0000 (01:45 +0000)] 
upstream commit

add cast to make -Werror clean

Upstream-ID: 288db4f8f810bd475be01320c198250a04ff064d

10 years agofix multiple authentication using S/Key w/ privsep
Damien Miller [Fri, 20 Nov 2015 01:35:41 +0000 (12:35 +1100)] 
fix multiple authentication using S/Key w/ privsep

bz#2502, patch from Kevin Korb and feandil_

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

ban ConnectionAttempts=0, it makes no sense and would cause
 ssh_connect_direct() to print an uninitialised stack variable; bz#2500
 reported by dvw AT phas.ubc.ca

Upstream-ID: 32b5134c608270583a90b93a07b3feb3cbd5f7d5

10 years agoupstream commit
djm@openbsd.org [Thu, 19 Nov 2015 01:12:32 +0000 (01:12 +0000)] 
upstream commit

trailing whitespace

Upstream-ID: 31fe0ad7c4d08e87f1d69c79372f5e3c5cd79051

10 years agoupstream commit
djm@openbsd.org [Thu, 19 Nov 2015 01:09:38 +0000 (01:09 +0000)] 
upstream commit

print host certificate contents at debug level

Upstream-ID: 39354cdd8a2b32b308fd03f98645f877f540f00d

10 years agoupstream commit
djm@openbsd.org [Thu, 19 Nov 2015 01:08:55 +0000 (01:08 +0000)] 
upstream commit

move the certificate validity formatting code to
 sshkey.[ch]

Upstream-ID: f05f7c78fab20d02ff1d5ceeda533ef52e8fe523

10 years agoupstream commit
djm@openbsd.org [Wed, 18 Nov 2015 08:37:28 +0000 (08:37 +0000)] 
upstream commit

fix "ssh-keygen -l" of private key, broken in support for
 multiple plain keys on stdin

Upstream-ID: 6b3132d2c62d03d0bad6f2bcd7e2d8b7dab5cd9d

10 years agoupstream commit
millert@openbsd.org [Mon, 16 Nov 2015 23:47:52 +0000 (23:47 +0000)] 
upstream commit

Replace remaining calls to index(3) with strchr(3).  OK
 jca@ krw@

Upstream-ID: 33837d767a0cf1db1489b96055f9e330bc0bab6d

10 years agoupstream commit
djm@openbsd.org [Mon, 16 Nov 2015 22:53:07 +0000 (22:53 +0000)] 
upstream commit

Allow fingerprinting from standard input "ssh-keygen -lf
 -"

Support fingerprinting multiple plain keys in a file and authorized_keys
files too (bz#1319)

ok markus@

Upstream-ID: 903f8b4502929d6ccf53509e4e07eae084574b77

10 years agoupstream commit
djm@openbsd.org [Mon, 16 Nov 2015 22:51:05 +0000 (22:51 +0000)] 
upstream commit

always call privsep_preauth_child() regardless of whether
 sshd was started by root; it does important priming before sandboxing and
 failing to call it could result in sandbox violations later; ok markus@

Upstream-ID: c8a6d0d56c42f3faab38460dc917ca0d1705d383

10 years agoupstream commit
djm@openbsd.org [Mon, 16 Nov 2015 22:50:01 +0000 (22:50 +0000)] 
upstream commit

improve sshkey_read() semantics; only update *cpp when a
 key is successfully read; ok markus@

Upstream-ID: f371e78e8f4fab366cf69a42bdecedaed5d1b089

10 years agoupstream commit
logan@openbsd.org [Mon, 16 Nov 2015 06:13:04 +0000 (06:13 +0000)] 
upstream commit

1) Use xcalloc() instead of xmalloc() to check for
 potential overflow.    (Feedback from both mmcc@ and djm@) 2) move set_size
 just before the for loop. (suggested by djm@)

OK djm@

Upstream-ID: 013534c308187284756c3141f11d2c0f33c47213

10 years agoupstream commit
djm@openbsd.org [Mon, 16 Nov 2015 00:30:02 +0000 (00:30 +0000)] 
upstream commit

Add a new authorized_keys option "restrict" that
 includes all current and future key restrictions (no-*-forwarding, etc). Also
 add permissive versions of the existing restrictions, e.g. "no-pty" -> "pty".
 This simplifies the task of setting up restricted keys and ensures they are
 maximally-restricted, regardless of any permissions we might implement in the
 future.

Example:

restrict,pty,command="nethack" ssh-ed25519 AAAAC3NzaC1lZDI1...

Idea from Jann Horn; ok markus@

Upstream-ID: 04ceb9d448e46e67e13887a7ae5ea45b4f1719d0

10 years agoupstream commit
jmc@openbsd.org [Sun, 15 Nov 2015 23:58:04 +0000 (23:58 +0000)] 
upstream commit

correct section number for ssh-agent;

Upstream-ID: 44be72fd8bcc167635c49b357b1beea8d5674bd6

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

do not confuse mandoc by presenting "Dd";

Upstream-ID: 1470fce171c47b60bbc7ecd0fc717a442c2cfe65

10 years agoupstream commit
jcs@openbsd.org [Sun, 15 Nov 2015 22:26:49 +0000 (22:26 +0000)] 
upstream commit

Add an AddKeysToAgent client option which can be set to
 'yes', 'no', 'ask', or 'confirm', and defaults to 'no'.  When enabled, a
 private key that is used during authentication will be added to ssh-agent if
 it is running (with confirmation enabled if set to 'confirm').

Initial version from Joachim Schipper many years ago.

ok markus@

Upstream-ID: a680db2248e8064ec55f8be72d539458c987d5f4

10 years agoupstream commit
djm@openbsd.org [Fri, 13 Nov 2015 04:39:35 +0000 (04:39 +0000)] 
upstream commit

send SSH2_MSG_UNIMPLEMENTED replies to unexpected
 messages during KEX; bz#2949, ok dtucker@

Upstream-ID: 2b3abdff344d53c8d505f45c83a7b12e84935786

10 years agoupstream commit
djm@openbsd.org [Fri, 13 Nov 2015 04:38:06 +0000 (04:38 +0000)] 
upstream commit

Support "none" as an argument for sshd_config
 ForceCommand and ChrootDirectory. Useful inside Match blocks to override a
 global default. bz#2486 ok dtucker@

Upstream-ID: 7ef478d6592bc7db5c7376fc33b4443e63dccfa5

10 years agoupstream commit
djm@openbsd.org [Fri, 13 Nov 2015 04:34:15 +0000 (04:34 +0000)] 
upstream commit

support multiple certificates (one per line) and
 reading from standard input (using "-f -") for "ssh-keygen -L"; ok dtucker@

Upstream-ID: ecbadeeef3926e5be6281689b7250a32a80e88db

10 years agoupstream commit
djm@openbsd.org [Fri, 13 Nov 2015 02:57:46 +0000 (02:57 +0000)] 
upstream commit

list a couple more options usable in Match blocks;
 bz#2489

Upstream-ID: e4d03f39d254db4c0cc54101921bb89fbda19879

10 years agoupstream commit
djm@openbsd.org [Wed, 11 Nov 2015 04:56:39 +0000 (04:56 +0000)] 
upstream commit

improve PEEK/POKE macros: better casts, don't multiply
 evaluate arguments; ok deraadt@

Upstream-ID: 9a1889e19647615ededbbabab89064843ba92d3e

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