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

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