]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
6 years agoupstream: Request RSA-SHA2 signatures for V_7_9 124/head anongit/V_7_9 github-selfhosted/V_7_9 github/V_7_9
djm@openbsd.org [Thu, 27 Dec 2018 23:02:11 +0000 (23:02 +0000)] 
upstream: Request RSA-SHA2 signatures for

rsa-sha2-{256|512}-cert-v01@openssh.com cert algorithms; ok markus@

OpenBSD-Commit-ID: afc6f7ca216ccd821656d1c911d2a3deed685033

6 years agofix configure test for OpenSSL version
Damien Miller [Thu, 22 Nov 2018 23:45:20 +0000 (10:45 +1100)] 
fix configure test for OpenSSL version

square brackets in case statements may be eaten by autoconf.

Report and fix from Filipp Gunbin; tweaked by naddy@

6 years agoupstream: fix bug in HostbasedAcceptedKeyTypes and
djm@openbsd.org [Fri, 16 Nov 2018 02:43:56 +0000 (02:43 +0000)] 
upstream: fix bug in HostbasedAcceptedKeyTypes and

PubkeyAcceptedKeyTypes options. If only RSA-SHA2 siganture types were
specified, then authentication would always fail for RSA keys as the monitor
checks only the base key (not the signature algorithm) type against
*AcceptedKeyTypes. bz#2746; reported by Jakub Jelen; ok dtucker

OpenBSD-Commit-ID: 117bc3dc54578dbdb515a1d3732988cb5b00461b

6 years agoRemove hardcoded service name in cygwin setup.
Darren Tucker [Sun, 11 Nov 2018 04:54:54 +0000 (15:54 +1100)] 
Remove hardcoded service name in cygwin setup.

bz#2922, patch from Christian.Lupien at USherbrooke.ca, sanity check
by vinschen at redhat.com.

6 years agoFix pasto for HAVE_EVP_CIPHER_CTX_SET_IV.
Darren Tucker [Mon, 5 Nov 2018 06:31:24 +0000 (17:31 +1100)] 
Fix pasto for HAVE_EVP_CIPHER_CTX_SET_IV.

Prevents unnecessary redefinition.  Patch from mforney at mforney.org.

6 years agoInclude openssl compatibility.
Darren Tucker [Mon, 22 Oct 2018 09:05:18 +0000 (20:05 +1100)] 
Include openssl compatibility.

Patch from rosenp at gmail.com via openssh-unix-dev.

6 years agofix compile for openssl 1.0.x w/ --with-ssl-engine
Damien Miller [Mon, 22 Oct 2018 00:22:50 +0000 (11:22 +1100)] 
fix compile for openssl 1.0.x w/ --with-ssl-engine

bz#2921, patch from cotequeiroz

6 years agoRequire OpenSSL 1.1.x series 1.1.0g or greater V_7_9_P1
Damien Miller [Wed, 17 Oct 2018 00:01:20 +0000 (11:01 +1100)] 
Require OpenSSL 1.1.x series 1.1.0g or greater

Previous versions have a bug with EVP_CipherInit() when passed a
NULL EVP_CIPHER, per https://github.com/openssl/openssl/pull/4613

ok dtucker@

6 years agounbreak compilation with --with-ssl-engine
Damien Miller [Tue, 16 Oct 2018 21:12:02 +0000 (08:12 +1100)] 
unbreak compilation with --with-ssl-engine

Missing last argument to OPENSSL_init_crypto()

6 years agoRemove gcc spectre mitigation flags.
Darren Tucker [Tue, 16 Oct 2018 03:45:57 +0000 (14:45 +1100)] 
Remove gcc spectre mitigation flags.

Current impementions of the gcc spectre mitigation flags cause
miscompilations when combined with other flags and do not provide much
protection.  Found by fweimer at redhat.com, ok djm@

6 years agoAvoid deprecated OPENSSL_config when using 1.1.x
Damien Miller [Mon, 15 Oct 2018 23:51:52 +0000 (10:51 +1100)] 
Avoid deprecated OPENSSL_config when using 1.1.x

OpenSSL 1.1.x soft-deprecated OPENSSL_config in favour of
OPENSSL_init_crypto; pointed out by Jakub Jelen

6 years agoDon't avoid our *sprintf replacements.
Darren Tucker [Fri, 12 Oct 2018 05:58:47 +0000 (16:58 +1100)] 
Don't avoid our *sprintf replacements.

Don't let systems with broken printf(3) avoid our replacements
via asprintf(3)/vasprintf(3) calling libc internally.  From djm@

6 years agoCheck if snprintf understands %zu.
Darren Tucker [Fri, 12 Oct 2018 05:43:35 +0000 (16:43 +1100)] 
Check if snprintf understands %zu.

If the platforms snprintf and friends don't understand %zu, use the
compat replacement.  Prevents segfaults on those platforms.

6 years agoremove stale link, tweak
Damien Miller [Thu, 11 Oct 2018 22:48:05 +0000 (09:48 +1100)] 
remove stale link, tweak

6 years agoupdate version numbers ahead of release
Damien Miller [Thu, 11 Oct 2018 22:47:20 +0000 (09:47 +1100)] 
update version numbers ahead of release

6 years agoupstream: don't send new-style rsa-sha2-*-cert-v01@openssh.com names to
djm@openbsd.org [Thu, 11 Oct 2018 03:48:04 +0000 (03:48 +0000)] 
upstream: don't send new-style rsa-sha2-*-cert-v01@openssh.com names to

older OpenSSH that can't handle them. spotted by Adam Eijdenberg; ok dtucker

OpenBSD-Commit-ID: 662bbc402e3d7c9b6c322806269698106a6ae631

6 years agoupdate depends
Damien Miller [Thu, 11 Oct 2018 02:08:59 +0000 (13:08 +1100)] 
update depends

6 years agosome more duplicated key algorithm lines
Damien Miller [Thu, 11 Oct 2018 02:02:11 +0000 (13:02 +1100)] 
some more duplicated key algorithm lines

From Adam Eijdenberg

6 years agofix duplicated algorithm specification lines
Damien Miller [Thu, 11 Oct 2018 00:56:36 +0000 (11:56 +1100)] 
fix duplicated algorithm specification lines

Spotted by Adam Eijdenberg

6 years agoupstream: typo in plain RSA algorithm counterpart names for
djm@openbsd.org [Thu, 11 Oct 2018 00:52:46 +0000 (00:52 +0000)] 
upstream: typo in plain RSA algorithm counterpart names for

certificates; spotted by Adam Eijdenberg; ok dtucker@

OpenBSD-Commit-ID: bfcdeb6f4fc9e7607f5096574c8f118f2e709e00

6 years agocheck pw_passwd != NULL here too
Damien Miller [Thu, 11 Oct 2018 00:29:35 +0000 (11:29 +1100)] 
check pw_passwd != NULL here too

Again, for systems with broken NIS implementations.

Prompted by coolbugcheckers AT gmail.com

6 years agocheck for NULL return from shadow_pw()
Damien Miller [Thu, 11 Oct 2018 00:03:15 +0000 (11:03 +1100)] 
check for NULL return from shadow_pw()

probably unreachable on this platform; pointed out by
coolbugcheckers AT gmail.com

6 years agoupstream: introducing openssh 7.9
deraadt@openbsd.org [Wed, 10 Oct 2018 16:43:49 +0000 (16:43 +0000)] 
upstream: introducing openssh 7.9

OpenBSD-Commit-ID: 42d526a9fe01a40dd299ac58014d3349adf40e25

6 years agosupply callback to PEM_read_bio_PrivateKey
Damien Miller [Wed, 10 Oct 2018 23:29:29 +0000 (10:29 +1100)] 
supply callback to PEM_read_bio_PrivateKey

OpenSSL 1.1.0i has changed the behaviour of their PEM APIs,
so that empty passphrases are interpreted differently. This
probabalistically breaks loading some keys, because the PEM format
is terrible and doesn't include a proper MAC.

Avoid this by providing a basic callback to avoid passing empty
passphrases to OpenSSL in cases where one is required.

Based on patch from Jakub Jelen in bz#2913; ok dtucker@

6 years agoin pick_salt() avoid dereference of NULL passwords
Damien Miller [Wed, 10 Oct 2018 03:57:00 +0000 (14:57 +1100)] 
in pick_salt() avoid dereference of NULL passwords

Apparently some NIS implementations can leave pw->pw_passwd (or the
shadow equivalent) NULL.

bz#2909; based on patch from Todd Eigenschink

6 years agoupstream: Treat all PEM_read_bio_PrivateKey() errors when a passphrase
djm@openbsd.org [Tue, 9 Oct 2018 05:42:23 +0000 (05:42 +0000)] 
upstream: Treat all PEM_read_bio_PrivateKey() errors when a passphrase

is specified as "incorrect passphrase" instead of trying to choose between
that and "invalid format".

libcrypto can return ASN1 parsing errors rather than the expected
decrypt error in certain infrequent cases when trying to decrypt/parse
PEM private keys when supplied with an invalid passphrase.

Report and repro recipe from Thomas Deutschmann in bz#2901

ok markus@

OpenBSD-Commit-ID: b1d4cd92395f9743f81c0d23aab2524109580870

6 years agoupstream: Support using service names for port numbers.
naddy@openbsd.org [Fri, 5 Oct 2018 14:26:09 +0000 (14:26 +0000)] 
upstream: Support using service names for port numbers.

* Try to resolve a port specification with getservbyname(3) if a
 numeric conversion fails.
* Make the "Port" option in ssh_config handle its argument as a
 port rather than a plain integer.

ok dtucker@ deraadt@

OpenBSD-Commit-ID: e7f03633133205ab3dfbc67f9df7475fabae660d

6 years agoupstream: when the peer sends a channel-close message, make sure we
djm@openbsd.org [Thu, 4 Oct 2018 07:47:35 +0000 (07:47 +0000)] 
upstream: when the peer sends a channel-close message, make sure we

close the local extended read fd (stderr) along with the regular read fd
(stdout). Avoids weird stuck processed in multiplexing mode.

Report and analysis by Nelson Elhage and Geoffrey Thomas in bz#2863

ok dtucker@ markus@

OpenBSD-Commit-ID: a48a2467fe938de4de69d2e7193d5fa701f12ae9

6 years agoupstream: factor out channel status formatting from
djm@openbsd.org [Thu, 4 Oct 2018 01:04:52 +0000 (01:04 +0000)] 
upstream: factor out channel status formatting from

channel_open_message() so we can use it in other debug messages

OpenBSD-Commit-ID: 9c3903ca28fcabad57f566c9d0045b41ab7d52ba

6 years agoupstream: include a little more information about the status and
djm@openbsd.org [Thu, 4 Oct 2018 00:10:11 +0000 (00:10 +0000)] 
upstream: include a little more information about the status and

disposition of channel's extended (stderr) fd; makes debugging some things a
bit easier. No behaviour change.

OpenBSD-Commit-ID: 483eb6467dc7d5dbca8eb109c453e7a43075f7ce

6 years agoupstream: explicit_bzero here to be consistent with other kex*.c;
djm@openbsd.org [Thu, 4 Oct 2018 00:04:41 +0000 (00:04 +0000)] 
upstream: explicit_bzero here to be consistent with other kex*.c;

report from coolbugcheckers AT gmail.com

OpenBSD-Commit-ID: a90f146c5b5f5b1408700395e394f70b440856cb

6 years agoupstream: Allow ssh_config IdentityAgent directive to accept
djm@openbsd.org [Wed, 3 Oct 2018 06:38:35 +0000 (06:38 +0000)] 
upstream: Allow ssh_config IdentityAgent directive to accept

environment variable names as well as explicit paths. ok dtucker@

OpenBSD-Commit-ID: 2f0996e103876c53d8c9dd51dcce9889d700767b

6 years agoupstream: mention INFO@openssh.com for sending SIGINFO
djm@openbsd.org [Tue, 2 Oct 2018 12:51:58 +0000 (12:51 +0000)] 
upstream: mention INFO@openssh.com for sending SIGINFO

OpenBSD-Commit-ID: 132471eeb0df658210afd27852fe65131b26e900

6 years agoonly support SIGINFO on systems with SIGINFO
Damien Miller [Tue, 2 Oct 2018 12:49:40 +0000 (22:49 +1000)] 
only support SIGINFO on systems with SIGINFO

6 years agoupstream: Add server support for signalling sessions via the SSH
djm@openbsd.org [Tue, 2 Oct 2018 12:40:07 +0000 (12:40 +0000)] 
upstream: Add server support for signalling sessions via the SSH

channel/ session protocol. Signalling is only supported to sesssions that are
not subsystems and were not started with a forced command.

Long requested in bz#1424

Based on a patch from markus@ and reworked by dtucker@;
ok markus@ dtucker@

OpenBSD-Commit-ID: 4bea826f575862eaac569c4bedd1056a268be1c3

6 years agoupstream: remove big ugly TODO comment from start of file. Some of
djm@openbsd.org [Wed, 26 Sep 2018 07:32:44 +0000 (07:32 +0000)] 
upstream: remove big ugly TODO comment from start of file. Some of

the mentioned tasks are obsolete and, of the remainder, most are already
captured in PROTOCOL.mux where they better belong

OpenBSD-Commit-ID: 16d9d76dee42a5bb651c9d6740f7f0ef68aeb407

6 years agoupstream: Document mux proxy mode; added by Markus in openssh-7.4
djm@openbsd.org [Wed, 26 Sep 2018 07:30:05 +0000 (07:30 +0000)] 
upstream: Document mux proxy mode; added by Markus in openssh-7.4

Also add a little bit of information about the overall packet format

OpenBSD-Commit-ID: bdb6f6ea8580ef96792e270cae7857786ad84a95

6 years agoupstream: s/process_mux_master/mux_master_process/ in mux master
djm@openbsd.org [Wed, 26 Sep 2018 01:48:57 +0000 (01:48 +0000)] 
upstream: s/process_mux_master/mux_master_process/ in mux master

function names,

Gives better symmetry with the existing mux_client_*() names and makes
it more obvious when a message comes from the master vs client (they
are interleved in ControlMaster=auto mode).

no functional change beyond prefixing a could of log messages with
__func__ where they were previously lacking.

OpenBSD-Commit-ID: b01f7c3fdf92692e1713a822a89dc499333daf75

6 years agoRemove unused variable in _ssh_compat_fflush.
Darren Tucker [Sat, 22 Sep 2018 04:41:24 +0000 (14:41 +1000)] 
Remove unused variable in _ssh_compat_fflush.

6 years agoImport updated moduli.
Darren Tucker [Thu, 20 Sep 2018 08:08:43 +0000 (18:08 +1000)] 
Import updated moduli.

6 years agoupstream: Allow ssh_config ForwardX11Timeout=0 to disable the
djm@openbsd.org [Fri, 21 Sep 2018 12:46:22 +0000 (12:46 +0000)] 
upstream: Allow ssh_config ForwardX11Timeout=0 to disable the

timeout and allow X11 connections in untrusted mode indefinitely. ok dtucker@

OpenBSD-Commit-ID: ea1ceed3f540b48e5803f933e59a03b20db10c69

6 years agoupstream: when compiled with GSSAPI support, cache supported method
djm@openbsd.org [Fri, 21 Sep 2018 12:23:17 +0000 (12:23 +0000)] 
upstream: when compiled with GSSAPI support, cache supported method

OIDs by calling ssh_gssapi_prepare_supported_oids() regardless of whether
GSSAPI authentication is enabled in the main config.

This avoids sandbox violations for configurations that enable GSSAPI
auth later, e.g.

Match user djm
GSSAPIAuthentication yes

bz#2107; ok dtucker@

OpenBSD-Commit-ID: a5dd42d87c74e27cfb712b15b0f97ab20e0afd1d

6 years agoupstream: In sshkey_in_file(), ignore keys that are considered for
djm@openbsd.org [Fri, 21 Sep 2018 12:20:12 +0000 (12:20 +0000)] 
upstream: In sshkey_in_file(), ignore keys that are considered for

being too short (i.e. SSH_ERR_KEY_LENGTH). These keys will not be considered
to be "in the file". This allows key revocation lists to contain short keys
without the entire revocation list being considered invalid.

bz#2897; ok dtucker

OpenBSD-Commit-ID: d9f3d857d07194a42ad7e62889a74dc3f9d9924b

6 years agoupstream: Treat connections with ProxyJump specified the same as ones
djm@openbsd.org [Fri, 21 Sep 2018 03:11:36 +0000 (03:11 +0000)] 
upstream: Treat connections with ProxyJump specified the same as ones

with a ProxyCommand set with regards to hostname canonicalisation (i.e. don't
try to canonicalise the hostname unless CanonicalizeHostname is set to
'always').

Patch from Sven Wegener via bz#2896

OpenBSD-Commit-ID: 527ff501cf98bf65fb4b29ed0cb847dda10f4d37

6 years agoupstream: actually make CASignatureAlgorithms available as a config
djm@openbsd.org [Thu, 20 Sep 2018 23:40:16 +0000 (23:40 +0000)] 
upstream: actually make CASignatureAlgorithms available as a config

option

OpenBSD-Commit-ID: 93fa7ff58314ed7b1ab7744090a6a91232e6ae52

6 years agoupstream: Import updated moduli.
dtucker@openbsd.org [Thu, 20 Sep 2018 08:07:03 +0000 (08:07 +0000)] 
upstream: Import updated moduli.

OpenBSD-Commit-ID: 04431e8e7872f49a2129bf080a6b73c19d576d40

6 years agoupstream: reorder CASignatureAlgorithms, and add them to the
jmc@openbsd.org [Thu, 20 Sep 2018 06:58:48 +0000 (06:58 +0000)] 
upstream: reorder CASignatureAlgorithms, and add them to the

various -o lists; ok djm

OpenBSD-Commit-ID: ecb88baecc3c54988b4d1654446ea033da359288

6 years agoupstream: fix "ssh -Q sig" to show correct signature algorithm list
djm@openbsd.org [Thu, 20 Sep 2018 03:31:49 +0000 (03:31 +0000)] 
upstream: fix "ssh -Q sig" to show correct signature algorithm list

(it was erroneously showing certificate algorithms); prompted by markus@

OpenBSD-Commit-ID: 1cdee002f2f0c21456979deeb887fc889afb154d

6 years agoupstream: add CASignatureAlgorithms option for the client, allowing
djm@openbsd.org [Thu, 20 Sep 2018 03:30:44 +0000 (03:30 +0000)] 
upstream: add CASignatureAlgorithms option for the client, allowing

it to specify which signature algorithms may be used by CAs when signing
certificates. Useful if you want to ban RSA/SHA1; ok markus@

OpenBSD-Commit-ID: 9159e5e9f67504829bf53ff222057307a6e3230f

6 years agoupstream: Add sshd_config CASignatureAlgorithms option to allow
djm@openbsd.org [Thu, 20 Sep 2018 03:28:06 +0000 (03:28 +0000)] 
upstream: Add sshd_config CASignatureAlgorithms option to allow

control over which signature algorithms a CA may use when signing
certificates. In particular, this allows a sshd to ban certificates signed
with RSA/SHA1.

ok markus@

OpenBSD-Commit-ID: b05c86ef8b52b913ed48d54a9b9c1a7714d96bac

6 years agoupstream: Make "ssh-add -q" do what it says on the tin: silence
djm@openbsd.org [Wed, 19 Sep 2018 02:03:02 +0000 (02:03 +0000)] 
upstream: Make "ssh-add -q" do what it says on the tin: silence

output from successful operations.

Based on patch from Thijs van Dijk; ok dtucker@ deraadt@

OpenBSD-Commit-ID: c4f754ecc055c10af166116ce7515104aa8522e1

6 years agoupstream: When choosing a prime from the moduli file, avoid
millert@openbsd.org [Mon, 17 Sep 2018 15:40:14 +0000 (15:40 +0000)] 
upstream: When choosing a prime from the moduli file, avoid

re-using the linenum variable for something that is not a line number to
avoid the confusion that resulted in the bug in rev. 1.64.  This also lets us
pass the actual linenum to parse_prime() so the error messages include the
correct line number.  OK markus@ some time ago.

OpenBSD-Commit-ID: 4d8e5d3e924d6e8eb70053e3defa23c151a00084

6 years agoFix openssl-1.1 fallout for --without-openssl.
Darren Tucker [Sat, 15 Sep 2018 09:44:06 +0000 (19:44 +1000)] 
Fix openssl-1.1 fallout for --without-openssl.

ok djm@

6 years agoadd futex(2) syscall to seccomp sandbox
Damien Miller [Sat, 15 Sep 2018 09:37:48 +0000 (19:37 +1000)] 
add futex(2) syscall to seccomp sandbox

Apparently needed for some glibc/openssl combinations.

Patch from Arkadiusz MiÅ›kiewicz

6 years agoreally add source for authopt_fuzz this time
Damien Miller [Sat, 15 Sep 2018 09:36:55 +0000 (19:36 +1000)] 
really add source for authopt_fuzz this time

6 years agoremove accidentally checked-in authopt_fuzz binary
Damien Miller [Sat, 15 Sep 2018 09:35:40 +0000 (19:35 +1000)] 
remove accidentally checked-in authopt_fuzz binary

6 years agoupstream: second try, deals properly with missing and private-only
djm@openbsd.org [Fri, 14 Sep 2018 05:26:27 +0000 (05:26 +0000)] 
upstream: second try, deals properly with missing and private-only

Use consistent format in debug log for keys readied, offered and
received during public key authentication.

This makes it a little easier to see what is going on, as each message
now contains (where available) the key filename, its type and fingerprint,
and whether the key is hosted in an agent or a token.

OpenBSD-Commit-ID: f1c6a8e9cfc4e108c359db77f24f9a40e1e25ea7

6 years agofuzzer harness for authorized_keys option parsing
Damien Miller [Fri, 14 Sep 2018 05:16:34 +0000 (15:16 +1000)] 
fuzzer harness for authorized_keys option parsing

6 years agoupstream: revert following; deals badly with agent keys
djm@openbsd.org [Fri, 14 Sep 2018 04:44:04 +0000 (04:44 +0000)] 
upstream: revert following; deals badly with agent keys

revision 1.285
date: 2018/09/14 04:17:12;  author: djm;  state: Exp;  lines: +47 -26;  commitid: lflGFcNb2X2HebaK;
Use consistent format in debug log for keys readied, offered and
received during public key authentication.

This makes it a little easier to see what is going on, as each message
now contains the key filename, its type and fingerprint, and whether
the key is hosted in an agent or a token.

OpenBSD-Commit-ID: e496bd004e452d4b051f33ed9ae6a54ab918f56d

6 years agoupstream: garbage-collect moribund ssh_new_private() API.
djm@openbsd.org [Fri, 14 Sep 2018 04:17:44 +0000 (04:17 +0000)] 
upstream: garbage-collect moribund ssh_new_private() API.

OpenBSD-Commit-ID: 7c05bf13b094093dfa01848a9306c82eb6e95f6c

6 years agoupstream: Use consistent format in debug log for keys readied,
djm@openbsd.org [Fri, 14 Sep 2018 04:17:12 +0000 (04:17 +0000)] 
upstream: Use consistent format in debug log for keys readied,

offered and received during public key authentication.

This makes it a little easier to see what is going on, as each message
now contains the key filename, its type and fingerprint, and whether
the key is hosted in an agent or a token.

OpenBSD-Commit-ID: 2a01d59285a8a7e01185bb0a43316084b4f06a1f

6 years agoupstream: Fix warnings caused by user_from_uid() and group_from_gid()
millert@openbsd.org [Thu, 13 Sep 2018 15:23:32 +0000 (15:23 +0000)] 
upstream: Fix warnings caused by user_from_uid() and group_from_gid()

now returning const char *.

OpenBSD-Commit-ID: b5fe571ea77cfa7b9035062829ab05eb87d7cc6f

6 years agoallow SIGUSR1 as synonym for SIGINFO
Damien Miller [Fri, 14 Sep 2018 00:31:47 +0000 (10:31 +1000)] 
allow SIGUSR1 as synonym for SIGINFO

Lets users on those unfortunate operating systems that lack SIGINFO
still be able to obtain progress information from unit tests :)

6 years agoadd compat header
Damien Miller [Thu, 13 Sep 2018 09:05:48 +0000 (19:05 +1000)] 
add compat header

6 years agoupstream: missed a bit of openssl-1.0.x API in this unittest
djm@openbsd.org [Thu, 13 Sep 2018 09:03:20 +0000 (09:03 +0000)] 
upstream: missed a bit of openssl-1.0.x API in this unittest

OpenBSD-Regress-ID: a73a54d7f7381856a3f3a2d25947bee7a9a5dbc9

6 years agoupstream: use only openssl-1.1.x API here too
djm@openbsd.org [Thu, 13 Sep 2018 05:06:51 +0000 (05:06 +0000)] 
upstream: use only openssl-1.1.x API here too

OpenBSD-Regress-ID: ae877064597c349954b1b443769723563cecbc8f

6 years agoadapt -portable to OpenSSL 1.1x API
Damien Miller [Thu, 13 Sep 2018 02:13:50 +0000 (12:13 +1000)] 
adapt -portable to OpenSSL 1.1x API

Polyfill missing API with replacement functions extracted from LibreSSL

6 years agoforgot to stage these test files in commit d70d061
Damien Miller [Thu, 13 Sep 2018 02:12:42 +0000 (12:12 +1000)] 
forgot to stage these test files in commit d70d061

6 years agoupstream: hold our collective noses and use the openssl-1.1.x API in
djm@openbsd.org [Thu, 13 Sep 2018 02:08:33 +0000 (02:08 +0000)] 
upstream: hold our collective noses and use the openssl-1.1.x API in

OpenSSH; feedback and ok tb@ jsing@ markus@

OpenBSD-Commit-ID: cacbcac87ce5da0d3ca7ef1b38a6f7fb349e4417

6 years agoupstream: Include certs with multiple RSA signature variants in
djm@openbsd.org [Wed, 12 Sep 2018 01:36:45 +0000 (01:36 +0000)] 
upstream: Include certs with multiple RSA signature variants in

test data Ensure that cert->signature_key is populated correctly

OpenBSD-Regress-ID: 56e68f70fe46cb3a193ca207385bdb301fd6603a

6 years agoupstream: test revocation by explicit hash and by fingerprint
djm@openbsd.org [Wed, 12 Sep 2018 01:23:48 +0000 (01:23 +0000)] 
upstream: test revocation by explicit hash and by fingerprint

OpenBSD-Regress-ID: 079c18a9ab9663f4af419327c759fc1e2bc78fd8

6 years agoupstream: s/sshkey_demote/sshkey_from_private/g
djm@openbsd.org [Wed, 12 Sep 2018 01:22:43 +0000 (01:22 +0000)] 
upstream: s/sshkey_demote/sshkey_from_private/g

OpenBSD-Regress-ID: 782bde7407d94a87aa8d1db7c23750e09d4443c4

6 years agodelete the correct thing; kexfuzz binary
Damien Miller [Wed, 12 Sep 2018 06:50:01 +0000 (16:50 +1000)] 
delete the correct thing; kexfuzz binary

6 years agoupstream: fix edit mistake; spotted by jmc@
djm@openbsd.org [Wed, 12 Sep 2018 06:18:59 +0000 (06:18 +0000)] 
upstream: fix edit mistake; spotted by jmc@

OpenBSD-Commit-ID: dd724e1c52c9d6084f4cd260ec7e1b2b138261c6

6 years agoupstream: add SSH_ALLOWED_CA_SIGALGS - the default list of
djm@openbsd.org [Wed, 12 Sep 2018 01:34:02 +0000 (01:34 +0000)] 
upstream: add SSH_ALLOWED_CA_SIGALGS - the default list of

signature algorithms that are allowed for CA signatures. Notably excludes
ssh-dsa.

ok markus@

OpenBSD-Commit-ID: 1628e4181dc8ab71909378eafe5d06159a22deb4

6 years agoupstream: add sshkey_check_cert_sigtype() that checks a
djm@openbsd.org [Wed, 12 Sep 2018 01:32:54 +0000 (01:32 +0000)] 
upstream: add sshkey_check_cert_sigtype() that checks a

cert->signature_type against a supplied whitelist; ok markus

OpenBSD-Commit-ID: caadb8073292ed7a9535e5adc067d11d356d9302

6 years agoupstream: add cert->signature_type field and keep it in sync with
djm@openbsd.org [Wed, 12 Sep 2018 01:31:30 +0000 (01:31 +0000)] 
upstream: add cert->signature_type field and keep it in sync with

certificate signature wrt loading and certification operations; ok markus@

OpenBSD-Commit-ID: e8b8b9f76b66707a0cd926109c4383db8f664df3

6 years agoupstream: Add "ssh -Q sig" to allow listing supported signature
djm@openbsd.org [Wed, 12 Sep 2018 01:30:10 +0000 (01:30 +0000)] 
upstream: Add "ssh -Q sig" to allow listing supported signature

algorithms ok markus@

OpenBSD-Commit-ID: 7a8c6eb6c249dc37823ba5081fce64876d10fe2b

6 years agoupstream: allow key revocation by SHA256 hash and allow ssh-keygen
djm@openbsd.org [Wed, 12 Sep 2018 01:21:34 +0000 (01:21 +0000)] 
upstream: allow key revocation by SHA256 hash and allow ssh-keygen

to create KRLs using SHA256/base64 key fingerprints; ok markus@

OpenBSD-Commit-ID: a0590fd34e7f1141f2873ab3acc57442560e6a94

6 years agoupstream: log certificate fingerprint in authentication
djm@openbsd.org [Wed, 12 Sep 2018 01:19:12 +0000 (01:19 +0000)] 
upstream: log certificate fingerprint in authentication

success/failure message (previously we logged only key ID and CA key
fingerprint).

ok markus@

OpenBSD-Commit-ID: a8ef2d172b7f1ddbcce26d6434b2de6d94f6c05d

6 years agoupstream: Add FALLTHROUGH comments where appropriate. Patch from
dtucker@openbsd.org [Fri, 7 Sep 2018 04:26:56 +0000 (04:26 +0000)] 
upstream: Add FALLTHROUGH comments where appropriate. Patch from

jjelen at redhat via bz#2687.

OpenBSD-Commit-ID: c48eb457be697a19d6d2950c6d0879f3ccc851d3

6 years agoupstream: ssh -MM requires confirmation for all operations that
djm@openbsd.org [Fri, 7 Sep 2018 01:42:54 +0000 (01:42 +0000)] 
upstream: ssh -MM requires confirmation for all operations that

change the multiplexing state, not just new sessions.

mention that confirmation is checked via ssh-askpass

OpenBSD-Commit-ID: 0f1b45551ebb9cc5c9a4fe54ad3b23ce90f1f5c2

6 years agoupstream: fix misplaced parenthesis inside if-clause. it's harmless
mestre@openbsd.org [Tue, 28 Aug 2018 12:25:53 +0000 (12:25 +0000)] 
upstream: fix misplaced parenthesis inside if-clause. it's harmless

and the only issue is showing an unknown error (since it's not defined)
during fatal(), if it ever an error occurs inside that condition.

OK deraadt@ markus@ djm@

OpenBSD-Commit-ID: acb0a8e6936bfbe590504752d01d1d251a7101d8

6 years agoupstream: fix build with DEBUG_PK enabled
mestre@openbsd.org [Tue, 28 Aug 2018 12:17:45 +0000 (12:17 +0000)] 
upstream: fix build with DEBUG_PK enabled

OK dtucker@

OpenBSD-Commit-ID: ec1568cf27726e9638a0415481c20c406e7b441c

6 years agoHandle ngroups>_SC_NGROUPS_MAX.
Darren Tucker [Fri, 7 Sep 2018 04:41:53 +0000 (14:41 +1000)] 
Handle ngroups>_SC_NGROUPS_MAX.

Based on github pull request #99 from Darren Maffat at Oracle: Solaris'
getgrouplist considers _SC_NGROUPS_MAX more of a guideline and can return
a larger number of groups.  In this case, retry getgrouplist with a
larger array and defer allocating groups_byname.  ok djm@

6 years agoInitial len for the fmt=NULL case.
Darren Tucker [Fri, 7 Sep 2018 04:06:57 +0000 (14:06 +1000)] 
Initial len for the fmt=NULL case.

Patch from jjelen at redhat via bz#2687.  (OpenSSH never calls
setproctitle with a null format so len is always initialized).

6 years agoInclude stdlib.h.
Darren Tucker [Fri, 7 Sep 2018 04:01:39 +0000 (14:01 +1000)] 
Include stdlib.h.

Patch from jjelen at redhat via bz#2687.

6 years agodocument some more regress control env variables
Damien Miller [Mon, 27 Aug 2018 03:08:01 +0000 (13:08 +1000)] 
document some more regress control env variables

Specifically SKIP_UNIT, USE_VALGRING and LTESTS. Sort the list of
environment variables.

Based on patch from Jakub Jelen

6 years agoshorten temporary SSH_REGRESS_TMP path V_7_8 288/head anongit/V_7_8 github-selfhosted/V_7_8 github/V_7_8 V_7_8_P1
Damien Miller [Thu, 23 Aug 2018 05:41:42 +0000 (15:41 +1000)] 
shorten temporary SSH_REGRESS_TMP path

Previous path was exceeding max socket length on at least one platform (OSX)

6 years agorebuild dependencies
Damien Miller [Thu, 23 Aug 2018 03:06:02 +0000 (13:06 +1000)] 
rebuild dependencies

6 years agofix path in distclean target
Damien Miller [Thu, 23 Aug 2018 03:03:32 +0000 (13:03 +1000)] 
fix path in distclean target

Patch from Jakub Jelen

6 years agoupstream: memleak introduced in r1.83; from Colin Watson
djm@openbsd.org [Thu, 23 Aug 2018 03:01:08 +0000 (03:01 +0000)] 
upstream: memleak introduced in r1.83; from Colin Watson

OpenBSD-Commit-ID: 5c019104c280cbd549a264a7217b67665e5732dc

6 years agoupstream: AIX reports the CODESET as "ISO8859-1" in the POSIX locale.
schwarze@openbsd.org [Tue, 21 Aug 2018 13:56:27 +0000 (13:56 +0000)] 
upstream: AIX reports the CODESET as "ISO8859-1" in the POSIX locale.

Treating that as a safe encoding is OK because even when other systems return
that string for real ISO8859-1, it is still safe in the sense that it is
ASCII-compatible and stateless.

Issue reported by Val dot Baranov at duke dot edu.  Additional
information provided by Michael dot Felt at felt dot demon dot nl.
Tested by Michael Felt on AIX 6.1 and by Val Baranov on AIX 7.1.
Tweak and OK djm@.

OpenBSD-Commit-ID: 36f1210e0b229817d10eb490d6038f507b8256a7

6 years ago modified: openbsd-compat/port-uw.c
Tim Rice [Tue, 21 Aug 2018 15:57:24 +0000 (08:57 -0700)] 
modified:   openbsd-compat/port-uw.c
remove obsolete and un-needed include

6 years agoMissing unistd.h for regress/mkdtemp.c
Damien Miller [Mon, 20 Aug 2018 05:57:29 +0000 (15:57 +1000)] 
Missing unistd.h for regress/mkdtemp.c

7 years agoupdate version numbers in anticipation of release
Damien Miller [Thu, 16 Aug 2018 19:45:20 +0000 (05:45 +1000)] 
update version numbers in anticipation of release

7 years agoconfigure: work around GCC shortcoming on Cygwin
Corinna Vinschen [Mon, 13 Aug 2018 15:08:51 +0000 (17:08 +0200)] 
configure: work around GCC shortcoming on Cygwin

Cygwin's latest 7.x GCC allows to specify -mfunction-return=thunk
as well as -mindirect-branch=thunk on the command line, albeit
producing invalid code, leading to an error at link stage.

The check in configure.ac only checks if the option is present,
but not if it produces valid code.

This patch fixes it by special-casing Cygwin.  Another solution
may be to change these to linker checks.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
7 years agocygwin: add missing stdarg.h include
Corinna Vinschen [Mon, 13 Aug 2018 15:05:05 +0000 (17:05 +0200)] 
cygwin: add missing stdarg.h include

Further header file standarization in Cygwin uncovered a lazy
indirect include in bsd-cygwin_util.c

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
7 years agoupstream: revert compat.[ch] section of the following change. It
djm@openbsd.org [Mon, 13 Aug 2018 02:41:05 +0000 (02:41 +0000)] 
upstream: revert compat.[ch] section of the following change. It

causes double-free under some circumstances.

--

date: 2018/07/31 03:07:24;  author: djm;  state: Exp;  lines: +33 -18;  commitid: f7g4UI8eeOXReTPh;
fix some memory leaks spotted by Coverity via Jakub Jelen in bz#2366
feedback and ok dtucker@

OpenBSD-Commit-ID: 1e77547f60fdb5e2ffe23e2e4733c54d8d2d1137

7 years agoupstream: better diagnosics on alg list assembly errors; ok
djm@openbsd.org [Sun, 12 Aug 2018 20:19:13 +0000 (20:19 +0000)] 
upstream: better diagnosics on alg list assembly errors; ok

deraadt@ markus@

OpenBSD-Commit-ID: 5a557e74b839daf13cc105924d2af06a1560faee