]>
git.ipfire.org Git - thirdparty/openssh-portable.git/log
djm@openbsd.org [Tue, 24 Mar 2015 01:11:12 +0000 (01:11 +0000)]
upstream commit
fix double-negative error message "ssh1 is not
unsupported"
djm@openbsd.org [Mon, 23 Mar 2015 06:06:38 +0000 (06:06 +0000)]
upstream commit
for ssh-keygen -A, don't try (and fail) to generate ssh
v.1 keys when compiled without SSH1 support RSA/DSA/ECDSA keys when compiled
without OpenSSL based on patch by Mike Frysinger; bz#2369
Damien Miller [Thu, 19 Mar 2015 22:11:59 +0000 (09:11 +1100)]
remove error() accidentally inserted for debugging
pointed out by Christian Hesse
Tim Rice [Tue, 17 Mar 2015 05:49:20 +0000 (22:49 -0700)]
portability fix: Solaris systems may not have a grep that understands -q
Damien Miller [Tue, 10 Mar 2015 23:35:26 +0000 (10:35 +1100)]
fix compile with clang
Damien Miller [Tue, 10 Mar 2015 23:02:39 +0000 (10:02 +1100)]
make unit tests work for !OPENSSH_HAS_ECC
djm@openbsd.org [Sat, 7 Mar 2015 04:41:48 +0000 (04:41 +0000)]
upstream commit
unbreak for w/SSH1 (default) case; ok markus@ deraadt@
Damien Miller [Fri, 6 Mar 2015 02:39:20 +0000 (18:39 -0800)]
unbreak hostkeys test for w/ SSH1 case
djm@openbsd.org [Fri, 6 Mar 2015 01:40:56 +0000 (01:40 +0000)]
upstream commit
fix sshkey_certify() return value for unsupported key types;
ok markus@ deraadt@
Damien Miller [Wed, 4 Mar 2015 23:38:03 +0000 (15:38 -0800)]
update version numbers to match version.h
djm@openbsd.org [Wed, 4 Mar 2015 23:22:35 +0000 (23:22 +0000)]
upstream commit
make these work with !SSH1; ok markus@ deraadt@
djm@openbsd.org [Wed, 4 Mar 2015 21:12:59 +0000 (21:12 +0000)]
upstream commit
make ssh-add -D work with !SSH1 agent
Damien Miller [Wed, 4 Mar 2015 08:55:48 +0000 (00:55 -0800)]
netcat needs poll.h portability goop
markus@openbsd.org [Tue, 3 Mar 2015 22:35:19 +0000 (22:35 +0000)]
upstream commit
make it possible to run tests w/o ssh1 support; ok djm@
djm@openbsd.org [Wed, 4 Mar 2015 18:53:53 +0000 (18:53 +0000)]
upstream commit
crank; ok markus, deraadt
Damien Miller [Tue, 3 Mar 2015 21:50:27 +0000 (13:50 -0800)]
more --without-ssh1 fixes
Damien Miller [Tue, 3 Mar 2015 21:48:48 +0000 (13:48 -0800)]
fix merge both that broke --without-ssh1 compile
djm@openbsd.org [Tue, 3 Mar 2015 21:21:13 +0000 (21:21 +0000)]
upstream commit
add SSH1 Makefile knob to make it easier to build without
SSH1 support; ok markus@
djm@openbsd.org [Tue, 3 Mar 2015 20:42:49 +0000 (20:42 +0000)]
upstream commit
expand __unused to full __attribute__ for better portability
Damien Miller [Tue, 3 Mar 2015 20:41:27 +0000 (07:41 +1100)]
avoid warning
Damien Miller [Tue, 3 Mar 2015 19:31:45 +0000 (06:31 +1100)]
Revert "define __unused to nothing if not already defined"
This reverts commit
1598419e38afbaa8aa5df8dd6b0af98301e2c908 .
Some system headers have objects named __unused
Damien Miller [Tue, 3 Mar 2015 18:02:45 +0000 (05:02 +1100)]
check for crypt and DES_crypt in openssl block
fixes builds on systems that use DES_crypt; based on patch
from Roumen Petrov
Damien Miller [Tue, 3 Mar 2015 17:59:13 +0000 (04:59 +1100)]
define __unused to nothing if not already defined
fixes builds on BSD/OS
djm@openbsd.org [Tue, 3 Mar 2015 17:53:40 +0000 (17:53 +0000)]
upstream commit
reorder logic for better portability; patch from Roumen
Petrov
djm@openbsd.org [Tue, 3 Mar 2015 06:48:58 +0000 (06:48 +0000)]
upstream commit
Allow "ssh -Q protocol-version" to list supported SSH
protocol versions. Useful for detecting builds without SSH v.1 support; idea
and ok markus@
millert@openbsd.org [Sun, 1 Mar 2015 15:44:40 +0000 (15:44 +0000)]
upstream commit
Make sure we only call getnameinfo() for AF_INET or AF_INET6
sockets. getpeername() of a Unix domain socket may return without error on
some systems without actually setting ss_family so getnameinfo() was getting
called with ss_family set to AF_UNSPEC. OK djm@
Damien Miller [Sat, 28 Feb 2015 16:20:11 +0000 (08:20 -0800)]
portability fixes for regress/netcat.c
Mostly avoiding "err(1, NULL)"
Damien Miller [Sat, 28 Feb 2015 16:05:27 +0000 (08:05 -0800)]
twiddle another test for portability
from Tom G. Christensen
Damien Miller [Fri, 27 Feb 2015 23:52:49 +0000 (15:52 -0800)]
twiddle test for portability
Damien Miller [Fri, 27 Feb 2015 04:33:22 +0000 (20:33 -0800)]
make regress/netcat.c fd passing (more) portable
Damien Miller [Fri, 27 Feb 2015 04:32:58 +0000 (20:32 -0800)]
create OBJ/valgrind-out before running unittests
Damien Miller [Thu, 26 Feb 2015 00:58:22 +0000 (16:58 -0800)]
valgrind support
djm@openbsd.org [Thu, 26 Feb 2015 20:45:47 +0000 (20:45 +0000)]
upstream commit
don't printf NULL key comments; reported by Tom Christensen
djm@openbsd.org [Wed, 25 Feb 2015 23:05:47 +0000 (23:05 +0000)]
upstream commit
zero cmsgbuf before use; we initialise the bits we use
but valgrind still spams warning on it
djm@openbsd.org [Wed, 25 Feb 2015 19:54:02 +0000 (19:54 +0000)]
upstream commit
fix small memory leak when UpdateHostkeys=no
Tim Rice [Wed, 25 Feb 2015 17:56:48 +0000 (09:56 -0800)]
Revert "Work around finicky USL linker so netcat will build."
This reverts commit
d1db656021d0cd8c001a6692f772f1de29b67c8b .
No longer needed with commit
678e473e2af2e4802f24dd913985864d9ead7fb3
djm@openbsd.org [Wed, 25 Feb 2015 17:29:38 +0000 (17:29 +0000)]
upstream commit
don't leak validity of user in "too many authentication
failures" disconnect message; reported by Sebastian Reitenbach
naddy@openbsd.org [Tue, 24 Feb 2015 15:24:05 +0000 (15:24 +0000)]
upstream commit
add -v (show ASCII art) to -l's synopsis; ok djm@
Darren Tucker [Wed, 25 Feb 2015 17:12:58 +0000 (04:12 +1100)]
Remove dependency on xmalloc.
Remove ssh_get_progname's dependency on xmalloc, which should reduce
link order problems. ok djm@
Darren Tucker [Wed, 25 Feb 2015 04:32:49 +0000 (15:32 +1100)]
Restrict ECDSA and ECDH tests.
ifdef out some more ECDSA and ECDH tests when built against an OpenSSL
that does not have eliptic curve functionality.
Darren Tucker [Wed, 25 Feb 2015 02:40:45 +0000 (13:40 +1100)]
Move definition of _NSIG.
_NSIG is only unsed in one file, so move it there prevent redefinition
warnings reported by Kevin Brott.
Darren Tucker [Wed, 25 Feb 2015 02:17:40 +0000 (13:17 +1100)]
Add includes.h for compatibility stuff.
Damien Miller [Wed, 25 Feb 2015 00:50:06 +0000 (16:50 -0800)]
include netdb.h to look for MAXHOSTNAMELEN; ok tim
Tim Rice [Tue, 24 Feb 2015 18:42:08 +0000 (10:42 -0800)]
Work around finicky USL linker so netcat will build.
Damien Miller [Tue, 24 Feb 2015 17:23:04 +0000 (09:23 -0800)]
include includes.h to avoid build failure on AIX
Tim Rice [Tue, 24 Feb 2015 15:56:47 +0000 (07:56 -0800)]
Original portability patch from djm@ for platforms missing err.h.
Fix name space clash on Solaris 10. Still more to do for Solaris 10
to deal with msghdr structure differences. ok djm@
Tim Rice [Tue, 24 Feb 2015 06:06:56 +0000 (22:06 -0800)]
cleaner way fix dispatch.h portion of commit
a88dd1da119052870bb2654c1a32c51971eade16
(some systems have sig_atomic_t in signal.h, some in sys/signal.h)
Sounds good to me djm@
Tim Rice [Tue, 24 Feb 2015 05:51:33 +0000 (21:51 -0800)]
portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255
Tim Rice [Tue, 24 Feb 2015 05:50:34 +0000 (21:50 -0800)]
portablity fix: s/__inline__/inline/
Darren Tucker [Tue, 24 Feb 2015 02:49:31 +0000 (13:49 +1100)]
Wrap stdint.h includes in HAVE_STDINT_H.
Darren Tucker [Tue, 24 Feb 2015 02:43:57 +0000 (13:43 +1100)]
Add AI_NUMERICSERV to fake-rfc2553.
Our getaddrinfo implementation always returns numeric values already.
Darren Tucker [Tue, 24 Feb 2015 02:39:57 +0000 (13:39 +1100)]
Include OpenSSL's objects.h before bn.h.
Prevents compile errors on some platforms (at least old GCCs and AIX's
XLC compilers).
Darren Tucker [Tue, 24 Feb 2015 01:30:59 +0000 (12:30 +1100)]
Convert two macros into functions.
Convert packet_send_debug and packet_disconnect from macros to
functions. Some older GCCs (2.7.x, 2.95.x) see to have problems with
variadic macros with only one argument so we convert these two into
functions. ok djm@
djm@openbsd.org [Mon, 23 Feb 2015 22:21:21 +0000 (22:21 +0000)]
upstream commit
further silence spurious error message even when -v is
specified (e.g. to get visual host keys); reported by naddy@
Damien Miller [Mon, 23 Feb 2015 22:04:32 +0000 (09:04 +1100)]
don't include stdint.h unless HAVE_STDINT_H set
Damien Miller [Mon, 23 Feb 2015 22:02:54 +0000 (09:02 +1100)]
nother sys/queue.h -> sys-queue.h fix
spotted by Tom Christensen
djm@openbsd.org [Mon, 23 Feb 2015 20:32:15 +0000 (20:32 +0000)]
upstream commit
fix a race condition by using a mux socket rather than an
ineffectual wait statement
Damien Miller [Mon, 23 Feb 2015 19:30:29 +0000 (06:30 +1100)]
various include fixes for portable
djm@openbsd.org [Mon, 23 Feb 2015 16:55:51 +0000 (16:55 +0000)]
upstream commit
add an XXX to remind me to improve sshkey_load_public
djm@openbsd.org [Mon, 23 Feb 2015 16:55:31 +0000 (16:55 +0000)]
upstream commit
silence a spurious error message when listing
fingerprints for known_hosts; bz#2342
djm@openbsd.org [Mon, 23 Feb 2015 16:33:25 +0000 (16:33 +0000)]
upstream commit
fix setting/clearing of TTY raw mode around
UpdateHostKeys=ask confirmation question; reported by Herb Goldman
Darren Tucker [Sun, 22 Feb 2015 18:04:21 +0000 (05:04 +1100)]
Repair for non-ECC OpenSSL.
Ifdef out the ECC parts when building with an OpenSSL that doesn't have
it.
Darren Tucker [Sun, 22 Feb 2015 16:07:24 +0000 (03:07 +1100)]
Wrap stdint.h includes in ifdefs.
Tim Rice [Sun, 22 Feb 2015 02:12:10 +0000 (18:12 -0800)]
out of tree build fix
Tim Rice [Sun, 22 Feb 2015 02:08:51 +0000 (18:08 -0800)]
mkdir kex unit test directory so testing out of tree builds works
halex@openbsd.org [Sat, 21 Feb 2015 21:46:57 +0000 (21:46 +0000)]
upstream commit
make "ssh-add -d" properly remove a corresponding
certificate, and also not whine and fail if there is none
ok djm@
Damien Miller [Sat, 21 Feb 2015 20:57:27 +0000 (07:57 +1100)]
mkdir hostkey and bitmap unit test directories
djm@openbsd.org [Fri, 20 Feb 2015 23:46:01 +0000 (23:46 +0000)]
upstream commit
sort options useable under Match case-insensitively; prodded
jmc@
djm@openbsd.org [Sat, 21 Feb 2015 20:51:02 +0000 (20:51 +0000)]
upstream commit
correct paths to configuration files being written/updated;
they live in $OBJ not cwd; some by Roumen Petrov
Darren Tucker [Sat, 21 Feb 2015 04:41:07 +0000 (15:41 +1100)]
More correct checking of HAVE_DECL_AI_NUMERICSERV.
Darren Tucker [Sat, 21 Feb 2015 04:10:33 +0000 (15:10 +1100)]
Add null declaration of AI_NUMERICINFO.
Some platforms (older FreeBSD and DragonFly versions) do have
getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero
in those cases.
djm@openbsd.org [Fri, 20 Feb 2015 22:40:32 +0000 (22:40 +0000)]
upstream commit
more options that are available under Match; bz#2353 reported
by calestyo AT scientia.net
djm@openbsd.org [Fri, 20 Feb 2015 22:17:21 +0000 (22:17 +0000)]
upstream commit
UpdateHostKeys fixes:
I accidentally changed the format of the hostkeys@openssh.com messages
last week without changing the extension name, and this has been causing
connection failures for people who are running -current. First reported
by sthen@
s/hostkeys@openssh.com/hostkeys-00@openssh.com/
Change the name of the proof message too, and reorder it a little.
Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY
available to read the response) so disable UpdateHostKeys if it is in
ask mode and ControlPersist is active (and document this)
djm@openbsd.org [Tue, 17 Feb 2015 00:14:05 +0000 (00:14 +0000)]
upstream commit
Regression: I broke logging of public key fingerprints in
1.46. Pointed out by Pontus Lundkvist
Damien Miller [Fri, 30 Jan 2015 12:10:17 +0000 (23:10 +1100)]
repair --without-openssl; broken in refactor
Damien Miller [Mon, 16 Feb 2015 23:04:55 +0000 (10:04 +1100)]
hook up hostkeys unittest to portable Makefiles
djm@openbsd.org [Mon, 16 Feb 2015 22:21:03 +0000 (22:21 +0000)]
upstream commit
enable hostkeys unit tests
djm@openbsd.org [Mon, 16 Feb 2015 22:20:50 +0000 (22:20 +0000)]
upstream commit
check string/memory compare arguments aren't NULL
djm@openbsd.org [Mon, 16 Feb 2015 22:18:34 +0000 (22:18 +0000)]
upstream commit
unit tests for hostfile.c code, just hostkeys_foreach so
far
markus@openbsd.org [Sat, 14 Feb 2015 12:43:16 +0000 (12:43 +0000)]
upstream commit
test server rekey limit
djm@openbsd.org [Mon, 16 Feb 2015 22:30:03 +0000 (22:30 +0000)]
upstream commit
partial backout of:
revision 1.441
date: 2015/01/31 20:30:05; author: djm; state: Exp; lines: +17 -10; commitid
: x8klYPZMJSrVlt3O;
Let sshd load public host keys even when private keys are missing.
Allows sshd to advertise additional keys for future key rotation.
Also log fingerprint of hostkeys loaded; ok markus@
hostkey updates now require access to the private key, so we can't
load public keys only. The improved log messages (fingerprints of keys
loaded) are kept.
djm@openbsd.org [Mon, 16 Feb 2015 22:13:32 +0000 (22:13 +0000)]
upstream commit
Revise hostkeys@openssh.com hostkey learning extension.
The client will not ask the server to prove ownership of the private
halves of any hitherto-unseen hostkeys it offers to the client.
Allow UpdateHostKeys option to take an 'ask' argument to let the
user manually review keys offered.
ok markus@
djm@openbsd.org [Mon, 16 Feb 2015 22:08:57 +0000 (22:08 +0000)]
upstream commit
Refactor hostkeys_foreach() and dependent code Deal with
IP addresses (i.e. CheckHostIP) Don't clobber known_hosts when nothing
changed ok markus@ as part of larger commit
miod@openbsd.org [Mon, 16 Feb 2015 18:26:26 +0000 (18:26 +0000)]
upstream commit
Declare ge25519_base as extern, to prevent it from
becoming a common. Gets us rid of ``lignment 4 of symbol
`crypto_sign_ed25519_ref_ge25519_base' in mod_ge25519.o is smaller than 16 in
mod_ed25519.o'' warnings at link time.
markus@openbsd.org [Fri, 13 Feb 2015 18:57:00 +0000 (18:57 +0000)]
upstream commit
make rekey_limit for sshd w/privsep work; ok djm@
dtucker@
dtucker@openbsd.org [Thu, 12 Feb 2015 20:34:19 +0000 (20:34 +0000)]
upstream commit
Prevent sshd spamming syslog with
"ssh_dispatch_run_fatal: disconnected". ok markus@
djm@openbsd.org [Wed, 11 Feb 2015 01:20:38 +0000 (01:20 +0000)]
upstream commit
Some packet error messages show the address of the peer,
but might be generated after the socket to the peer has suffered a TCP reset.
In these cases, getpeername() won't work so cache the address earlier.
spotted in the wild via deraadt@ and tedu@
jsg@openbsd.org [Mon, 9 Feb 2015 23:22:37 +0000 (23:22 +0000)]
upstream commit
fix some leaks in error paths ok markus@
millert@openbsd.org [Fri, 6 Feb 2015 23:21:59 +0000 (23:21 +0000)]
upstream commit
SIZE_MAX is standard, we should be using it in preference to
the obsolete SIZE_T_MAX. OK miod@ beck@
millert@openbsd.org [Thu, 5 Feb 2015 12:59:57 +0000 (12:59 +0000)]
upstream commit
Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
deraadt@openbsd.org [Tue, 3 Feb 2015 08:07:20 +0000 (08:07 +0000)]
upstream commit
missing ; djm and mlarkin really having great
interactions recently
halex@openbsd.org [Tue, 3 Feb 2015 00:34:14 +0000 (00:34 +0000)]
upstream commit
slightly extend the passphrase prompt if running with -c
in order to give the user a chance to notice if unintentionally running
without it
wording tweak and ok djm@
djm@openbsd.org [Mon, 2 Feb 2015 22:48:53 +0000 (22:48 +0000)]
upstream commit
handle PKCS#11 C_Login returning
CKR_USER_ALREADY_LOGGED_IN; based on patch from Yuri Samoilenko; ok markus@
djm@openbsd.org [Mon, 2 Feb 2015 07:41:40 +0000 (07:41 +0000)]
upstream commit
turn UpdateHostkeys off by default until I figure out
mlarkin@'s warning message; requested by deraadt@
deraadt@openbsd.org [Mon, 2 Feb 2015 01:57:44 +0000 (01:57 +0000)]
upstream commit
increasing encounters with difficult DNS setups in
darknets has convinced me UseDNS off by default is better ok djm
djm@openbsd.org [Sat, 31 Jan 2015 20:30:05 +0000 (20:30 +0000)]
upstream commit
Let sshd load public host keys even when private keys are
missing. Allows sshd to advertise additional keys for future key rotation.
Also log fingerprint of hostkeys loaded; ok markus@
djm@openbsd.org [Fri, 30 Jan 2015 11:43:14 +0000 (11:43 +0000)]
upstream commit
Add a ssh_config HostbasedKeyType option to control which
host public key types are tried during hostbased authentication.
This may be used to prevent too many keys being sent to the server,
and blowing past its MaxAuthTries limit.
bz#2211 based on patch by Iain Morgan; ok markus@
djm@openbsd.org [Fri, 30 Jan 2015 10:44:49 +0000 (10:44 +0000)]
upstream commit
set a timeout to prevent hangs when talking to busted
servers; ok markus@
djm@openbsd.org [Fri, 30 Jan 2015 01:11:39 +0000 (01:11 +0000)]
upstream commit
regression test for 'wildcard CA' serial/key ID revocations
djm@openbsd.org [Fri, 30 Jan 2015 01:13:33 +0000 (01:13 +0000)]
upstream commit
avoid more fatal/exit in the packet.c paths that
ssh-keyscan uses; feedback and "looks good" markus@