]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
6 years agoupstream: more missing mentions of ed25519-sk; ok djm@
naddy@openbsd.org [Mon, 18 Nov 2019 23:16:49 +0000 (23:16 +0000)] 
upstream: more missing mentions of ed25519-sk; ok djm@

OpenBSD-Commit-ID: f242e53366f61697dffd53af881bc5daf78230ff

6 years agoupstream: additional missing stdarg.h includes when built without
naddy@openbsd.org [Mon, 18 Nov 2019 16:10:05 +0000 (16:10 +0000)] 
upstream: additional missing stdarg.h includes when built without

WITH_OPENSSL; ok djm@

OpenBSD-Commit-ID: 881f9a2c4e2239849cee8bbf4faec9bab128f55b

6 years agoupstream: add the missing WITH_OPENSSL ifdefs after the ED25519-SK
naddy@openbsd.org [Mon, 18 Nov 2019 16:08:57 +0000 (16:08 +0000)] 
upstream: add the missing WITH_OPENSSL ifdefs after the ED25519-SK

addition; ok djm@

OpenBSD-Commit-ID: a9545e1c273e506cf70e328cbb9d0129b6d62474

6 years agoremove all EC algs from proposals, no just sk ones
Damien Miller [Mon, 18 Nov 2019 21:52:24 +0000 (08:52 +1100)] 
remove all EC algs from proposals, no just sk ones

ok dtucker@

6 years agofilter PUBKEY_DEFAULT_PK_ALG for ECC algorithms
Damien Miller [Mon, 18 Nov 2019 11:22:04 +0000 (22:22 +1100)] 
filter PUBKEY_DEFAULT_PK_ALG for ECC algorithms

Remove ECC algorithms from the PUBKEY_DEFAULT_PK_ALG list when
compiling without ECC support in libcrypto.

6 years agoupstream: LibreSSL change the format for openssl rsa -text output from
dtucker@openbsd.org [Mon, 18 Nov 2019 09:15:17 +0000 (09:15 +0000)] 
upstream: LibreSSL change the format for openssl rsa -text output from

"publicExponent" to "Exponent" so accept either.  with djm.

OpenBSD-Regress-ID: b7e6c4bf700029a31c98be14600d4472fe0467e6

6 years agoupstream: fix a bug that prevented serialisation of ed25519-sk keys
djm@openbsd.org [Mon, 18 Nov 2019 06:58:00 +0000 (06:58 +0000)] 
upstream: fix a bug that prevented serialisation of ed25519-sk keys

OpenBSD-Commit-ID: 066682b79333159cac04fcbe03ebd9c8dcc152a9

6 years agoupstream: Fix incorrect error message when key certification fails
djm@openbsd.org [Mon, 18 Nov 2019 06:39:36 +0000 (06:39 +0000)] 
upstream: Fix incorrect error message when key certification fails

OpenBSD-Commit-ID: 7771bd77ee73f7116df37c734c41192943a73cee

6 years agoupstream: fix bug that prevented certification of ed25519-sk keys
djm@openbsd.org [Mon, 18 Nov 2019 06:39:02 +0000 (06:39 +0000)] 
upstream: fix bug that prevented certification of ed25519-sk keys

OpenBSD-Commit-ID: 64c8cc6f5de2cdd0ee3a81c3a9dee8d862645996

6 years agoupstream: allow *-sk key types to be turned into certificates
djm@openbsd.org [Mon, 18 Nov 2019 06:24:17 +0000 (06:24 +0000)] 
upstream: allow *-sk key types to be turned into certificates

OpenBSD-Commit-ID: cd365ee343934862286d0b011aa77fa739d2a945

6 years agoupstream: mention ed25519-sk key/cert types here too; prompted by
djm@openbsd.org [Mon, 18 Nov 2019 04:55:02 +0000 (04:55 +0000)] 
upstream: mention ed25519-sk key/cert types here too; prompted by

jmc@

OpenBSD-Commit-ID: e281977e4a4f121f3470517cbd5e483eee37b818

6 years agoupstream: mention ed25519-sk in places where it is accepted;
djm@openbsd.org [Mon, 18 Nov 2019 04:50:45 +0000 (04:50 +0000)] 
upstream: mention ed25519-sk in places where it is accepted;

prompted by jmc@

OpenBSD-Commit-ID: 076d386739ebe7336c2137e583bc7a5c9538a442

6 years agoupstream: document ed25519-sk pubkey, private key and certificate
djm@openbsd.org [Mon, 18 Nov 2019 04:34:47 +0000 (04:34 +0000)] 
upstream: document ed25519-sk pubkey, private key and certificate

formats

OpenBSD-Commit-ID: 795a7c1c80315412e701bef90e31e376ea2f3c88

6 years agoupstream: correct order or ecdsa-sk private key fields
djm@openbsd.org [Mon, 18 Nov 2019 04:29:50 +0000 (04:29 +0000)] 
upstream: correct order or ecdsa-sk private key fields

OpenBSD-Commit-ID: 4d4a0c13226a79f0080ce6cbe74f73b03ed8092e

6 years agoupstream: correct description of fields in pub/private keys (was
djm@openbsd.org [Mon, 18 Nov 2019 04:16:53 +0000 (04:16 +0000)] 
upstream: correct description of fields in pub/private keys (was

missing curve name); spotted by Sebastian Kinne

OpenBSD-Commit-ID: 2a11340dc7ed16200342d384fb45ecd4fcce26e7

6 years agoTeach the GTK2/3 ssh-askpass the new prompt hints
Damien Miller [Mon, 18 Nov 2019 04:05:04 +0000 (15:05 +1100)] 
Teach the GTK2/3 ssh-askpass the new prompt hints

ssh/ssh-agent now sets a hint environment variable $SSH_ASKPASS_PROMPT
when running the askpass program. This is intended to allow the
askpass to vary its UI across the three cases it supports: asking for
a passphrase, confirming the use of a key and (recently) reminding
a user to touch their security key.

This adapts the gnome-ssh-askpass[23] to use these hints. Specifically,
for SSH_ASKPASS_PROMPT=confirm it will skip the text input box and show
only "yes"/"no" buttons. For SSH_ASKPASS_PROMPT=none (used to remind
users to tap their security key), it shows only a "close" button.

Help wanted: adapt the other askpass programs in active use, including
x11-ssh-askpass, lxqt-openssh-askpass, etc.

6 years agoMove ifdef OPENSSL_HAS_ECC.
Darren Tucker [Mon, 18 Nov 2019 03:15:26 +0000 (14:15 +1100)] 
Move ifdef OPENSSL_HAS_ECC.

Found by -Wimplicit-fallthrough: one ECC case was not inside the ifdef.
ok djm@

6 years agoEnable -Wimplicit-fallthrough if supported
Darren Tucker [Mon, 18 Nov 2019 03:14:18 +0000 (14:14 +1100)] 
Enable -Wimplicit-fallthrough if supported

Suggested by djm.

6 years agoupstream: missing break in getopt switch; spotted by Sebastian Kinne
djm@openbsd.org [Mon, 18 Nov 2019 01:59:48 +0000 (01:59 +0000)] 
upstream: missing break in getopt switch; spotted by Sebastian Kinne

OpenBSD-Commit-ID: f002dbf14dba5586e8407e90f0141148ade8e8fc

6 years agoupstream: tweak debug message
djm@openbsd.org [Sat, 16 Nov 2019 23:17:20 +0000 (23:17 +0000)] 
upstream: tweak debug message

OpenBSD-Commit-ID: 2bf336d3be0b7e3dd97920d7e7471146a281d2b9

6 years agoupstream: a little debug() in the security key interface
djm@openbsd.org [Sat, 16 Nov 2019 22:42:30 +0000 (22:42 +0000)] 
upstream: a little debug() in the security key interface

OpenBSD-Commit-ID: 4c70300609a5c8b19707207bb7ad4109e963b0e8

6 years agoupstream: always use ssh-sk-helper, even for the internal USB HID
djm@openbsd.org [Sat, 16 Nov 2019 22:36:48 +0000 (22:36 +0000)] 
upstream: always use ssh-sk-helper, even for the internal USB HID

support. This avoid the need for a wpath pledge in ssh-agent.

reported by jmc@

OpenBSD-Commit-ID: 19f799c4d020b870741d221335dbfa5e76691c23

6 years agoupstream: fix typos in sk_enroll
markus@openbsd.org [Fri, 15 Nov 2019 15:41:01 +0000 (15:41 +0000)] 
upstream: fix typos in sk_enroll

OpenBSD-Commit-ID: faa9bf779e008b3e64e2eb1344d9b7d83b3c4487

6 years agoupstream: double word;
jmc@openbsd.org [Fri, 15 Nov 2019 11:16:28 +0000 (11:16 +0000)] 
upstream: double word;

OpenBSD-Commit-ID: 43d09bafa4ea9002078cb30ca9adc3dcc0b9c2b9

6 years agoupstream: remove most uses of BN_CTX
djm@openbsd.org [Fri, 15 Nov 2019 06:00:20 +0000 (06:00 +0000)] 
upstream: remove most uses of BN_CTX

We weren't following the rules re BN_CTX_start/BN_CTX_end and the places
we were using it didn't benefit from its use anyway. ok dtucker@

OpenBSD-Commit-ID: ea9ba6c0d2e6f6adfe00b309a8f41842fe12fc7a

6 years agoAdd wrappers for other ultrix headers.
Darren Tucker [Fri, 15 Nov 2019 07:56:54 +0000 (18:56 +1100)] 
Add wrappers for other ultrix headers.

Wrappers protect against multiple inclusions for headers that don't do
it themselves.

6 years agoAdd SSIZE_MAX when we define ssize_t.
Darren Tucker [Fri, 15 Nov 2019 07:55:13 +0000 (18:55 +1100)] 
Add SSIZE_MAX when we define ssize_t.

6 years agoRemove ultrix realpath hack.
Darren Tucker [Fri, 15 Nov 2019 06:13:19 +0000 (17:13 +1100)] 
Remove ultrix realpath hack.

6 years agoupstream: unshield security key privkey before attempting signature
djm@openbsd.org [Fri, 15 Nov 2019 05:37:27 +0000 (05:37 +0000)] 
upstream: unshield security key privkey before attempting signature

in agent. spotted by dtucker@

OpenBSD-Commit-ID: fb67d451665385b8a0a55371231c50aac67b91d2

6 years agoupstream: rewrite c99-ism
deraadt@openbsd.org [Fri, 15 Nov 2019 05:26:56 +0000 (05:26 +0000)] 
upstream: rewrite c99-ism

OpenBSD-Commit-ID: d0c70cca29cfa7e6d9f7ec1d6d5dabea112499b3

6 years agoupstream: only clang understands those new -W options
deraadt@openbsd.org [Fri, 15 Nov 2019 05:25:52 +0000 (05:25 +0000)] 
upstream: only clang understands those new -W options

OpenBSD-Commit-ID: d9b910e412d139141b072a905e66714870c38ac0

6 years agoconfigure flag to built-in security key support
Damien Miller [Fri, 15 Nov 2019 05:08:00 +0000 (16:08 +1100)] 
configure flag to built-in security key support

Require --with-security-key-builtin before enabling the built-in
security key support (and consequent dependency on libfido2).

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 05:06:30 +0000 (16:06 +1100)] 
upstream commit

revision 1.48
date: 2019/02/04 16:45:40;  author: millert;  state: Exp;  lines: +16 -17;  commitid: cpNtVC7erojNyctw;
Make gl_pathc, gl_matchc and gl_offs size_t in glob_t to match POSIX.
This requires a libc major version bump.  OK deraadt@

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 05:05:07 +0000 (16:05 +1100)] 
upstream commit

revision 1.47
date: 2017/05/08 14:53:27;  author: millert;  state: Exp;  lines: +34 -21;  commitid: sYfxfyUHAfarP8sE;
Fix exponential CPU use with repeated '*' operators by changing '*'
handling to be interative instead of recursive.
Fix by Yves Orton, ported to OpenBSD glob.c by Ray Lai.  OK tb@

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 05:04:28 +0000 (16:04 +1100)] 
upstream commit

revision 1.46
date: 2015/12/28 22:08:18;  author: mmcc;  state: Exp;  lines: +5 -9;  commitid: 0uXuF2O13NH9q2e1;
Remove NULL-checks before free() and a few related dead assignments.

ok and valuable input from millert@

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 05:02:43 +0000 (16:02 +1100)] 
upstream commit

revision 1.44
date: 2015/09/14 16:09:13;  author: tedu;  state: Exp;  lines: +3 -5;  commitid: iWfSX2BIn0sLw62l;
remove null check before free. from Michael McConville
ok semarie

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 05:02:27 +0000 (16:02 +1100)] 
upstream commit

revision 1.43
date: 2015/06/13 16:57:04;  author: deraadt;  state: Exp;  lines: +4 -4;  commitid: zOUKuqWBdOPOz1SZ;
in glob() initialize the glob_t before the first failure check.
from j@pureftpd.org
ok millert stsp

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 05:01:20 +0000 (16:01 +1100)] 
upstream commit

revision 1.42
date: 2015/02/05 12:59:57;  author: millert;  state: Exp;  lines: +2 -1;  commitid: DTQbfd4poqBW8iSJ;
Include stdint.h, not limits.h to get SIZE_MAX.  OK guenther@

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 05:00:07 +0000 (16:00 +1100)] 
upstream commit

revision 1.41
date: 2014/10/08 05:35:27;  author: deraadt;  state: Exp;  lines: +3 -3;  commitid: JwTGarRLHQKDgPh2;
obvious realloc -> reallocarray conversion

6 years agoupstream: don't consult dlopen whitelist for internal security key
djm@openbsd.org [Fri, 15 Nov 2019 04:12:32 +0000 (04:12 +0000)] 
upstream: don't consult dlopen whitelist for internal security key

provider; spotted by dtucker@

OpenBSD-Commit-ID: bfe5fbd17e4ff95dd85b9212181652b54444192e

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 04:08:28 +0000 (15:08 +1100)] 
upstream commit

revision 1.40
date: 2013/09/30 12:02:34;  author: millert;  state: Exp;  lines: +14 -15;
Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible.  OK deraadt@

6 years agoupstream commit
Damien Miller [Fri, 15 Nov 2019 04:07:30 +0000 (15:07 +1100)] 
upstream commit

revision 1.39
date: 2012/01/20 07:09:42;  author: tedu;  state: Exp;  lines: +4 -4;
the glob stat limit is way too low.  bump to 2048.
while here, failed stats should count against the limit too.
ok deraadt sthen stsp

6 years agoupstream: U2F tokens may return FIDO_ERR_USER_PRESENCE_REQUIRED when
djm@openbsd.org [Fri, 15 Nov 2019 03:41:57 +0000 (03:41 +0000)] 
upstream: U2F tokens may return FIDO_ERR_USER_PRESENCE_REQUIRED when

probed to see if they own a key handle. Handle this case so the find_device()
look can work for them. Reported by Michael Forney

OpenBSD-Commit-ID: 2ccd5b30a6ddfe4dba228b7159bf168601bd9166

6 years agoAdd libfido2 to INSTALL.
Darren Tucker [Fri, 15 Nov 2019 03:01:00 +0000 (14:01 +1100)] 
Add libfido2 to INSTALL.

6 years agolibcrypto is now optional.
Darren Tucker [Fri, 15 Nov 2019 02:42:15 +0000 (13:42 +1100)] 
libcrypto is now optional.

6 years agoupstream: show the "please touch your security key" notifier when
djm@openbsd.org [Fri, 15 Nov 2019 02:38:07 +0000 (02:38 +0000)] 
upstream: show the "please touch your security key" notifier when

using the (default) build-in security key support.

OpenBSD-Commit-ID: 4707643aaa7124501d14e92d1364b20f312a6428

6 years agoupstream: close the "touch your security key" notifier on the error
djm@openbsd.org [Fri, 15 Nov 2019 02:37:24 +0000 (02:37 +0000)] 
upstream: close the "touch your security key" notifier on the error

path too

OpenBSD-Commit-ID: c7628bf80505c1aefbb1de7abc8bb5ee51826829

6 years agoupstream: correct function name in debug message
djm@openbsd.org [Fri, 15 Nov 2019 02:20:06 +0000 (02:20 +0000)] 
upstream: correct function name in debug message

OpenBSD-Commit-ID: 2482c99d2ce448f39282493050f8a01e3ffc39ab

6 years agoupstream: follow existing askpass logic for security key notifier:
djm@openbsd.org [Fri, 15 Nov 2019 00:32:40 +0000 (00:32 +0000)] 
upstream: follow existing askpass logic for security key notifier:

fall back to _PATH_SSH_ASKPASS_DEFAULT if no $SSH_ASKPASS environment
variable is set.

OpenBSD-Commit-ID: cda753726b13fb797bf7a9f7a0b3022d9ade4520

6 years agoupstream: remove debugging goop that snuck in to last commit
djm@openbsd.org [Thu, 14 Nov 2019 21:56:52 +0000 (21:56 +0000)] 
upstream: remove debugging goop that snuck in to last commit

OpenBSD-Commit-ID: 8ea4455a2d9364a0a04f9e4a2cbfa4c9fcefe77e

6 years agodon't fatal if libfido2 not found
Damien Miller [Fri, 15 Nov 2019 00:21:26 +0000 (11:21 +1100)] 
don't fatal if libfido2 not found

spotted by dtucker@

6 years agocorrect object dependency
Damien Miller [Fri, 15 Nov 2019 00:17:12 +0000 (11:17 +1100)] 
correct object dependency

6 years agoupstream: directly support U2F/FIDO2 security keys in OpenSSH by
djm@openbsd.org [Thu, 14 Nov 2019 21:27:29 +0000 (21:27 +0000)] 
upstream: directly support U2F/FIDO2 security keys in OpenSSH by

linking against the (previously external) USB HID middleware. The dlopen()
capability still exists for alternate middlewares, e.g. for Bluetooth, NFC
and test/debugging.

OpenBSD-Commit-ID: 14446cf170ac0351f0d4792ba0bca53024930069

6 years agoupstream: in order to be able to figure out the number of
markus@openbsd.org [Wed, 13 Nov 2019 22:00:21 +0000 (22:00 +0000)] 
upstream: in order to be able to figure out the number of

signatures left on a shielded key, we need to transfer the number of
signatures left from the private to the public key. ok djm@

OpenBSD-Commit-ID: 8a5d0d260aeace47d372695fdae383ce9b962574

6 years agoupstream: fix check for sig_s; noted by qsa at qualys.com
markus@openbsd.org [Wed, 13 Nov 2019 20:25:45 +0000 (20:25 +0000)] 
upstream: fix check for sig_s; noted by qsa at qualys.com

OpenBSD-Commit-ID: 34198084e4afb424a859f52c04bb2c9668a52867

6 years agoupstream: When clients get denied by MaxStartups, send a
dtucker@openbsd.org [Wed, 13 Nov 2019 11:25:11 +0000 (11:25 +0000)] 
upstream: When clients get denied by MaxStartups, send a

noification prior to the SSH2 protocol banner according to RFC4253 section
4.2.  ok djm@ deraadt@ markus@

OpenBSD-Commit-ID: e5dabcb722d54dea18eafb336d50b733af4f9c63

6 years agoupstream: fix shield/unshield for xmss keys: - in ssh-agent we need
markus@openbsd.org [Wed, 13 Nov 2019 07:53:10 +0000 (07:53 +0000)] 
upstream: fix shield/unshield for xmss keys: - in ssh-agent we need

to delay the call to shield   until we have received key specific options. -
when serializing xmss keys for shield we need to deal with   all optional
components (e.g. state might not be loaded). ok djm@

OpenBSD-Commit-ID: cc2db82524b209468eb176d6b4d6b9486422f41f

6 years agoupstream: remove size_t gl_pathc < 0 test, it is invalid. the
deraadt@openbsd.org [Wed, 13 Nov 2019 05:42:26 +0000 (05:42 +0000)] 
upstream: remove size_t gl_pathc < 0 test, it is invalid. the

return value from glob() is sufficient. discussed with djm

OpenBSD-Commit-ID: c91203322db9caaf7efaf5ae90c794a91070be3c

6 years agoupstream: stdarg.h required more broadly; ok djm
deraadt@openbsd.org [Wed, 13 Nov 2019 04:47:52 +0000 (04:47 +0000)] 
upstream: stdarg.h required more broadly; ok djm

OpenBSD-Commit-ID: b5b15674cde1b54d6dbbae8faf30d47e6e5d6513

6 years agoPut sshsk_sign call inside ifdef ENABLE_SK.
Darren Tucker [Thu, 14 Nov 2019 05:08:17 +0000 (16:08 +1100)] 
Put sshsk_sign call inside ifdef ENABLE_SK.

Fixes build against OpenSSL configured without ECC.

6 years agoRemove duplicate __NR_clock_nanosleep
Darren Tucker [Wed, 13 Nov 2019 12:27:31 +0000 (23:27 +1100)] 
Remove duplicate __NR_clock_nanosleep

6 years agoseccomp: Allow clock_nanosleep() in sandbox.
Darren Tucker [Wed, 13 Nov 2019 12:19:35 +0000 (23:19 +1100)] 
seccomp: Allow clock_nanosleep() in sandbox.

seccomp: Allow clock_nanosleep() to make OpenSSH working with latest
glibc.  Patch from Jakub Jelen <jjelen@redhat.com> via bz #3093.

6 years agoInclude stdarg.h for va_list in xmalloc.h.
Darren Tucker [Wed, 13 Nov 2019 00:56:56 +0000 (11:56 +1100)] 
Include stdarg.h for va_list in xmalloc.h.

6 years agoPut headers inside ifdef _AIX.
Darren Tucker [Wed, 13 Nov 2019 00:19:26 +0000 (11:19 +1100)] 
Put headers inside ifdef _AIX.

Prevents compile errors due to missing definitions (eg va_list) on
non-AIX platforms.

6 years agoFix comment in match_usergroup_pattern_list.
Darren Tucker [Tue, 12 Nov 2019 23:41:41 +0000 (10:41 +1100)] 
Fix comment in match_usergroup_pattern_list.

Spotted by balu.gajjala@gmail.com via bz#3092.

6 years agoupstream: allow an empty attestation certificate returned by a
djm@openbsd.org [Tue, 12 Nov 2019 22:38:19 +0000 (22:38 +0000)] 
upstream: allow an empty attestation certificate returned by a

security key enrollment - these are possible for tokens that only offer self-
attestation. This also needs support from the middleware.

ok markus@

OpenBSD-Commit-ID: 135eeeb937088ef6830a25ca0bbe678dfd2c57cc

6 years agoupstream: security keys typically need to be tapped/touched in
djm@openbsd.org [Tue, 12 Nov 2019 22:36:44 +0000 (22:36 +0000)] 
upstream: security keys typically need to be tapped/touched in

order to perform a signature operation. Notify the user when this is expected
via the TTY (if available) or $SSH_ASKPASS if we can.

ok markus@

OpenBSD-Commit-ID: 0ef90a99a85d4a2a07217a58efb4df8444818609

6 years agoupstream: pass SSH_ASKPASS_PROMPT hint to y/n key confirm too
djm@openbsd.org [Tue, 12 Nov 2019 22:35:02 +0000 (22:35 +0000)] 
upstream: pass SSH_ASKPASS_PROMPT hint to y/n key confirm too

OpenBSD-Commit-ID: 08d46712e5e5f1bad0aea68e7717b7bec1ab8959

6 years agoupstream: dd API for performing one-shot notifications via tty or
djm@openbsd.org [Tue, 12 Nov 2019 22:34:20 +0000 (22:34 +0000)] 
upstream: dd API for performing one-shot notifications via tty or

SSH_ASKPASS

OpenBSD-Commit-ID: 9484aea33aff5b62ce3642bf259546c7639f23f3

6 years agoupstream: add xvasprintf()
djm@openbsd.org [Tue, 12 Nov 2019 22:32:48 +0000 (22:32 +0000)] 
upstream: add xvasprintf()

OpenBSD-Commit-ID: e5e3671c05c121993b034db935bce1a7aa372247

6 years agoRemove leftover if statement from sync.
Darren Tucker [Tue, 12 Nov 2019 22:08:55 +0000 (09:08 +1100)] 
Remove leftover if statement from sync.

6 years agoupstream: remove extra layer for ed25519 signature; ok djm@
markus@openbsd.org [Tue, 12 Nov 2019 19:34:40 +0000 (19:34 +0000)] 
upstream: remove extra layer for ed25519 signature; ok djm@

OpenBSD-Commit-ID: 7672d9d0278b4bf656a12d3aab0c0bfe92a8ae47

6 years agoupstream: check sig_r and sig_s for ssh-sk keys; ok djm
markus@openbsd.org [Tue, 12 Nov 2019 19:34:00 +0000 (19:34 +0000)] 
upstream: check sig_r and sig_s for ssh-sk keys; ok djm

OpenBSD-Commit-ID: 1a1e6a85b5f465d447a3800f739e35c5b74e0abc

6 years agoupstream: enable ed25519 support; ok djm
markus@openbsd.org [Tue, 12 Nov 2019 19:33:08 +0000 (19:33 +0000)] 
upstream: enable ed25519 support; ok djm

OpenBSD-Commit-ID: 1a399c5b3ef15bd8efb916110cf5a9e0b554ab7e

6 years agoupstream: update sk-api to version 2 for ed25519 support; ok djm
markus@openbsd.org [Tue, 12 Nov 2019 19:32:30 +0000 (19:32 +0000)] 
upstream: update sk-api to version 2 for ed25519 support; ok djm

OpenBSD-Commit-ID: 77aa4d5b6ab17987d8a600907b49573940a0044a

6 years agoupstream: implement sshsk_ed25519_assemble(); ok djm
markus@openbsd.org [Tue, 12 Nov 2019 19:31:45 +0000 (19:31 +0000)] 
upstream: implement sshsk_ed25519_assemble(); ok djm

OpenBSD-Commit-ID: af9ec838b9bc643786310b5caefc4ca4754e68c6

6 years agoupstream: implement sshsk_ed25519_inner_sig(); ok djm
markus@openbsd.org [Tue, 12 Nov 2019 19:31:18 +0000 (19:31 +0000)] 
upstream: implement sshsk_ed25519_inner_sig(); ok djm

OpenBSD-Commit-ID: f422d0052c6d948fe0e4b04bc961f37fdffa0910

6 years agoupstream: rename sshsk_ecdsa_sign() to sshsk_sign(); ok djm
markus@openbsd.org [Tue, 12 Nov 2019 19:30:50 +0000 (19:30 +0000)] 
upstream: rename sshsk_ecdsa_sign() to sshsk_sign(); ok djm

OpenBSD-Commit-ID: 1524042e09d81e54c4470d7bfcc0194c5b46fe19

6 years agoupstream: factor out sshsk_ecdsa_inner_sig(); ok djm@
markus@openbsd.org [Tue, 12 Nov 2019 19:30:21 +0000 (19:30 +0000)] 
upstream: factor out sshsk_ecdsa_inner_sig(); ok djm@

OpenBSD-Commit-ID: 07e41997b542f670a15d7e2807143fe01efef584

6 years agoupstream: factor out sshsk_ecdsa_assemble(); ok djm@
markus@openbsd.org [Tue, 12 Nov 2019 19:29:54 +0000 (19:29 +0000)] 
upstream: factor out sshsk_ecdsa_assemble(); ok djm@

OpenBSD-Commit-ID: 2313761a3a84ccfe032874d638d3c363e0f14026

6 years agoupstream: implement ssh-ed25519-sk verification; ok djm@
markus@openbsd.org [Tue, 12 Nov 2019 19:29:24 +0000 (19:29 +0000)] 
upstream: implement ssh-ed25519-sk verification; ok djm@

OpenBSD-Commit-ID: 37906d93948a1e3d237c20e713d6ca8fbf7d13f6

6 years agoignore ssh-sk-helper
Damien Miller [Tue, 12 Nov 2019 21:48:30 +0000 (08:48 +1100)] 
ignore ssh-sk-helper

6 years agoupstream: skip demanding -fstack-protector-all on hppa. we never
deraadt@openbsd.org [Mon, 11 Nov 2019 19:53:37 +0000 (19:53 +0000)] 
upstream: skip demanding -fstack-protector-all on hppa. we never

wrote a stack protector for reverse-stack architectures, and i don't think
anyone else did either. a warning per compiled file is just annoying.

OpenBSD-Commit-ID: 14806a59353152f843eb349e618abbf6f4dd3ada

6 years agoupstream: duplicate 'x' character in getopt(3) optstring
djm@openbsd.org [Fri, 8 Nov 2019 03:54:02 +0000 (03:54 +0000)] 
upstream: duplicate 'x' character in getopt(3) optstring

OpenBSD-Commit-ID: 64c81caa0cb5798de3621eca16b7dd22e5d0d8a7

6 years agoupstream: Fill in missing man page bits for U2F security key support:
naddy@openbsd.org [Thu, 7 Nov 2019 08:38:38 +0000 (08:38 +0000)] 
upstream: Fill in missing man page bits for U2F security key support:

Mention the new key types, the ~/.ssh/id_ecdsa_sk file, ssh's
SecurityKeyProvider keyword, the SSH_SK_PROVIDER environment variable,
and ssh-keygen's new -w and -x options.

Copy the ssh-sk-helper man page from ssh-pkcs11-helper with minimal
substitutions.

ok djm@

OpenBSD-Commit-ID: ef2e8f83d0c0ce11ad9b8c28945747e5ca337ac4

6 years agoPut sftp-realpath in libssh.a
Darren Tucker [Sat, 2 Nov 2019 13:10:43 +0000 (00:10 +1100)] 
Put sftp-realpath in libssh.a

and remove it from the specific binary targets.

6 years agostatfs might be defined in sys/mount.h.
Darren Tucker [Sat, 2 Nov 2019 13:09:21 +0000 (00:09 +1100)] 
statfs might be defined in sys/mount.h.

eg on old NetBSDs.

6 years agoPut stdint.h inside ifdef HAVE_STDINT_H.
Darren Tucker [Sat, 2 Nov 2019 12:25:01 +0000 (23:25 +1100)] 
Put stdint.h inside ifdef HAVE_STDINT_H.

6 years agoRebuild .depend.
Darren Tucker [Sat, 2 Nov 2019 11:45:44 +0000 (22:45 +1100)] 
Rebuild .depend.

6 years agoDefine __BSD_VISIBLE in fnmatch.h.
Darren Tucker [Sat, 2 Nov 2019 11:42:05 +0000 (22:42 +1100)] 
Define __BSD_VISIBLE in fnmatch.h.

.. since we use symbols defined only when it is when using the compat
fnmatch.

6 years agoOnly enable U2F if OpenSSL supports ECC.
Darren Tucker [Sat, 2 Nov 2019 05:39:38 +0000 (16:39 +1100)] 
Only enable U2F if OpenSSL supports ECC.

This requires moving the U2F bits to below the OpenSSL parts so we have
the required information.  ok djm@

6 years agoupstream: fix miscellaneous text problems; ok djm@
naddy@openbsd.org [Fri, 1 Nov 2019 12:10:43 +0000 (12:10 +0000)] 
upstream: fix miscellaneous text problems; ok djm@

OpenBSD-Commit-ID: 0cbf411a14d8fa0b269b69cbb1b4fc0ca699fe9f

6 years agoAdd flags needed to build and work on Ultrix.
Darren Tucker [Fri, 1 Nov 2019 07:26:07 +0000 (18:26 +1100)] 
Add flags needed to build and work on Ultrix.

6 years agoHook up fnmatch for platforms that don't have it.
Darren Tucker [Fri, 1 Nov 2019 07:24:29 +0000 (18:24 +1100)] 
Hook up fnmatch for platforms that don't have it.

6 years agoAdd missing bracket in realpath macro.
Darren Tucker [Fri, 1 Nov 2019 07:17:42 +0000 (18:17 +1100)] 
Add missing bracket in realpath macro.

6 years agoImport fnmatch.c from OpenBSD.
Darren Tucker [Fri, 1 Nov 2019 06:32:47 +0000 (17:32 +1100)] 
Import fnmatch.c from OpenBSD.

6 years agoUse sftp_realpath if no native realpath.
Darren Tucker [Fri, 1 Nov 2019 04:22:32 +0000 (15:22 +1100)] 
Use sftp_realpath if no native realpath.

6 years agoConfigure flags for haiku from haikuports.
Darren Tucker [Fri, 1 Nov 2019 04:06:16 +0000 (15:06 +1100)] 
Configure flags for haiku from haikuports.

Should build with the default flags with ./configure

6 years agoupstream: fix a race condition in the SIGCHILD handler that could turn
djm@openbsd.org [Fri, 1 Nov 2019 03:54:33 +0000 (03:54 +0000)] 
upstream: fix a race condition in the SIGCHILD handler that could turn

in to a kill(-1); bz3084, reported by Gao Rui, ok dtucker@

OpenBSD-Commit-ID: ac2742e04a69d4c34223505b6a32f6d686e18896

6 years agoconditionalise SK sign/verify on ENABLE_SK
Damien Miller [Fri, 1 Nov 2019 03:49:25 +0000 (14:49 +1100)] 
conditionalise SK sign/verify on ENABLE_SK

Spotted by Darren and his faux-Vax