]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
9 years agoShorten prctl code a tiny bit.
Darren Tucker [Tue, 14 Jun 2016 00:43:53 +0000 (10:43 +1000)] 
Shorten prctl code a tiny bit.

9 years agoMove prctl PR_SET_DUMPABLE into platform.c.
Darren Tucker [Thu, 9 Jun 2016 06:23:07 +0000 (16:23 +1000)] 
Move prctl PR_SET_DUMPABLE into platform.c.

This should make it easier to add additional platform support such as
Solaris (bz#2584).

9 years agoupstream commit
dtucker@openbsd.org [Fri, 3 Jun 2016 04:10:41 +0000 (04:10 +0000)] 
upstream commit

Add a test for ssh(1)'s config file parsing.

Upstream-Regress-ID: 558b7f4dc45cc3761cc3d3e889b9f3c5bc91e601

9 years agoupstream commit
dtucker@openbsd.org [Fri, 3 Jun 2016 03:47:59 +0000 (03:47 +0000)] 
upstream commit

Add 'sshd' to the test ID as I'm about to add a similar
 set for ssh.

Upstream-Regress-ID: aea7a9c3bac638530165c801ce836875b228ae7a

9 years agoupstream commit
schwarze@openbsd.org [Mon, 30 May 2016 12:14:08 +0000 (12:14 +0000)] 
upstream commit

stricter malloc.conf(5) options for utf8 tests

Upstream-Regress-ID: 111efe20a0fb692fa1a987f6e823310f9b25abf6

9 years agoupstream commit
schwarze@openbsd.org [Mon, 30 May 2016 12:05:56 +0000 (12:05 +0000)] 
upstream commit

Fix two rare edge cases: 1. If vasprintf() returns < 0,
 do not access a NULL pointer in snmprintf(), and do not free() the pointer
 returned from vasprintf() because on some systems other than OpenBSD, it
 might be a bogus pointer. 2. If vasprintf() returns == 0, return 0 and ""
 rather than -1 and NULL.

Besides, free(dst) is pointless after failure (not a bug).

One half OK martijn@, the other half OK deraadt@;
committing quickly before people get hurt.

Upstream-Regress-ID: b164f20923812c9bac69856dbc1385eb1522cba4

9 years agoupstream commit
schwarze@openbsd.org [Thu, 26 May 2016 19:14:25 +0000 (19:14 +0000)] 
upstream commit

test the new utf8 module

Upstream-Regress-ID: c923d05a20e84e4ef152cbec947fdc4ce6eabbe3

9 years agoupstream commit
dtucker@openbsd.org [Tue, 3 May 2016 15:30:46 +0000 (15:30 +0000)] 
upstream commit

Set umask to prevent "Bad owner or permissions" errors.

Upstream-Regress-ID: 8fdf2fc4eb595ccd80c443f474d639f851145417

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 14:41:04 +0000 (14:41 +0000)] 
upstream commit

support doas

Upstream-Regress-ID: 8d5572b27ea810394eeda432d8b4e9e1064a7c38

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 13:48:33 +0000 (13:48 +0000)] 
upstream commit

unit tests for sshbuf_dup_string()

Upstream-Regress-ID: 7521ff150dc7f20511d1c2c48fd3318e5850a96d

9 years agoupstream commit
jmc@openbsd.org [Fri, 3 Jun 2016 06:44:12 +0000 (06:44 +0000)] 
upstream commit

tweak previous;

Upstream-ID: 92979f1a0b63e041a0e5b08c9ed0ba9b683a3698

9 years agoupstream commit
dtucker@openbsd.org [Fri, 3 Jun 2016 04:09:38 +0000 (04:09 +0000)] 
upstream commit

Allow ExitOnForwardFailure and ClearAllForwardings to be
 overridden when using ssh -W (but still default to yes in that case).
 bz#2577, ok djm@.

Upstream-ID: 4b20c419e93ca11a861c81c284090cfabc8c54d4

9 years agoupstream commit
dtucker@openbsd.org [Fri, 3 Jun 2016 03:14:41 +0000 (03:14 +0000)] 
upstream commit

Move the host and port used by ssh -W into the Options
 struct. This will make future changes a bit easier.  ok djm@

Upstream-ID: 151bce5ecab2fbedf0d836250a27968d30389382

9 years agoupstream commit
dtucker@openbsd.org [Wed, 1 Jun 2016 04:19:49 +0000 (04:19 +0000)] 
upstream commit

Check min and max sizes sent by the client against what
 we support before passing them to the monitor.  ok djm@

Upstream-ID: 750627e8117084215412bff00a25b1586ab17ece

9 years agoupstream commit
dtucker@openbsd.org [Tue, 31 May 2016 23:46:14 +0000 (23:46 +0000)] 
upstream commit

Ensure that the client's proposed DH-GEX max value is at
 least as big as the minimum the server will accept.  ok djm@

Upstream-ID: b4b84fa04aab2de7e79a6fee4a6e1c189c0fe775

9 years agoAdd compat bits to utf8.c.
Darren Tucker [Mon, 6 Jun 2016 01:36:13 +0000 (11:36 +1000)] 
Add compat bits to utf8.c.

9 years agoFix utf->utf8 typo.
Darren Tucker [Mon, 6 Jun 2016 01:33:43 +0000 (11:33 +1000)] 
Fix utf->utf8 typo.

9 years agoupstream commit
schwarze@openbsd.org [Mon, 30 May 2016 18:34:41 +0000 (18:34 +0000)] 
upstream commit

Backout rev. 1.43 for now.

The function update_progress_meter() calls refresh_progress_meter()
which calls snmprintf() which calls malloc(); but update_progress_meter()
acts as the SIGALRM signal handler.

"malloc(): error: recursive call" reported by sobrado@.

Upstream-ID: aaae57989431e5239c101f8310f74ccc83aeb93e

9 years agoupstream commit
schwarze@openbsd.org [Mon, 30 May 2016 12:57:21 +0000 (12:57 +0000)] 
upstream commit

Even when only writing an unescaped character, the dst
 buffer may need to grow, or it would be overrun; issue found by tb@ with
 malloc.conf(5) 'C'.

While here, reserve an additional byte for the terminating NUL
up front such that we don't have to realloc() later just for that.

OK tb@

Upstream-ID: 30ebcc0c097c4571b16f0a78b44969f170db0cff

9 years agoupstream commit
schwarze@openbsd.org [Mon, 30 May 2016 12:05:56 +0000 (12:05 +0000)] 
upstream commit

Fix two rare edge cases: 1. If vasprintf() returns < 0,
 do not access a NULL pointer in snmprintf(), and do not free() the pointer
 returned from vasprintf() because on some systems other than OpenBSD, it
 might be a bogus pointer. 2. If vasprintf() returns == 0, return 0 and ""
 rather than -1 and NULL.

Besides, free(dst) is pointless after failure (not a bug).

One half OK martijn@, the other half OK deraadt@;
committing quickly before people get hurt.

Upstream-ID: b7bcd2e82fc168a8eff94e41f5db336ed986fed0

9 years agoupstream commit
schwarze@openbsd.org [Wed, 25 May 2016 23:48:45 +0000 (23:48 +0000)] 
upstream commit

To prevent screwing up terminal settings when printing to
 the terminal, for ASCII and UTF-8, escape bytes not forming characters and
 bytes forming non-printable characters with vis(3) VIS_OCTAL. For other
 character sets, abort printing of the current string in these cases.  In
 particular, * let scp(1) respect the local user's LC_CTYPE locale(1); *
 sanitize data received from the remote host; * sanitize filenames, usernames,
 and similar data even locally; * take character display widths into account
 for the progressmeter.

This is believed to be sufficient to keep the local terminal safe
on OpenBSD, but bad things can still happen on other systems with
state-dependent locales because many places in the code print
unencoded ASCII characters into the output stream.

Using feedback from djm@ and martijn@,
various aspects discussed with many others.

deraadt@ says it should go in now, i probably already hesitated too long

Upstream-ID: e66afbc94ee396ddcaffd433b9a3b80f387647e0

9 years agoupstream commit
dtucker@openbsd.org [Tue, 24 May 2016 04:43:45 +0000 (04:43 +0000)] 
upstream commit

KNF compression proposal and simplify the client side a
 little.  ok djm@

Upstream-ID: aa814b694efe9e5af8a26e4c80a05526ae6d6605

9 years agoupstream commit
dtucker@openbsd.org [Tue, 24 May 2016 02:31:57 +0000 (02:31 +0000)] 
upstream commit

Back out 'plug memleak'.

Upstream-ID: 4faacdde136c24a961e24538de373660f869dbc0

9 years agoupstream commit
djm@openbsd.org [Mon, 23 May 2016 23:30:50 +0000 (23:30 +0000)] 
upstream commit

prefer agent-hosted keys to keys from PKCS#11; ok markus

Upstream-ID: 7417f7653d58d6306d9f8c08d0263d050e2fd8f4

9 years agoupstream commit
dtucker@openbsd.org [Mon, 23 May 2016 00:17:27 +0000 (00:17 +0000)] 
upstream commit

Plug mem leak in filter_proposal.  ok djm@

Upstream-ID: bf968da7cfcea2a41902832e7d548356a4e2af34

9 years agoUpdate vis.h and vis.c from OpenBSD.
Darren Tucker [Fri, 3 Jun 2016 06:03:44 +0000 (16:03 +1000)] 
Update vis.h and vis.c from OpenBSD.

This will be needed for the upcoming utf8 changes.

9 years agomodified: configure.ac
Tim Rice [Tue, 31 May 2016 18:13:22 +0000 (11:13 -0700)] 
modified:   configure.ac
whitspace clean up. No code changes.

9 years agowhitespace at EOL
Damien Miller [Tue, 31 May 2016 06:45:28 +0000 (16:45 +1000)] 
whitespace at EOL

9 years agoAdd missing ssh-host-config --name option
Darren Tucker [Mon, 30 May 2016 09:35:28 +0000 (19:35 +1000)] 
Add missing ssh-host-config --name option

Patch from vinschen@redhat.com.

9 years agoFix comment about sshpam_const and AIX.
Darren Tucker [Fri, 20 May 2016 00:01:58 +0000 (10:01 +1000)] 
Fix comment about sshpam_const and AIX.

From mschwager via github.

9 years agoDeny lstat syscalls in seccomp sandbox
Damien Miller [Thu, 19 May 2016 23:56:53 +0000 (09:56 +1000)] 
Deny lstat syscalls in seccomp sandbox

Avoids sandbox violations for some krb/gssapi libraries.

9 years agoupstream commit
djm@openbsd.org [Thu, 19 May 2016 07:45:32 +0000 (07:45 +0000)] 
upstream commit

fix type of ed25519 values

Upstream-ID: b32d0cb372bbe918ca2de56906901eae225a59b0

9 years agoupstream commit
markus@openbsd.org [Wed, 4 May 2016 14:32:26 +0000 (14:32 +0000)] 
upstream commit

add IdentityAgent; noticed & ok jmc@

Upstream-ID: 4ba9034b00a4cf1beae627f0728da897802df88a

9 years agoupstream commit
markus@openbsd.org [Wed, 4 May 2016 14:29:58 +0000 (14:29 +0000)] 
upstream commit

allow setting IdentityAgent to SSH_AUTH_SOCK; ok djm@

Upstream-ID: 20c508480d8db3eef18942c0fc39b1fcf25652ac

9 years agoupstream commit
markus@openbsd.org [Wed, 4 May 2016 14:22:33 +0000 (14:22 +0000)] 
upstream commit

move SSH_MSG_NONE, so we don't have to include ssh1.h;
 ok deraadt@

Upstream-ID: c2f97502efc761a41b18c17ddf460e138ca7994e

9 years agoinitialise salen in binresvport_sa
Damien Miller [Mon, 9 May 2016 23:51:06 +0000 (09:51 +1000)] 
initialise salen in binresvport_sa

avoids failures with UsePrivilegedPort=yes

patch from Juan Gallego

9 years agoupstream commit
markus@openbsd.org [Wed, 4 May 2016 14:04:40 +0000 (14:04 +0000)] 
upstream commit

missing const in prototypes (ssh1)

Upstream-ID: 789c6ad4928b5fa557369b88c3a6a34926082c05

9 years agoupstream commit
dtucker@openbsd.org [Wed, 4 May 2016 14:00:09 +0000 (14:00 +0000)] 
upstream commit

Fix inverted logic for updating StreamLocalBindMask which
 would cause the server to set an invalid mask. ok djm@

Upstream-ID: 8a4404c8307a5ef9e07ee2169fc6d8106b527587

9 years agoupstream commit
markus@openbsd.org [Wed, 4 May 2016 12:21:53 +0000 (12:21 +0000)] 
upstream commit

IdentityAgent for specifying specific agent sockets; ok
 djm@

Upstream-ID: 3e6a15eb89ea0fd406f108826b7dc7dec4fbfac1

9 years agoupstream commit
djm@openbsd.org [Wed, 4 May 2016 12:16:39 +0000 (12:16 +0000)] 
upstream commit

fix junk characters after quotes

Upstream-ID: cc4d0cd32cb6b55a2ef98975d2f7ae857d0dc578

9 years agoupstream commit
jmc@openbsd.org [Tue, 3 May 2016 18:38:12 +0000 (18:38 +0000)] 
upstream commit

correct article;

Upstream-ID: 1fbd5b7ab16d2d9834ec79c3cedd4738fa42a168

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 15:57:39 +0000 (15:57 +0000)] 
upstream commit

fix overriding of StreamLocalBindMask and
 StreamLocalBindUnlink in Match blocks; found the hard way Rogan Dawes

Upstream-ID: 940bc69ec0249ab428d24ccd0722ce35cb932ee2

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 15:25:06 +0000 (15:25 +0000)] 
upstream commit

don't forget to include StreamLocalBindUnlink in the
 config dump output

Upstream-ID: 14a6d970b3b45c8e94272e3c661e9a0b2a0ee7cb

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 14:54:08 +0000 (14:54 +0000)] 
upstream commit

make nethack^wrandomart fingerprint flag more readily
 searchable pointed out by Matt Johnston

Upstream-ID: cb40d0235dc153c478c1aad3bc60b195422a54fb

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 13:10:24 +0000 (13:10 +0000)] 
upstream commit

clarify ordering of subkeys; pointed out by ietf-ssh AT
 stbuehler.de

Upstream-ID: 05ebe9f949449a555ebce8e0aad7c8c9acaf8463

9 years agoupstream commit
dtucker@openbsd.org [Tue, 3 May 2016 12:15:49 +0000 (12:15 +0000)] 
upstream commit

Use a subshell for constructing key types to work around
 different sed behaviours for -portable.

Upstream-Regress-ID: 0f6eb673162df229eda9a134a0f10da16151552d

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 10:27:59 +0000 (10:27 +0000)] 
upstream commit

correct some typos and remove a long-stale XXX note.

add specification for ed25519 certificates

mention no host certificate options/extensions are currently defined

pointed out by Simon Tatham

Upstream-ID: 7b535ab7dba3340b7d8210ede6791fdaefdf839a

9 years agoupstream commit
djm@openbsd.org [Tue, 3 May 2016 10:24:27 +0000 (10:24 +0000)] 
upstream commit

add ed25519 keys that are supported but missing from this
 documents; from Peter Moody

Upstream-ID: 8caac2d8e8cfd2fca6dc304877346e0a064b014b

9 years agoupstream commit
dtucker@openbsd.org [Tue, 3 May 2016 09:03:49 +0000 (09:03 +0000)] 
upstream commit

Implement IUTF8 as per draft-sgtatham-secsh-iutf8-00.  Patch
 from Simon Tatham, ok markus@

Upstream-ID: 58268ebdf37d9d467f78216c681705a5e10c58e8

9 years agoupstream commit
djm@openbsd.org [Mon, 2 May 2016 14:10:58 +0000 (14:10 +0000)] 
upstream commit

unbreak config parsing on reexec from previous commit

Upstream-ID: bc69932638a291770955bd05ca55a32660a613ab

9 years agoupstream commit
djm@openbsd.org [Mon, 2 May 2016 09:52:00 +0000 (09:52 +0000)] 
upstream commit

unit and regress tests for SHA256/512; ok markus

Upstream-Regress-ID: a0cd1a92dc824067076a5fcef83c18df9b0bf2c6

9 years agoupstream commit
djm@openbsd.org [Mon, 2 May 2016 10:26:04 +0000 (10:26 +0000)] 
upstream commit

add support for additional fixed DH groups from
 draft-ietf-curdle-ssh-kex-sha2-03

diffie-hellman-group14-sha256 (2K group)
diffie-hellman-group16-sha512 (4K group)
diffie-hellman-group18-sha512 (8K group)

based on patch from Mark D. Baushke and Darren Tucker
ok markus@

Upstream-ID: ac00406ada4f0dfec41585ca0839f039545bc46f

9 years agoupstream commit
djm@openbsd.org [Mon, 2 May 2016 09:36:42 +0000 (09:36 +0000)] 
upstream commit

support SHA256 and SHA512 RSA signatures in certificates;
 ok markus@

Upstream-ID: b45be2f2ce8cacd794dc5730edaabc90e5eb434a

9 years agoupstream commit
djm@openbsd.org [Mon, 2 May 2016 08:49:03 +0000 (08:49 +0000)] 
upstream commit

fix signed/unsigned errors reported by clang-3.7; add
 sshbuf_dup_string() to replace a common idiom of strdup(sshbuf_ptr()) with
 better safety checking; feedback and ok markus@

Upstream-ID: 71f926d9bb3f1efed51319a6daf37e93d57c8820

9 years agoupstream commit
djm@openbsd.org [Fri, 29 Apr 2016 08:07:53 +0000 (08:07 +0000)] 
upstream commit

close ControlPersist background process stderr when not
 in debug mode or when logging to a file or syslog. bz#1988 ok dtucker

Upstream-ID: 4fb726f0fdcb155ad419913cea10dc4afd409d24

9 years agoupstream commit
djm@openbsd.org [Thu, 28 Apr 2016 14:30:21 +0000 (14:30 +0000)] 
upstream commit

fix comment

Upstream-ID: 313a385bd7b69a82f8e28ecbaf5789c774457b15

9 years agoupstream commit
jmc@openbsd.org [Wed, 27 Apr 2016 13:53:48 +0000 (13:53 +0000)] 
upstream commit

cidr permitted for {allow,deny}users; from lars nooden ok djm

Upstream-ID: 13e7327fe85f6c63f3f7f069e0fdc8c351515d11

9 years agoupstream commit
djm@openbsd.org [Thu, 21 Apr 2016 06:08:02 +0000 (06:08 +0000)] 
upstream commit

make argument == NULL tests more consistent

Upstream-ID: dc4816678704aa5cbda3a702e0fa2033ff04581d

9 years agoupstream commit
jmc@openbsd.org [Sun, 17 Apr 2016 14:34:46 +0000 (14:34 +0000)] 
upstream commit

tweak previous;

Upstream-ID: 46c1bab91c164078edbccd5f7d06b9058edd814f

9 years agoupstream commit
djm@openbsd.org [Fri, 15 Apr 2016 02:57:10 +0000 (02:57 +0000)] 
upstream commit

missing bit of Include regress

Upstream-Regress-ID: 1063595f7f40f8489a1b7a27230b9e8acccea34f

9 years agoupstream commit
djm@openbsd.org [Fri, 15 Apr 2016 02:55:53 +0000 (02:55 +0000)] 
upstream commit

remove redundant CLEANFILES section

Upstream-Regress-ID: 29ef1b267fa56daa60a1463396635e7d53afb587

9 years agoupstream commit
djm@openbsd.org [Fri, 15 Apr 2016 00:48:01 +0000 (00:48 +0000)] 
upstream commit

sync CLEANFILES with portable, sort

Upstream-Regress-ID: cb782f4f1ab3e079efbc335c6b64942f790766ed

9 years agoupstream commit
djm@openbsd.org [Fri, 15 Apr 2016 00:31:10 +0000 (00:31 +0000)] 
upstream commit

regression test for ssh_config Include directive

Upstream-Regress-ID: 46a38c8101f635461c506d1aac2d96af80f97f1e

9 years agoupstream commit
djm@openbsd.org [Thu, 14 Apr 2016 23:57:17 +0000 (23:57 +0000)] 
upstream commit

unbreak test for recent ssh de-duplicated forwarding
 change

Upstream-Regress-ID: 6b2b115d99acd7cff13986e6739ea214cf2a3da3

9 years agoupstream commit
djm@openbsd.org [Thu, 14 Apr 2016 23:21:42 +0000 (23:21 +0000)] 
upstream commit

add test knob and warning for StrictModes

Upstream-Regress-ID: 8cd10952ce7898655ee58945904f2a0a3bdf7682

9 years agoupstream commit
djm@openbsd.org [Fri, 15 Apr 2016 00:30:19 +0000 (00:30 +0000)] 
upstream commit

Include directive for ssh_config(5); feedback & ok markus@

Upstream-ID: ae3b76e2e343322b9f74acde6f1e1c5f027d5fff

9 years agoignore PAM environment vars when UseLogin=yes
Damien Miller [Wed, 13 Apr 2016 00:39:57 +0000 (10:39 +1000)] 
ignore PAM environment vars when UseLogin=yes

If PAM is configured to read user-specified environment variables
and UseLogin=yes in sshd_config, then a hostile local user may
attack /bin/login via LD_PRELOAD or similar environment variables
set via PAM.

CVE-2015-8325, found by Shayan Sadigh, via Colin Watson

9 years agoupstream commit
djm@openbsd.org [Sat, 9 Apr 2016 12:39:30 +0000 (12:39 +0000)] 
upstream commit

make private key loading functions consistently handle NULL
 key pointer arguments; ok markus@

Upstream-ID: 92038726ef4a338169c35dacc9c5a07fcc7fa761

9 years agoRemove NO_IPPORT_RESERVED_CONCEPT
Darren Tucker [Fri, 8 Apr 2016 11:14:13 +0000 (21:14 +1000)] 
Remove NO_IPPORT_RESERVED_CONCEPT

Replace by defining IPPORT_RESERVED to zero on Cygwin, which should have
the same effect without causing problems syncing patches with OpenBSD.
Resync the two affected functions with OpenBSD.  ok djm, sanity checked
by Corinna.

9 years agoupstream commit
djm@openbsd.org [Fri, 8 Apr 2016 08:19:17 +0000 (08:19 +0000)] 
upstream commit

whitespace at EOL

Upstream-ID: 5beffd4e001515da12851b974e2323ae4aa313b6

9 years agoupstream commit
djm@openbsd.org [Fri, 8 Apr 2016 06:35:54 +0000 (06:35 +0000)] 
upstream commit

We accidentally send an empty string and a zero uint32 with
 every direct-streamlocal@openssh.com channel open, in contravention of our
 own spec.

Fixing this is too hard wrt existing versions that expect these
fields to be present and fatal() if they aren't, so document them
as "reserved" fields in the PROTOCOL spec as though we always
intended this and let us never speak of it again.

bz#2529, reported by Ron Frederick

Upstream-ID: 34cd326a4d236ca6e39084c4ff796bd97ab833e7

9 years agoupstream commit
djm@openbsd.org [Wed, 6 Apr 2016 06:42:17 +0000 (06:42 +0000)] 
upstream commit

don't record duplicate LocalForward and RemoteForward
 entries; fixes failure with ExitOnForwardFailure+hostname canonicalisation
 where the same forwards are added on the second pass through the
 configuration file. bz#2562; ok dtucker@

Upstream-ID: 40a51d68b6300f1cc61deecdb7d4847b8b7b0de1

9 years agoupstream commit
krw@openbsd.org [Sat, 2 Apr 2016 14:37:42 +0000 (14:37 +0000)] 
upstream commit

Another use for fcntl() and thus of the superfluous 3rd
 parameter is when sanitising standard fd's before calling daemon().

Use a tweaked version of the ssh(1) function in all three places
found using fcntl() this way.

ok jca@ beck@

Upstream-ID: f16811ffa19a1c5f4ef383c5f0fecb843c84e218

9 years agoTidy up openssl header test.
Darren Tucker [Mon, 4 Apr 2016 01:09:21 +0000 (11:09 +1000)] 
Tidy up openssl header test.

9 years agoFix configure-time warnings for openssl test.
Darren Tucker [Mon, 4 Apr 2016 01:07:59 +0000 (11:07 +1000)] 
Fix configure-time warnings for openssl test.

9 years agoupstream commit
djm@openbsd.org [Fri, 1 Apr 2016 02:34:10 +0000 (02:34 +0000)] 
upstream commit

whitespace at EOL

Upstream-ID: 40ae2203d07cb14e0a89e1a0d4c6120ee8fd8c3a

9 years agoupstream commit
dtucker@openbsd.org [Thu, 31 Mar 2016 05:24:06 +0000 (05:24 +0000)] 
upstream commit

Remove fallback from moduli to "primes" file that was
 deprecated in 2001 and fix log messages referring to primes file.  Based on
 patch from xnox at ubuntu.com via bz#2559.  "kill it" deraadt@

Upstream-ID: 0d4f8c70e2fa7431a83b95f8ca81033147ba8713

9 years agoupstream commit
djm@openbsd.org [Thu, 17 Mar 2016 17:19:43 +0000 (17:19 +0000)] 
upstream commit

UseDNS affects ssh hostname processing in authorized_keys,
 not known_hosts; bz#2554 reported by jjelen AT redhat.com

Upstream-ID: c1c1bb895dde46095fc6d81d8653703928437591

9 years agoDon't call Solaris setproject() with UsePAM=yes.
Darren Tucker [Mon, 14 Mar 2016 22:24:43 +0000 (09:24 +1100)] 
Don't call Solaris setproject() with UsePAM=yes.

When Solaris Projects are enabled along with PAM setting the project
is PAM's responsiblity.  bz#2425, based on patch from
brent.paulson at gmail.com.

9 years agoremove slogin from *.spec
Damien Miller [Mon, 14 Mar 2016 17:30:21 +0000 (04:30 +1100)] 
remove slogin from *.spec

9 years agoupstream commit
djm@openbsd.org [Mon, 14 Mar 2016 16:20:54 +0000 (16:20 +0000)] 
upstream commit

unbreak authentication using lone certificate keys in
 ssh-agent: when attempting pubkey auth with a certificate, if no separate
 private key is found among the keys then try with the certificate key itself.

bz#2550 reported by Peter Moody

Upstream-ID: f939cd76d68e6a9a3d1711b5a943d6ed1e623966

9 years agoupstream commit
djm@openbsd.org [Thu, 10 Mar 2016 11:47:57 +0000 (11:47 +0000)] 
upstream commit

sanitise characters destined for xauth reported by
 github.com/tintinweb feedback and ok deraadt and markus

Upstream-ID: 18ad8d0d74cbd2ea3306a16595a306ee356aa261

9 years agoPass supported malloc options to connect-privsep.
Darren Tucker [Mon, 14 Mar 2016 05:04:23 +0000 (16:04 +1100)] 
Pass supported malloc options to connect-privsep.

This allows us to activate only the supported options during the malloc
option portion of the connect-privsep test.

9 years agoRemove leftover roaming.h file.
Darren Tucker [Sun, 13 Mar 2016 22:30:58 +0000 (09:30 +1100)] 
Remove leftover roaming.h file.

Pointed out by des at des.no.

9 years agoQuote variables that may contain whitespace.
Darren Tucker [Sun, 13 Mar 2016 22:24:03 +0000 (09:24 +1100)] 
Quote variables that may contain whitespace.

The variable $L_TMP_ID_FILE needs to be surrounded by quotes in order to
survive paths containing whitespace.  bz#2551, from Corinna Vinschen via
Philip Hands.

9 years agoInclude priv.h for priv_set_t.
Darren Tucker [Fri, 11 Mar 2016 03:47:41 +0000 (14:47 +1100)] 
Include priv.h for priv_set_t.

From alex at cooperi.net.

9 years agoWrap stdint.h inside #ifdef HAVE_STDINT_H.
Darren Tucker [Wed, 9 Mar 2016 02:14:18 +0000 (13:14 +1100)] 
Wrap stdint.h inside #ifdef HAVE_STDINT_H.

9 years agoAdd compat to monotime_double().
Darren Tucker [Wed, 9 Mar 2016 01:46:50 +0000 (12:46 +1100)] 
Add compat to monotime_double().

Apply all of the portability changes in monotime() to monotime() double.
Fixes build on at least older FreeBSD systems.

9 years agomake a regress-binaries target
Damien Miller [Tue, 8 Mar 2016 22:12:58 +0000 (14:12 -0800)] 
make a regress-binaries target

Easier to build all the regression/unit test binaries in one pass
than going through all of ${REGRESS_BINARIES}

9 years agounbreak kexfuzz for -Werror without __bounded__
Damien Miller [Tue, 8 Mar 2016 22:03:54 +0000 (14:03 -0800)] 
unbreak kexfuzz for -Werror without __bounded__

9 years agounbreak PAM after canohost refactor
Damien Miller [Tue, 8 Mar 2016 22:01:29 +0000 (14:01 -0800)] 
unbreak PAM after canohost refactor

9 years agoauth_get_canonical_hostname in portable code.
Darren Tucker [Tue, 8 Mar 2016 00:58:43 +0000 (11:58 +1100)] 
auth_get_canonical_hostname in portable code.

"refactor canohost.c" replaced get_canonical_hostname, this makes the
same change to some portable-specific code.

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