]>
git.ipfire.org Git - thirdparty/openssh-portable.git/log
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
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
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_
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
djm@openbsd.org [Thu, 19 Nov 2015 01:12:32 +0000 (01:12 +0000)]
upstream commit
trailing whitespace
Upstream-ID:
31fe0ad7c4d08e87f1d69c79372f5e3c5cd79051
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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@
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
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
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
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
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
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
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
Damien Miller [Wed, 21 Oct 2015 22:35:24 +0000 (09:35 +1100)]
turn off PrintLastLog when --disable-lastlog
bz#2278 from Brent Paulson
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
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
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
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
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
Damien Miller [Thu, 15 Oct 2015 23:53:14 +0000 (10:53 +1100)]
need va_copy before va_start
reported by Nicholas Lemonias
Damien Miller [Thu, 15 Oct 2015 22:48:28 +0000 (15:48 -0700)]
fix compilation on systems without SYMLOOP_MAX
Damien Miller [Wed, 14 Oct 2015 16:22:15 +0000 (09:22 -0700)]
s/SANDBOX_TAME/SANDBOX_PLEDGE/g
Damien Miller [Tue, 13 Oct 2015 21:28:19 +0000 (08:28 +1100)]
upstream commit
revision 1.20
date: 2015/10/13 20:55:37; author: millert; state: Exp; lines: +2 -2; commitid: X39sl5ay1czgFIgp;
In rev 1.15 the sizeof argument was fixed in a strlcat() call but
the truncation check immediately following it was not updated to
match. Not an issue in practice since the buffers are the same
size. OK deraadt@
Damien Miller [Tue, 13 Oct 2015 21:27:51 +0000 (08:27 +1100)]
upstream commit
revision 1.19
date: 2015/01/16 16:48:51; author: deraadt; state: Exp; lines: +3 -3; commitid: 0DYulI8hhujBHMcR;
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
Damien Miller [Tue, 13 Oct 2015 21:27:08 +0000 (08:27 +1100)]
upstream commit
revision 1.18
date: 2014/10/19 03:56:28; author: doug; state: Exp; lines: +9 -9; commitid: U6QxmtbXrGoc02S5;
Revert last commit due to changed semantics found by make release.
Damien Miller [Tue, 13 Oct 2015 21:26:24 +0000 (08:26 +1100)]
upstream commit
revision 1.17
date: 2014/10/18 20:43:52; author: doug; state: Exp; lines: +10 -10; commitid: I74hI1tVZtsspKEt;
Better POSIX compliance in realpath(3).
millert@ made changes to realpath.c based on FreeBSD's version. I merged
Todd's changes into dl_realpath.c.
ok millert@, guenther@
Damien Miller [Tue, 13 Oct 2015 21:25:55 +0000 (08:25 +1100)]
upstream commit
revision 1.16
date: 2013/04/05 12:59:54; author: kurt; state: Exp; lines: +3 -1;
- Add comments regarding copies of these files also in libexec/ld.so
okay guenther@
Damien Miller [Tue, 13 Oct 2015 21:25:32 +0000 (08:25 +1100)]
upstream commit
revision 1.15
date: 2012/09/13 15:39:05; author: deraadt; state: Exp; lines: +2 -2;
specify the bounds of the dst to strlcat (both values were static and
equal, but it is more correct)
from Michal Mazurek
Damien Miller [Tue, 13 Oct 2015 21:25:09 +0000 (08:25 +1100)]
upstream commit
revision 1.14
date: 2011/07/24 21:03:00; author: miod; state: Exp; lines: +35 -13;
Recent Single Unix will malloc memory if the second argument of realpath()
is NULL, and third-party software is starting to rely upon this.
Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor
tweaks from nicm@ and yours truly.
djm@openbsd.org [Tue, 13 Oct 2015 16:15:21 +0000 (16:15 +0000)]
upstream commit
apply PubkeyAcceptedKeyTypes filtering earlier, so all
skipped keys are noted before pubkey authentication starts. ok dtucker@
Upstream-ID:
ba4f52f54268a421a2a5f98bb375403f4cb044b8
djm@openbsd.org [Tue, 13 Oct 2015 00:21:27 +0000 (00:21 +0000)]
upstream commit
free the correct IV length, don't assume it's always the
cipher blocksize; ok dtucker@
Upstream-ID:
c260d9e5ec73628d9ff4b067fbb060eff5a7d298
deraadt@openbsd.org [Fri, 9 Oct 2015 01:37:08 +0000 (01:37 +0000)]
upstream commit
Change all tame callers to namechange to pledge(2).
Upstream-ID:
17e654fc27ceaf523c60f4ffd9ec7ae4e7efc7f2
Damien Miller [Wed, 7 Oct 2015 17:30:48 +0000 (04:30 +1100)]
hook tame(2) sandbox up to build
OpenBSD only for now
djm@openbsd.org [Wed, 7 Oct 2015 15:59:12 +0000 (15:59 +0000)]
upstream commit
include PubkeyAcceptedKeyTypes in ssh -G config dump
Upstream-ID:
6c097ce6ffebf6fe393fb7988b5d152a5d6b36bb
sobrado@openbsd.org [Wed, 7 Oct 2015 14:45:30 +0000 (14:45 +0000)]
upstream commit
UsePrivilegeSeparation defaults to sandbox now.
ok djm@
Upstream-ID:
bff136c38bcae89df82e044d2f42de21e1ad914f
djm@openbsd.org [Wed, 7 Oct 2015 00:54:06 +0000 (00:54 +0000)]
upstream commit
don't try to change tun device flags if they are already
what we need; makes it possible to use tun/tap networking as non- root user
if device permissions and interface flags are pre-established; based on patch
by Ossi Herrala
Upstream-ID:
89099ac4634cd477b066865acf54cb230780fd21
Damien Miller [Tue, 6 Oct 2015 01:33:05 +0000 (18:33 -0700)]
unbreak merge botch
djm@openbsd.org [Tue, 6 Oct 2015 01:20:59 +0000 (01:20 +0000)]
upstream commit
adapt to recent sshkey_parse_private_fileblob() API
change
Upstream-Regress-ID:
5c0d818da511e33e0abf6a92a31bd7163b7ad988
djm@openbsd.org [Thu, 24 Sep 2015 07:15:39 +0000 (07:15 +0000)]
upstream commit
fix command-line option to match what was actually
committed
Upstream-Regress-ID:
3e8c24a2044e8afd37e7ce17b69002ca817ac699
djm@openbsd.org [Thu, 24 Sep 2015 06:16:53 +0000 (06:16 +0000)]
upstream commit
regress test for CertificateFile; patch from Meghana Bhat
via bz#2436
Upstream-Regress-ID:
e7a6e980cbe0f8081ba2e83de40d06c17be8bd25
djm@openbsd.org [Mon, 5 Oct 2015 17:11:21 +0000 (17:11 +0000)]
upstream commit
some more bzero->explicit_bzero, from Michael McConville
Upstream-ID:
17f19545685c33327db2efdc357c1c9225ff00d0
deraadt@openbsd.org [Fri, 2 Oct 2015 15:52:55 +0000 (15:52 +0000)]
deraadt@openbsd.org [Fri, 2 Oct 2015 01:39:52 +0000 (01:39 +0000)]
upstream commit
a sandbox using tame ok djm
Upstream-ID:
4ca24e47895e72f5daaa02f3e3d3e5ca2d820fa3
deraadt@openbsd.org [Fri, 2 Oct 2015 01:39:26 +0000 (01:39 +0000)]
upstream commit
re-order system calls in order of risk, ok i'll be
honest, ordered this way they look like tame... ok djm
Upstream-ID:
42a1e6d251fd8be13c8262bee026059ae6328813
jmc@openbsd.org [Fri, 25 Sep 2015 18:19:54 +0000 (18:19 +0000)]
upstream commit
some certificatefile tweaks; ok djm
Upstream-ID:
0e5a7852c28c05fc193419cc7e50e64c1c535af0
djm@openbsd.org [Thu, 24 Sep 2015 06:15:11 +0000 (06:15 +0000)]
upstream commit
add ssh_config CertificateFile option to explicitly list
a certificate; patch from Meghana Bhat on bz#2436; ok markus@
Upstream-ID:
58648ec53c510b41c1f46d8fe293aadc87229ab8
sobrado@openbsd.org [Tue, 22 Sep 2015 08:33:23 +0000 (08:33 +0000)]
upstream commit
fix two typos.
Upstream-ID:
424402c0d8863a11b51749bacd7f8d932083b709
djm@openbsd.org [Mon, 21 Sep 2015 04:31:00 +0000 (04:31 +0000)]
upstream commit
fix possible hang on closed output; bz#2469 reported by Tomas
Kuthan ok markus@
Upstream-ID:
f7afd41810f8540f524284f1be6b970859f94fe3
djm@openbsd.org [Fri, 11 Sep 2015 04:55:01 +0000 (04:55 +0000)]
upstream commit
skip if running as root; many systems (inc OpenBSD) allow
root to ptrace arbitrary processes
Upstream-Regress-ID:
be2b925df89360dff36f972951fa0fa793769038
djm@openbsd.org [Fri, 11 Sep 2015 03:44:21 +0000 (03:44 +0000)]
upstream commit
try all supported key types here; bz#2455 reported by
Jakub Jelen
Upstream-Regress-ID:
188cb7d9031cdbac3a0fa58b428b8fa2b2482bba
tim@openbsd.org [Sun, 13 Sep 2015 14:39:16 +0000 (14:39 +0000)]
upstream commit
- Fix error message: passphrase needs to be at least 5
characters, not 4. - Remove unused function argument. - Remove two
unnecessary variables.
OK djm@
Upstream-ID:
13010c05bfa8b523da1c0dc19e81dd180662bc30
tim@openbsd.org [Sun, 13 Sep 2015 13:48:19 +0000 (13:48 +0000)]
upstream commit
When adding keys to the agent, don't ignore the comment
of keys for which the user is prompted for a passphrase.
Tweak and OK djm@
Upstream-ID:
dc737c620a5a8d282cc4f66e3b9b624e9abefbec
guenther@openbsd.org [Fri, 11 Sep 2015 08:50:04 +0000 (08:50 +0000)]
upstream commit
Use explicit_bzero() when zeroing before free()
from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
ok millert@ djm@
Upstream-ID:
2e3337db046c3fe70c7369ee31515ac73ec00f50
jmc@openbsd.org [Fri, 11 Sep 2015 06:55:46 +0000 (06:55 +0000)]
upstream commit
sync -Q in usage() to SYNOPSIS; since it's drastically
shorter, i've reformatted the block to sync with the man (80 cols) and saved
a line;
Upstream-ID:
86e2c65c3989a0777a6258a77e589b9f6f354abd
jmc@openbsd.org [Fri, 11 Sep 2015 06:51:39 +0000 (06:51 +0000)]
upstream commit
tweak previous;
Upstream-ID:
f29b3cfcfd9aa31fa140c393e7bd48c1c74139d6
dtucker@openbsd.org [Fri, 11 Sep 2015 05:27:02 +0000 (05:27 +0000)]
upstream commit
Update usage to match man page.
Upstream-ID:
9e85aefaecfb6aaf34c7cfd0700cd21783a35675
djm@openbsd.org [Fri, 11 Sep 2015 03:47:28 +0000 (03:47 +0000)]
upstream commit
expand %i in ControlPath to UID; bz#2449
patch from Christian Hesse w/ feedback from dtucker@
Upstream-ID:
2ba8d303e555a84e2f2165ab4b324b41e80ab925
djm@openbsd.org [Fri, 11 Sep 2015 03:42:32 +0000 (03:42 +0000)]
upstream commit
mention -Q key-plain and -Q key-cert; bz#2455 pointed out
by Jakub Jelen
Upstream-ID:
c8f1f8169332e4fa73ac96b0043e3b84e01d4896
Darren Tucker [Mon, 14 Sep 2015 06:24:21 +0000 (16:24 +1000)]
Use ssh-keygen -A when generating host keys.
Use ssh-keygen -A instead of per-keytype invocations when generating host
keys. Add tests when doing host-key-force since we can't use ssh-keygen -A
since it can't specify alternate locations. bz#2459, ok djm@
Darren Tucker [Fri, 11 Sep 2015 03:29:22 +0000 (13:29 +1000)]
Correct default value for --with-ssh1.
bz#2457, from konto-mindrot.org at walimnieto.com.
djm@openbsd.org [Fri, 11 Sep 2015 03:13:36 +0000 (03:13 +0000)]
upstream commit
more clarity on what AuthorizedKeysFile=none does; based
on diff by Thiebaud Weksteen
Upstream-ID:
78ab87f069080f0cc3bc353bb04eddd9e8ad3704
djm@openbsd.org [Wed, 9 Sep 2015 00:52:44 +0000 (00:52 +0000)]
upstream commit
openssh_RSA_verify return type is int, so don't make it
size_t within the function itself with only negative numbers or zero assigned
to it. bz#2460
Upstream-ID:
b6e794b0c7fc4f9f329509263c8668d35f83ea55
dtucker@openbsd.org [Fri, 4 Sep 2015 08:21:47 +0000 (08:21 +0000)]
upstream commit
Plug minor memory leaks when options are used more than
once. bz#2182, patch from Tiago Cunha, ok deraadt djm
Upstream-ID:
5b84d0401e27fe1614c10997010cc55933adb48e
Darren Tucker [Fri, 11 Sep 2015 03:11:02 +0000 (13:11 +1000)]
Force resolution of _res for correct detection.
bz#2259, from sconeu at yahoo.com.
Damien Miller [Thu, 10 Sep 2015 00:57:41 +0000 (10:57 +1000)]
allow getrandom syscall; from Felix von Leitner