Commit Graph

46 Commits

Author SHA1 Message Date
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Rosen Penev 5a3e520f45 openssh: Fix compilation with -Wimplicit-function
Upstream backport.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-21 12:31:31 +02:00
Peter Wagner 626a4315a9 openssh: update to 8.0p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2019-04-20 18:09:21 +02:00
Eneas U de Queiroz 06e1764afa
openssh: adjust engine support to openssl 1.1.1
Openssl 1.1.1 package in openwrt enabled more than just the devcrypto
engine, so the engine support in openssh should be enabled when general
engine support is enabled in openssl.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-04-02 16:48:08 -03:00
Peter Wagner ba72d8d139 openssh: handle multiple ports and simplify init script
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2019-03-21 19:31:29 +01:00
Peter Wagner d92d34db5a openssh: add upstream patches, including CVE-2019-6111
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2019-03-03 12:20:18 +01:00
Jan Pavlinec 4729c3fddf openssh: patch scp security issues
Fixes
CVE-2019-6109
CVE-2019-6111

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-02-10 16:22:41 +01:00
Peter Wagner d82cc22019 openssh: backport patch for CVE-2018-20685
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2019-01-15 20:34:03 +01:00
Peter Wagner 08c5f7cfab openssh: fixes issues with some openssl options
This adds a couple of patches when setting some openssl options:
* ECDSA code in openssh-compat.h and libressl-api-compat.c needs to be
  be guarded by OPENSSL_HAS_ECC; otherwise, it will not build with
  openssl compiled without ECC support.

* Fix openssl version number in openbsd-compat/openssl-compat.c which
  failed to compile --with-ssl-engine; this option is used when
  CONFIG_OPENSSL_ENGINE_CRYPTO=y

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2018-10-20 14:06:20 +02:00
Peter Wagner 2759048914 openssh: update to 7.9p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2018-10-19 18:11:54 +02:00
Eneas U de Queiroz 9f76fe1445 openssh: add openssl 1.1.0 compatibility
Five commits from upstream were applied to v. 7.8-p1:

482d23bc upstream: hold our collective noses and use the openssl-1.1.x
         API in
48f54b9d adapt -portable to OpenSSL 1.1x API
86e0a9f3 upstream: use only openssl-1.1.x API here too
a3fd8074 upstream: missed a bit of openssl-1.0.x API in this unittest
d64e7852 add compat header

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-09-30 18:59:04 +02:00
Peter Wagner eacb9464e9 openssh: update to 7.8p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2018-08-27 21:30:14 +02:00
Yousong Zhou 1e07e684a8 openssh: let opkg manage openssh symlinks of ssh, scp
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-06-25 14:09:25 +08:00
Peter Wagner 739c65e569 openssh: update to 7.7p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2018-04-08 19:13:59 +02:00
Matthias Schiffer 00fce347a5
treewide: fix incorrect *_BUILD_DEPENDS
Build depends refer to source package names, not binary package names.

In many cases, PKG_BUILD_DEPENDS simply duplicated runtime dependencies of
a source package's binary packages; as the corresponding source packages
are implicitly added as bulid dependencies, PKG_BUILD_DEPENDS can simply be
dropped in these cases. In the other cases, *_BUILD_DEPENDS is fixed to
refer to the correct source package name.

Dependency of mysql-server is adjusted from libncursesw to libncurses
(as libncursesw is a virtual package provided by libncurses), so the build
dependency on ncurses is emitted unconditionally.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-01-09 16:36:02 +01:00
Peter Wagner 09bfebc7da openssh: update to 7.6p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-10-05 19:50:30 +02:00
Rosen Penev 6cb6666c97 ssh: Add umdns entry to the init script.
This is usefull for hosts to discover the ssh server, especially
on macOS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2017-08-15 21:44:15 -07:00
Peter Wagner a8b55048c0 openssh: add ssh_host keys to openssh-server/conffiles
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-07-15 21:04:31 +02:00
Philip Prindeville 9fdba25e04 openssh: if we don't generate a dsa key we shouldn't look for it
The earlier commit ea119211b2 removed 'dsa' as one of the ssh_host_*_key
types that got generated.  Problem was that it didn't remove that key
as one of the paths that the server looks for by default.  As a
consequence, your log file might fill up with messages like:

    2017-06-01T15:43:07-06:00 openwrt sshd[31929]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key

The patch is forunately trivial.  Don't set the path for the dsa
key file in the server configuration.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-05 18:22:04 +02:00
Daniel Golle d96c092a00 Revert "The earlier commit ea119211b2 removed 'dsa' as one of the ssh_host_*_key"
The author (@pprindeville) of the original commit noted that the wrong
commit was picked, see
325b7d2cd2 (commitcomment-22387528)
"Err... looks like the wrong fix got committed. I was hoping that this
commit d902e5d would have gone in instead."

This reverts commit 325b7d2cd2.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-05 18:22:03 +02:00
Peter Wagner 325b7d2cd2 The earlier commit ea119211b2 removed 'dsa' as one of the ssh_host_*_key
types that got generated.  Problem was that it didn't remove that key
as one of the paths that the server looks for by default.  As a
consequence, your log file might fill up with messages like:

    2017-06-01T15:43:07-06:00 openwrt sshd[31929]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key

The patch is forunately trivial.  Don't set the path for the dsa
key file in the server configuration.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-06-03 01:04:27 +02:00
Peter Wagner 9be7653a3a openssh: update to 7.5p1, remove unneeded patches
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-03-21 23:30:54 +01:00
Martin Schiller 32012c6274 openssh: Fix ssl-engine support
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2017-02-27 09:05:30 +01:00
Peter Wagner 9e269e39c3 net/openssh: Offload main site
Add a few mirrors in-front of main site for offloading

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-01-11 00:58:26 +01:00
Peter Wagner 89b8be4135 openssh: update to 7.4p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-12-22 00:48:51 +01:00
Peter Wagner afb706d146 openssh: Unregister the KEXINIT handler after message has been
received. Otherwise an unauthenticated peer can repeat the KEXINIT and cause
allocation of up to 128MB -- until the connection is closed. Reported by
shilei-c at 360.cn

ec165c392c

Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-10-17 21:26:26 +02:00
Peter Wagner c67b05b269 openssh: move inbound NEWKEYS handling to kex layer; otherwise early NEWKEYS causes NULL deref
see: https://anongit.mindrot.org/openssh.git/commit/?id=28652bca29046f62c7045e933e6b931de1d16737

Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-10-03 21:38:15 +02:00
Peter Wagner 7ad9eb6703 openssh: update to 7.3p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-08-09 18:58:22 +02:00
Peter Wagner 1c729d723d openssh: update to 7.2p2
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-03-11 16:52:04 +01:00
Peter Wagner 0cc876bc65 openssh: v7.2p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-03-06 22:42:27 +01:00
Peter Wagner fab13041b3 openssh: update to 7.1p2
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-01-15 21:23:18 +01:00
Peter Wagner d199f2c038 openssh: update to 7.1p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-08-26 18:58:14 +02:00
Peter Wagner e0ac428907 openssh: update to 6.9p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-07-18 08:53:39 +02:00
Oliver Middleton 8137ce26fd openssh: strip openssh-sftp-server dependencies again
Reapply 99c6c3d830

Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
2015-03-23 16:20:37 +01:00
Stijn Tintel e996c1cc36 openssh: remove optional dependency on libssp
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2015-03-20 17:46:37 +01:00
Peter Wagner 9322b6e80b openssh: update to 6.8p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-03-19 10:35:59 +01:00
Michael Heimpold 1c6580d05d openssh: provide an avahi service file
As discussed in #543, we can announce the SFTP service via Avahi
when sftp-server is installed.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2014-12-08 23:15:25 +01:00
Ian Leonard ac7cd4c6e6 misc: correct typo in Makefiles for PKG_LICENSE_FILES
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2014-11-24 23:43:37 -08:00
Peter Wagner 30bdda47fb openssh: update to 6.7p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2014-10-19 04:45:16 +02:00
Peter Wagner 0d260899aa openssh,ntpd: move USERID to the server only as the client utils don't need a user/group
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2014-10-14 18:00:42 +02:00
John Crispin d4042ec35e generic userid: use the new USERID api
recent changes in trunk allow us to specify the userid inside the openwrt makefile.
the info is stored int he meta data of the IPK contorl file and users are generated
by the new generic postinst trigger.

Signed-off-by: John Crispin <blogic@openwrt.org>
2014-10-08 03:45:30 +02:00
Bryan Steele 9f7c18af14 Add ISC/BSD to PKG_LICENSE_* 2014-08-08 16:41:38 -04:00
Bryan Steele 5ae06b550b Update PKG_SOURCE_URL for OpenSSH
Remove broken mirrors, prefer HTTP over FTP.
2014-08-08 15:03:58 -04:00
Catalin Patulea 35e2de06b0 openssh: fix openssh-sftp-server deps when SSP_SUPPORT 2014-06-26 13:53:19 -04:00
Catalin Patulea 99c6c3d830 openssh: strip openssh-sftp-server dependencies, notably openssl
openssh-sftp-server is actually a tiny binary that has nearly no dependencies:
$ mips-openwrt-linux-objdump -x sftp-server | grep NEEDED
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.0

Stripping its DEPENDS allows building a system with SFTP support, without
pulling in OpenSSL.
2014-06-16 21:29:56 -04:00
Peter Wagner fe62d146fa openssh: import from packages
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2014-06-16 11:45:34 +02:00