[OpenWrt-Devel] [PATCH] sdk: fix host menu config targets using ncurses

2020-04-17 Thread Eneas U de Queiroz
's default will be used, which fails in some cases, such as recent Gentoo systems. CC: Petr Štetiar Signed-off-by: Eneas U de Queiroz diff --git a/target/sdk/files/Makefile b/target/sdk/files/Makefile index 8df1904cb0..2f89ce0cf8 100644 --- a/target/sdk/files/Makefile +++ b/target/sdk/file

[OpenWrt-Devel] [PATCH] build: config: allow bool to select a module pkg

2020-04-09 Thread Eneas U de Queiroz
on a bool config. This restores the previous behavior. Signed-off-by: Eneas U de Queiroz -- This was reported to me here: https://github.com/openwrt/openwrt/commit/dcf3e63a35d05e7e5103819c0f17195bfafe9baa#commitcomment-38390450 The update to kconfig-v5.6 broke TARGET_MULTI_PROFILE because it would

[OpenWrt-Devel] [PATCH v2 4/6] build: simplify building *config targets

2020-04-07 Thread Eneas U de Queiroz
rule. Add -O2 to CFLAGS when building them as well. Signed-off-by: Eneas U de Queiroz --- include/toplevel.mk | 15 --- scripts/config/Makefile | 23 +-- 2 files changed, 13 insertions(+), 25 deletions(-) diff --git a/include/toplevel.mk b/include/toplevel.mk

[OpenWrt-Devel] [PATCH v2 3/6] build: define RTC_SUPPORT as a bool

2020-04-07 Thread Eneas U de Queiroz
it to be necessarily 'm' either, so we can safely use it as bool. Newer versions of Linux 'conf' will issue a warning when it detects such unmet dependencies, and will set it to 'n' instead of 'y', as the current version does. In all cases, 'm' is never used. Signed-off-by: Eneas U de Queiroz

[OpenWrt-Devel] [PATCH v2 6/6] build: add option to warn on recursive dependency

2020-04-07 Thread Eneas U de Queiroz
config with a different setting. Signed-off-by: Eneas U de Queiroz --- include/toplevel.mk | 2 +- scripts/config/README | 4 scripts/config/symbol.c | 5 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/toplevel.mk b/include/toplevel.mk index 2965f75c7c

[OpenWrt-Devel] [PATCH v2 2/6] busybox: quote 'source' filenames in Config.in

2020-04-07 Thread Eneas U de Queiroz
Newer versions of the kconfig program requires quoting the arguments of the 'source' directive. These are the last ones not using them. Signed-off-by: Eneas U de Queiroz --- package/utils/busybox/config/Config.in| 44 +-- .../utils/busybox/config/networking/Config.in

[OpenWrt-Devel] [PATCH v2 1/6] kernel: add @IPV6 dependency to ipv6 modules

2020-04-07 Thread Eneas U de Queiroz
. Sometimes the build system is forgiving this, but eventually, and unexpectedly, it may blow up on some other commit. Alternatively one can conditionally add IPv6 dependencies only if CONFIG_IPV6 is selected: (DEPENDS+= +IPV6:package6). Signed-off-by: Eneas U de Queiroz --- package/kernel/linux

[OpenWrt-Devel] [PATCH v2 0/6] build: update scritps/config to kconfig-v5.6

2020-04-07 Thread Eneas U de Queiroz
tab.[ch] *.lex.c files to avoid depending on flex & bison Eneas U de Queiroz (6): kernel: add @IPV6 dependency to ipv6 modules busybox: quote 'source' filenames in Config.in build: define RTC_SUPPORT as a bool build: simplify building *config targets build: scripts/config - update to k

[OpenWrt-Devel] [PATCH 6/6] build: add option to warn on recursive dependency

2020-04-06 Thread Eneas U de Queiroz
config with a different setting. Signed-off-by: Eneas U de Queiroz --- include/toplevel.mk | 2 +- scripts/config/README | 4 scripts/config/symbol.c | 5 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/toplevel.mk b/include/toplevel.mk index 2965f75c7c

[OpenWrt-Devel] [PATCH 4/6] build: simplify building *config targets

2020-04-06 Thread Eneas U de Queiroz
rule. Add -O2 to CFLAGS when building them as well. Signed-off-by: Eneas U de Queiroz --- include/toplevel.mk | 15 --- scripts/config/Makefile | 23 +-- 2 files changed, 13 insertions(+), 25 deletions(-) diff --git a/include/toplevel.mk b/include/toplevel.mk

[OpenWrt-Devel] [PATCH 2/6] busybox: quote 'source' filenames in Config.in

2020-04-06 Thread Eneas U de Queiroz
Newer versions of the kconfig program requires quoting the arguments of the 'source' directive. These are the last ones not using them. Signed-off-by: Eneas U de Queiroz --- package/utils/busybox/config/Config.in| 44 +-- .../utils/busybox/config/networking/Config.in

[OpenWrt-Devel] [PATCH 1/6] kernel: add @IPV6 dependency to ipv6 modules

2020-04-06 Thread Eneas U de Queiroz
. Sometimes the build system is forgiving this, but eventually, and unexpectedly, it may blow up on some other commit. Alternatively one can conditionally add IPv6 dependencies only if CONFIG_IPV6 is selected: (DEPENDS+= +IPV6:package6). Signed-off-by: Eneas U de Queiroz --- package/kernel/linux

[OpenWrt-Devel] [PATCH 3/6] build: define RTC_SUPPORT as a bool

2020-04-06 Thread Eneas U de Queiroz
it to be necessarily 'm' either, so we can safely use it as bool. Newer versions of Linux 'conf' will issue a warning when it detects such unmet dependencies, and will set it to 'n' instead of 'y', as the current version does. In all cases, 'm' is never used. Signed-off-by: Eneas U de Queiroz

[OpenWrt-Devel] [PATCH 0/6] build: update scritps/config to kconfig-v5.6

2020-04-06 Thread Eneas U de Queiroz
such as the need to quote 'source' filenames: busybox needed to be adapted. Also, unmet dependencies are handled a bit differently now, and RTC_SUPPORT in target/Config.in, which was defined as tristate, and depended on 'm' (meaning its value should be only 'm' or 'n'), but ended up being sel

[OpenWrt-Devel] [PATCH] openssl: bump to 1.1.1f

2020-03-31 Thread Eneas U de Queiroz
There were two changes between 1.1.1e and 1.1.1f: - a change in BN prime generation to avoid possible fingerprinting of newly generated RSA modules - the patch reversing EOF detection we had already applied. Signed-off-by: Eneas U de Queiroz --- This was tested with nginx and openssl util

[OpenWrt-Devel] [PATCH 0/1] openssl: revert EOF detection change in 1.1.1

2020-03-26 Thread Eneas U de Queiroz
to revert 22623e0. - not mentioning session resumption breakage because I can't verify it. Eneas U de Queiroz (1): openssl: revert EOF detection change in 1.1.1 package/libs/openssl/Makefile | 2 +- ...t-Detect-EOF-while-reading-in-libssl.patch | 80 +++ 2 files

[OpenWrt-Devel] [PATCH 1/1] openssl: revert EOF detection change in 1.1.1

2020-03-26 Thread Eneas U de Queiroz
openssl/openssl#11400. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 353ae453f5..ca45549800 100644 --- a/package/libs/openssl/Makefile +++ b/package/libs/openssl/Makefile @@ -11,7 +11,7 @@ PKG_NAME:=openssl PKG_BASE:=1.1.1

[OpenWrt-Devel] [RFC PATCH 0/1] openssl: fix session resumption

2020-03-24 Thread Eneas U de Queiroz
the change (don't revert), then we should probably revert this now, and take the patches out once most/all affected apps have adapted. Since this might cause trouble right away, and it was applied to 19.07, I decided to post this now, as RFC. This was tested in mvebx, WRT3200ACM, using nginx. Eneas U de

[OpenWrt-Devel] [RFC PATCH 1/1] openssl: revert EOF detection change in 1.1.1

2020-03-24 Thread Eneas U de Queiroz
-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 353ae453f5..ca45549800 100644 --- a/package/libs/openssl/Makefile +++ b/package/libs/openssl/Makefile @@ -11,7 +11,7 @@ PKG_NAME:=openssl PKG_BASE:=1.1.1 PKG_BUGFIX:=e PKG_VERSION:=$(PKG_BASE

[OpenWrt-Devel] [PATCH 0/2] openssl: update to 1.1.1e

2020-03-19 Thread Eneas U de Queiroz
less told otherwise. Eneas U de Queiroz (2): openssl: add configuration example for afalg-sync openssl: update to 1.1.1e package/libs/openssl/Makefile | 6 +-- .../150-openssl.cnf-add-engines-conf.patch| 31 - ...o-make-the-dev-crypto-engine-dynamic.patch

[OpenWrt-Devel] [PATCH 2/2] openssl: update to 1.1.1e

2020-03-19 Thread Eneas U de Queiroz
This version includes bug and security fixes, including medium-severity CVE-2019-1551, affecting RSA1024, RSA1536, DSA1024 & DH512 on x86_64. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index ca393be88f..353ae453f5 10

[OpenWrt-Devel] [PATCH 1/2] openssl: add configuration example for afalg-sync

2020-03-19 Thread Eneas U de Queiroz
This adds commented configuration help for the alternate, afalg-sync engine to /etc/ssl/openssl.cnf. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index eb267f31f0..ca393be88f 100644 --- a/package/libs/openssl/Makefile +++ b/package

[OpenWrt-Devel] [PATCH v2 3/3] build: reduce number of files passed to ipk-remove

2020-02-20 Thread Eneas U de Queiroz
[0-9], then the old package ipk will not be removed from the bin directory by make package/abc2/clean. Signed-off-by: Eneas U de Queiroz diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 351cf25394..5b0143d56d 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk

[OpenWrt-Devel] [PATCH v2 2/3] build: call ipkg-remove using xargs if #args>=512

2020-02-20 Thread Eneas U de Queiroz
that runs the command straight as usual if the number of arguments is < 512, or saves the list in a temporary file and feeds it to xargs otherwise. Signed-off-by: Eneas U de Queiroz diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index cd052698e2..351cf25394 100644 --- a/include/pack

[OpenWrt-Devel] [PATCH v2 0/3] build: Avoid 'Argument list too long' error

2020-02-20 Thread Eneas U de Queiroz
new functions using lowercase and underscores * Used '< file' instead of 'cat file |' to pass the files to xargs * Added a commit changing the wildcard pattern, reverting the use of xargs. Eneas U de Queiroz (3): build: package-ipkg: avoid calling wildcard twice build: call ipkg-remo

[OpenWrt-Devel] [PATCH v2 1/3] build: package-ipkg: avoid calling wildcard twice

2020-02-20 Thread Eneas U de Queiroz
Instead of calling $(wildcard) to check if the removal list is empty, then calling it again to actually remove the files, define a function so that the arguments are expanded only once when it gets called. Signed-off-by: Eneas U de Queiroz diff --git a/include/package-ipkg.mk b/include/package

[OpenWrt-Devel] [PATCH 2/2] build: call ipkg-remove using xargs if #args>=512

2020-02-19 Thread Eneas U de Queiroz
that runs the command straight as usual if the number of arguments is < 512, or saves the list in a temporary file and pipes it to xargs otherwise. Signed-off-by: Eneas U de Queiroz diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 5f7f2583a2..f2c31d1d3c 100644 --- a/include/pack

[OpenWrt-Devel] [PATCH 1/2] build: package-ipkg: avoid calling wildcard twice

2020-02-19 Thread Eneas U de Queiroz
Instead of calling $(wildcard) to check if the removal list is empty, then calling it again to actually remove the files, define a function so that the arguments are expanded only once when it gets called. Signed-off-by: Eneas U de Queiroz diff --git a/include/package-ipkg.mk b/include/package

[OpenWrt-Devel] [PATCH 0/2] build: Avoid 'Argument list too long' error

2020-02-19 Thread Eneas U de Queiroz
new functions and to opkg_package_files in include/feeds.mk. Eneas U de Queiroz (2): build: package-ipkg: avoid calling wildcard twice build: call ipkg-remove using xargs if #args>=512 include/package-ipkg.mk | 20 ++-- 1 file changed, 18 insertions(+), 2 del

[OpenWrt-Devel] [PATCH] kernel: avoid underscore in *6lowpan package names

2020-02-18 Thread Eneas U de Queiroz
install package kmod-bluetooth_6lowpan. Changing the wildcard pattern is not trivial, and there may be other places in the build system making this assumption about the package name format. Using a dash in place of the underscore avoids the issue. Signed-off-by: Eneas U de Queiroz diff --git

[OpenWrt-Devel] [PATCH] cryptodev-linux: remove DEFAULT redefinition

2020-01-15 Thread Eneas U de Queiroz
The 'DEFAULT:=m if ALL' line prevents the phase1 buildbots from building the package, and users from downloading it, since they use 'ALL_KMODS=y' but 'ALL' is not set. Signed-off-by: Eneas U de Queiroz -- This was reported here: https://github.com/openwrt/packages/issues/10987 This should

[OpenWrt-Devel] [PATCH] curl: rename cyassl->wolfssl

2019-12-26 Thread Eneas U de Queiroz
The old name was dropped and no longer works. Signed-off-by: Eneas U de Queiroz -- While testing this with wolfssl, I noticed the package was built without TLS support. This was run-tested with wolfssl on WRT3200ACM diff --git a/package/network/utils/curl/Makefile b/package/network/utils/curl

[OpenWrt-Devel] [PATCH] wolfssl: bump to 4.3.0-stable

2019-12-26 Thread Eneas U de Queiroz
This update fixes many bugs, and six security vulnerabilities, including CVE-2019-18840. Signed-off-by: Eneas U de Queiroz -- Compile-tested all dependents, and run-tested with wpad, uhttpd, and curl on WRT3200ACM. There has been an issue with WPA3 and wolfssl. I am not able to test it, but I

[OpenWrt-Devel] [PATCH] wolfssl: update to v4.2.0-stable

2019-11-06 Thread Eneas U de Queiroz
in openwrt) - CVE-2019-15651: 1-byte overread when decoding certificate extensions - CVE-2019-16748: 1-byte overread when checking certificate signatures - DSA attack to recover DSA private keys Signed-off-by: Eneas U de Queiroz --- This was run-tested on WRT3200ACM, using uhttpdi, uclient-fetch, curl

[OpenWrt-Devel] [PATCH] kernel: add crypto_user mod to crypto-user pkg

2019-11-06 Thread Eneas U de Queiroz
This is needed to export crypto information to netfilter, allowing the alt. afalg openssl engine to obtain information about the drivers being used. Signed-off-by: Eneas U de Queiroz --- Tested on WRT3200ACM, running openrt master. For mvebu, this increases the package size from 17,097

[OpenWrt-Devel] [PATCH ustream-ssl] wolfssl: adjust to new API in v4.2.0

2019-10-29 Thread Eneas U de Queiroz
t_method" redefined [-Werror] Only define the symbols if not previously defined. Signed-off-by: Eneas U de Queiroz -- There are two CVEs with critical(CVSS 3.1)/high(CVSS2.0) base scores that have been fixed in wolfssl 4.2.0: CVE-2019-16748 & CVE-2019-15651. Before we can update wolfssl, thi

[OpenWrt-Devel] [PATCH] openssl: Add engine configuration to openssl.cnf

2019-10-01 Thread Eneas U de Queiroz
commands. Signed-off-by: Eneas U de Queiroz --- This should be cherry-picked to 19.07. Run-tested on WRT3200ACM without engines, and with devcrypto & afalg. diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 28625bad05..eb267f31f0 100644 --- a/package/libs/ope

[OpenWrt-Devel] [PATCH] ipq40xx: fix hw-crypto detection of qce driver

2019-09-25 Thread Eneas U de Queiroz
This adds the CRYPTO_ALG_KERN_DRIVER_ONLY flag to Qualcomm crypto engine driver algorithms, so that openssl devcrypto can recognize them as hardware-accelerated. Signed-off-by: Eneas U de Queiroz diff --git a/target/linux/ipq40xx/patches-4.14/181-crypto-qce-add-CRYPTO_ALG_KERN_DRIVER_ONLY

[OpenWrt-Devel] [PATCH] ipq806x: remove unsupported hw-crypto qce driver

2019-09-25 Thread Eneas U de Queiroz
CONFIG_CRYPTO_GF128MUL was removed as well, since it is only needed by some cipher modes (LRW, GCM), none of which are selected, and it is packaged as a module. Signed-off-by: Eneas U de Queiroz -- > The upstream qce crypto driver does not support the IPQ806x series. > The ipq806x target used to host ipq40

[OpenWrt-Devel] [PATCH] kernel: fix hw-crypto detection of qce driver

2019-09-20 Thread Eneas U de Queiroz
This adds the CRYPTO_ALG_KERN_DRIVER_ONLY flag to Qualcomm crypto engine driver algorithms, so that openssl devcrypto can recognize them as hardware-accelerated. Signed-off-by: Eneas U de Queiroz -- It was reported to me at the forum: https://forum.openwrt.org/t/comparing-cpu-soc-performance

[OpenWrt-Devel] [PATCH ustream-ssl] Update example certificate & key, fix typo

2019-09-19 Thread Eneas U de Queiroz
The current crypto libraries will fail to load small RSA keys, so a new certificate was generated with a 2048-bit RSA key. Also fixed a typo in ustream-example-client.c Signed-off-by: Eneas U de Queiroz -- This is the output of 'openssl x509 -noout -text -in example.crt', with the public key

[OpenWrt-Devel] [PATCH ustream-ssl v2 1/3] Remove CyaSSL, WolfSSL < 3.10.4 support

2019-09-18 Thread Eneas U de Queiroz
This updates the CyaSSL names to wolfSSL, and removes obsolete code to support old versions of the library < v3.10.4. Some #include statements were moved around, so that wolfssl/options.h is loaded before any other wolfssl/openssl header. Signed-off-by: Eneas U de Queiroz diff --

[OpenWrt-Devel] [PATCH ustream-ssl v2 3/3] wolfssl: enable CN validation

2019-09-18 Thread Eneas U de Queiroz
will be called, and 'valid_cert' will be true if that call suceeds and we have a peer certificate, just as it happens with openssl. Only 'valid_cn' will not be set. Signed-off-by: Eneas U de Queiroz diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b3fc8c..86e1b07 100644 --- a/CMakeLists.txt +++ b

[OpenWrt-Devel] [PATCH ustream-ssl v2 2/3] ustream-io-cyassl.c: fix client-mode connections

2019-09-18 Thread Eneas U de Queiroz
to detect their presence. Otherwise, another call to ustream_set_io is done before creating the SSL session to properly set the callbacks. Signed-off-by: Eneas U de Queiroz diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b557c3..6b3fc8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7

[OpenWrt-Devel] [PATCH ustream-ssl v2 0/3] wolfssl updates

2019-09-18 Thread Eneas U de Queiroz
on. Eneas -- Eneas U de Queiroz (3): Remove CyaSSL, WolfSSL < 3.10.4 support ustream-io-cyassl.c: fix client-mode connections wolfssl: enable CN validation CMakeLists.txt | 25 +++ ustream-internal.h | 3 -- ustream-io-cyass

[OpenWrt-Devel] [PATCH lede-17.01] openssl: bump to 1.0.2t, Makefile updates

2019-09-17 Thread Eneas U de Queiroz
, and Eneas U de Queiroz added as maintainer. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 60357604b1..3f8907cf17 100644 --- a/package/libs/openssl/Makefile +++ b/package/libs/openssl/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR

[OpenWrt-Devel] [PATCH 18.06] openssl: bump to 1.0.2t, add maintainer

2019-09-17 Thread Eneas U de Queiroz
This version fixes 3 low-severity vulnerabilities: - CVE-2019-1547: ECDSA remote timing attack - CVE-2019-1549: Fork Protection - CVE-2019-1563: Padding Oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey Patches were refreshed, and Eneas U de Queiroz added as maintainer

[OpenWrt-Devel] [PATCH] openssl: bump to 1.1.1d

2019-09-17 Thread Eneas U de Queiroz
This version fixes 3 low-severity vulnerabilities: - CVE-2019-1547: ECDSA remote timing attack - CVE-2019-1549: Fork Protection - CVE-2019-1563: Padding Oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey Patches were refreshed. Signed-off-by: Eneas U de Queiroz -- Run

[OpenWrt-Devel] [PATCH] wolfssl: allow building with hw-crytpo and AES-CCM

2019-09-12 Thread Eneas U de Queiroz
Hardware acceleration was disabled when AES-CCM was selected as a workaround for a build failure. This applies a couple of upstream patches fixing this. Signed-off-by: Eneas U de Queiroz --- This is the result of this upstream issue: https://github.com/wolfSSL/wolfssl/issues/2392 It was tested

[OpenWrt-Devel] [PATCH ustream-ssl 2/2] ustream-openssl.c: do CN validation with wolfssl

2019-09-12 Thread Eneas U de Queiroz
used, which should be good enough. Nonetheless, the call is being checked in CMakeLists.txt, just in case wolfssl build options change. Without CN validation, uclient-fetch will fail to run unless the --no-check-certificate option is used. Signed-off-by: Eneas U de Queiroz --- This was run-tested

[OpenWrt-Devel] [PATCH ustream-ssl 1/2] ustream-io-cyassl.c: fix client-mode connections

2019-09-12 Thread Eneas U de Queiroz
backward compatibility. Signed-off-by: Eneas U de Queiroz --- This was tested on a WRT3200ACM running openwrt master, using uclient-fetch and uhttpd. I've also tested on x86_64 (not on openwrt, though) for compatibility with previous versions of wolfssl, so it _should_ be safe to use this for 18.06

[OpenWrt-Devel] [ustream-ssl PATCH 2/2] Revise supported ciphersuites

2019-08-05 Thread Eneas U de Queiroz
and DHE-GCM were moved ahead of ECDHE-CBC. Signed-off-by: Eneas U de Queiroz --- If you use the intermediate compatibility list, you lose compatibility with Safari on iOS<=8 and OS X<=10.10. Windows XP will not work either, but since it is not compatible with EC keys, it does not change w

[OpenWrt-Devel] [ustream-ssl PATCH 1/2] wolfssl, openssl: use TLS 1.3, set ciphersuites

2019-08-05 Thread Eneas U de Queiroz
-by: Eneas U de Queiroz diff --git a/ustream-openssl.c b/ustream-openssl.c index 7c72ce1..3810d6a 100644 --- a/ustream-openssl.c +++ b/ustream-openssl.c @@ -33,6 +33,21 @@ * aes128, aes256, 3DES(client only) */ +#ifdef WOLFSSL_SSL_H +# define top_ciphers

[OpenWrt-Devel] [PATCH 3/3] uhttpd: add support to generate EC keys

2019-08-05 Thread Eneas U de Queiroz
This adds the key_type and ec_curve options to enable the generation of EC keys during initialization, using openssl or the new options added to px5g. Signed-off-by: Eneas U de Queiroz diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile index

[OpenWrt-Devel] [PATCH 2/3] px5g: support EC keys

2019-08-05 Thread Eneas U de Queiroz
). Signed-off-by: Eneas U de Queiroz diff --git a/package/utils/px5g/Makefile b/package/utils/px5g/Makefile index 7b5748425d..cfd1bfc80e 100644 --- a/package/utils/px5g/Makefile +++ b/package/utils/px5g/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=px5g -PKG_RELEASE:=8

[OpenWrt-Devel] [PATCH 0/3] support EC keys in px5g/uhttpd

2019-08-05 Thread Eneas U de Queiroz
equivalent of 3072-bit RSA key, and is generated much faster than even a 2048-bit RSA key. uhttpd currently generates a 2048-bit RSA key by default, and that has not been changed. Eneas U de Queiroz (3): openssl: always build with EC support px5g: support EC keys uhttpd: add support

[OpenWrt-Devel] [PATCH 1/3] openssl: always build with EC support

2019-08-05 Thread Eneas U de Queiroz
Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Config.in b/package/libs/openssl/Config.in index 63493829ba..d1281ec6fa 100644 --- a/package/libs/openssl/Config.in +++ b/package/libs/openssl/Config.in @@ -76,7 +76,6 @@ config OPENSSL_WITH_TLS13 bool default y

[OpenWrt-Devel] [RFC 18.06-alt PATCH 1/1] wolfssl: fixes for CVE-2018-16870 & CVE-2019-13628

2019-08-05 Thread Eneas U de Queiroz
. The leak is considered to be difficult to exploit but it could potentially be used maliciously to perform a lattice based timing attack. Backported from 4.1.0. Signed-off-by: Eneas U de Queiroz --- This is an alternative to updating 18.06 to 4.1.0, just backporting the patches. This has been

[OpenWrt-Devel] [RFC 18.06 PATCH 1/3] wolfssl: bump to 4.1.0-stable

2019-08-05 Thread Eneas U de Queiroz
. * Add AF_ALG hardware crypto support, which due to a bug, only works when CCM support is turned off. * Reorganized option conditionals in Makefile. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/wolfssl/Config.in b/package/libs/wolfssl/Config.in index 50b0bb9cdf..32b0f74089

[OpenWrt-Devel] [RFC 18.06 PATCH 2/3] ustream-ssl: bump wolfssl variant

2019-08-05 Thread Eneas U de Queiroz
wolfssl changed ABI version. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/ustream-ssl/Makefile b/package/libs/ustream-ssl/Makefile index 2ea5bf0bd5..c0fd281866 100644 --- a/package/libs/ustream-ssl/Makefile +++ b/package/libs/ustream-ssl/Makefile @@ -3,6 +3,15 @@ include

[OpenWrt-Devel] [RFC 18.06 PATCH 3/3] hostapd: bump wolfssl variants, adjust options

2019-08-05 Thread Eneas U de Queiroz
wolfssl changed ABI version, so this forces an update to hostapd. Some build options selected by hostapd are always built now, so they were removed. Signed-off-by: Eneas U de Queiroz diff --git a/package/network/services/hostapd/Config.in b/package/network/services/hostapd/Config.in index

[OpenWrt-Devel] [19.07 PATCH] wolfssl: bump to 4.1.0-stable

2019-08-05 Thread Eneas U de Queiroz
. * Add hardware crypto support, which due to a bug, only works when CCM support is turned off. * Reorganized option conditionals in Makefile. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/wolfssl/Config.in b/package/libs/wolfssl/Config.in index 4aa163b361..a729f73a1d 100644

[OpenWrt-Devel] [PATCH 0/1] wolfssl: bump to 4.1.0-stable

2019-08-05 Thread Eneas U de Queiroz
no issues with them. ustream-ssl actually defines HAVE_SNI, and I have done extensive runtime tests without any issues. 900-remove-broken-autoconf-macros.patch: this was fixed upstream, and the jobserver was disabled by ./configure --disable-jobserver. Eneas U de Queiroz (1): wolfssl: bump to 4.

[OpenWrt-Devel] [PATCH 1/1] wolfssl: bump to 4.1.0-stable

2019-08-05 Thread Eneas U de Queiroz
operations. The leak is considered to be difficult to exploit but it could potentially be used maliciously to perform a lattice based timing attack. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/wolfssl/Config.in b/package/libs/wolfssl/Config.in index 875ff5e6a3..a729f73a1d 100644

[OpenWrt-Devel] [PATCH 2/2] target/toolchain/files/wrapper.sh: simplify 'case'

2019-07-15 Thread Eneas U de Queiroz
Removed an eglibc remnant, and while at it, grouped all of the TOOLCHAIN_PLATFORMs using the same FLAGS together. Signed-off-by: Eneas U de Queiroz diff --git a/target/toolchain/files/wrapper.sh b/target/toolchain/files/wrapper.sh index 2b760840d8..4452128382 100755 --- a/target/toolchain

[OpenWrt-Devel] [PATCH 1/2] libs/toolchain: remove eglibc remnant file

2019-07-15 Thread Eneas U de Queiroz
This removes package/libs/toolchain/eglibc-files/etc/nsswitch.conf. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/toolchain/eglibc-files/etc/nsswitch.conf b/package/libs/toolchain/eglibc-files/etc/nsswitch.conf deleted file mode 100644 index 981c425da6..00 --- a/package

[OpenWrt-Devel] [PATCH 0/2] Remove eglibc remnants

2019-07-15 Thread Eneas U de Queiroz
I've found some remnants from eglibc, removed by 64da662 in Feb/2016. While at it, I stumbled upon a case statement with redundant commands, so I've simplified it as well. Eneas U de Queiroz (2): libs/toolchain: remove eglibc remnant file target/toolchain/files/wrapper.sh: simplify 'case

[OpenWrt-Devel] [PATCH] wolfssl: fix PKG_HASH

2019-07-08 Thread Eneas U de Queiroz
Commit 3167a57 missed it. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/wolfssl/Makefile b/package/libs/wolfssl/Makefile index 7aaa562539..264be02496 100644 --- a/package/libs/wolfssl/Makefile +++ b/package/libs/wolfssl/Makefile @@ -13,7 +13,7 @@ PKG_RELEASE:=1 PKG_SOURCE

[OpenWrt-Devel] [PATCH v2 2/3] wolfssl: update to 4.0.0-stable

2019-07-01 Thread Eneas U de Queiroz
building options for TLS 1.0, and TLS 1.3. Add hardware crypto support, which due to a bug, only works when CCM support is turned off. Reorganized option conditionals in Makefile. Add Eneas U de Queiroz as maintainer. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/wolfssl/Config.in b

[OpenWrt-Devel] [PATCH v2 3/3] hostapd: adjust removed wolfssl options

2019-07-01 Thread Eneas U de Queiroz
This edjusts the selection of recently removed wolfssl options which have always been built into the library even in their abscence. Also remove the selection of libwolfssl itself, allowing the library to be built as a module. Signed-off-by: Eneas U de Queiroz diff --git a/package/network

[OpenWrt-Devel] [PATCH v2 0/3] wolfssl update

2019-07-01 Thread Eneas U de Queiroz
. Nonetheless, uhttpd connects without a problem, and I can confirm /dev/crypto or AF_ALG sockets open. The package currently lacks a maintainer, so I've added myself. -- Changelog: v1->v2: * Increased FP_MAX_BITS to allow 4096-bit RSA keys. * Update master to 4.0.0 Eneas U de Queiroz (3): wolf

[OpenWrt-Devel] [PATCH v2 1/3] wolfssl: update to 3.15.7, fix Makefile

2019-07-01 Thread Eneas U de Queiroz
This includes a fix for a medium-level potential cache attack with a variant of Bleichenbacher’s attack. Patches were refreshed. Increased FP_MAX_BITS to allow 4096-bit RSA keys. Fixed poly1305 build option, and some Makefile updates. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs

[OpenWrt-Devel] [PATCH 1/3] wolfssl: update to 3.15.7, fix Makefile

2019-06-25 Thread Eneas U de Queiroz
This includes a fix for a medium-level potential cache attack with a variant of Bleichenbacher’s attack. Patches were refreshed. Fixed poly1305 build option, and made some Makefile updates. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/wolfssl/Config.in b/package/libs/wolfssl

[OpenWrt-Devel] [PATCH] nghttp2: deduplicate files in staging_dir

2019-06-21 Thread Eneas U de Queiroz via openwrt-devel
cate files in libnghttp2' missed duplicates in staging_dir by Build/InstallDev. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/nghttp2/Makefile b/package/libs/nghttp2/Makefile index b96ebd8acb..2f0b4bcabc 100644 --- a/package/libs/nghttp2/Makefile +++ b/package/libs/nghttp2/Makefile @@ -

[OpenWrt-Devel] [PATCH v2] [18.06] openssl: update to 1.0.2s

2019-05-31 Thread Eneas U de Queiroz via openwrt-devel
is version: - Change default RSA, DSA and DH size to 2048 bit - Reject invalid EC point coordinates This avoids CVE-2019-9498 and CVE-2019-9499 in hostapd Signed-off-by: Eneas U de Queiroz --- Notes: Run-tested on mvebu/arm/WRT3200ACM & brcm47xx/mipsel/WRT610N, using openssl-util

[OpenWrt-Devel] [PATCH] [18.06] openssl: update to 1.0.2s

2019-05-31 Thread Eneas U de Queiroz via openwrt-devel
is version: - Change default RSA, DSA and DH size to 2048 bit - Reject invalid EC point coordinates This avoids CVE-2019-9498 and CVE-2019-9499 in hostapd Signed-off-by: Eneas U de Queiroz --- Notes: Run-tested on mvebu/arm/WRT3200ACM & brcm47xx/mipsel/WRT610N, using openssl-util diff -

[OpenWrt-Devel] [PATCH] openssl: update to version 1.1.1c

2019-05-28 Thread Eneas U de Queiroz via openwrt-devel
is version: - Prevent over long nonces in ChaCha20-Poly1305 (CVE-2019-1543) - Fix OPENSSL_config bug (patch removed) - Change the default RSA, DSA and DH size to 2048 bit instead of 1024. - Enable SHA3 pre-hashing for ECDSA and DSA Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/

[OpenWrt-Devel] [PATCH] openssl: build kmods only if engines are selected

2019-04-25 Thread Eneas U de Queiroz via openwrt-devel
onditional to the individual package's for the kmods in DEPENDS. This avoids the need to compile the kernel modules when the crypto engine packages are not selected. The final binares are not affected by this. Signed-off-by: Eneas U de Queiroz --- This trick takes, for example, $(curdir)/kernel/cryptodev-lin

[OpenWrt-Devel] [PATCH 1/1] build: add support to && in DEPENDS

2019-04-24 Thread Eneas U de Queiroz via openwrt-devel
&& operand in DEPENDS. Also, fixes generation of || dependencies by scripts/package-metadata.pl. The precedence order from higher to lower is && then ||. Use of parentheses to change the order is not supported. As before, they are silently ignored. Use them for readability only.

[OpenWrt-Devel] [PATCH 0/1] build: add support to && in DEPENDS

2019-04-24 Thread Eneas U de Queiroz via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- TLDR: this avoids recursive

[OpenWrt-Devel] [PATCH] openssl: add Eneas U de Queiroz as maintainer

2019-04-22 Thread Eneas U de Queiroz via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Signed-off-by: Eneas U

[OpenWrt-Devel] [PATCH] openssl: fix OPENSSL_config bug affecting wget

2019-04-22 Thread Eneas U de Queiroz via openwrt-devel
ream patch that fixes a OPENSSL_config() bug that causes SSL initialization to fail when the openssl.cnf file is not found. The config file is not installed by default. Signed-off-by: Eneas U de Queiroz --- The config file is not installed by default as it is usually not needed. Without the patch,

[OpenWrt-Devel] [PATCH v2] openssl: change defaults: ENGINE:on, NPN:off, misc

2019-04-16 Thread Eneas U de Queiroz via openwrt-devel
_CRYPTO symbol that is no longer needed. Signed-off-by: Eneas U de Queiroz --- ChangeLog: v2: increase PKG_RELEASE diff --git a/package/libs/openssl/Config.in b/package/libs/openssl/Config.in index ecb9eea389..49f136e845 100644 --- a/package/libs/openssl/Config.in +++ b/package/libs/ope

[OpenWrt-Devel] [PATCH] openssl: change defaults: ENGINE:on, NPN:off, misc

2019-04-16 Thread Eneas U de Queiroz via openwrt-devel
_CRYPTO symbol that is no longer needed. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Config.in b/package/libs/openssl/Config.in index ecb9eea389..49f136e845 100644 --- a/package/libs/openssl/Config.in +++ b/package/libs/openssl/Config.in @@ -96,7 +96,6 @@ config OPE

[OpenWrt-Devel] [PATCH] download.mk, image.mk: add --mode=a-s option to tar

2019-03-28 Thread Eneas U de Queiroz via openwrt-devel
p the sgid bit when running from a sgid-set directory, resulting in a different file being generated. Signed-off-by: Eneas U de Queiroz --- Notes: This fixes an issue exposed in https://github.com/openwrt/packages/pull/8513 Tested it by reproducing the wrong tarball with master

[OpenWrt-Devel] [PATCH v2] openssl: disable digests by default, misc fixes

2019-03-12 Thread Eneas U de Queiroz via openwrt-devel
he engines. Revert the removal of the OPENSSL_ENGINE_CRYPTO symbol, currently used by openssh. There is an open PR to update openssh; when merged, this symbol can be safely removed. Signed-off-by: Eneas U de Queiroz --- Notes: ChangeLog: v2: Reverted the removal of OPENSSL_ENG

[OpenWrt-Devel] [PATCH] openssl: disable digests by default, misc fixes

2019-03-11 Thread Eneas U de Queiroz via openwrt-devel
he engines. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Config.in b/package/libs/openssl/Config.in index 235f38e787..72ff64634f 100644 --- a/package/libs/openssl/Config.in +++ b/package/libs/openssl/Config.in @@ -269,7 +269,7 @@ config OPENSSL_ENGINE_BUILTIN_AFALG

[OpenWrt-Devel] [PATCH] openssl: revert disallowing parallel build

2019-03-11 Thread Eneas U de Queiroz via openwrt-devel
wholesale changes to its building system. Apparently, parallel builds are working now. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index a9dd16f3e7..ef840e28ad 100644 --- a/package/libs/openssl/Makefile +++ b/package/libs/openss

[OpenWrt-Devel] openssl devcrypto changes

2019-03-11 Thread Eneas U de Queiroz via openwrt-devel
to measure performance, but I feel it is useful anyway. Eneas U de Queiroz (2): openssl: revert disallowing parallel build openssl: disable digests by default, misc fixes package/libs/openssl/Config.in| 5 ++- package/libs/openssl/Makefile | 7 +++- ...default-

[OpenWrt-Devel] [PATCH v4] openssl: backport devcrypto changes from master

2019-02-27 Thread Eneas U de Queiroz via openwrt-devel
supported by the engine and the system. - Build the devcrypto engine as a dynamic module, like other engines. The devcrypto engine is built as a separate package by default, but options were added to allow building the engines into the main library. Signed-off-by: Eneas U de Queiroz --- T

[OpenWrt-Devel] [PATCH] openssl: bump to release 1.1.1b

2019-02-27 Thread Eneas U de Queiroz via openwrt-devel
ix release that incorporated all of the devcrypto engine patches currently in the tree. The cleaning procedure in Package/Configure was not removing the dependency files, causing linking errors during a rebuild with different options. It was replaced by a simple make clean. Signed-off-by: Eneas U

[OpenWrt-Devel] [PATCH v3] openssl: backport devcrypto changes from master

2019-02-25 Thread Eneas U de Queiroz via openwrt-devel
supported by the engine and the system. - Build the devcrypto engine as a dynamic module, like other engines. The devcrypto engine is built as a separate package by default, but options were added to allow building the engines into the main library. Signed-off-by: Eneas U de Queiroz --- This s

[OpenWrt-Devel] [PATCH v2] openssl: backport devcrypto changes from master

2019-02-21 Thread Eneas U de Queiroz via openwrt-devel
supported by the engine and the system. - Build the devcrypto engine as a dynamic module, like other engines. The devcrypto engine is built as a separate package by default, but options were added to allow building the engines into the main library. Signed-off-by: Eneas U de Queiroz --- This s

[OpenWrt-Devel] [PATCH] openssl: fix devcrypto engine md blocksize

2019-02-21 Thread Eneas U de Queiroz via openwrt-devel
size info for message digests. This was breaking openssh with a 'ssh_dispatch_fatal: ... invalid argument' error. The patch was sent upstream as part of openssl/openssl#8213. Reported-by: Gerard Looije Signed-off-by: Eneas U de Queiroz --- Run-tested on Linksys WRT3200ACM with openssh 7.9p1

[OpenWrt-Devel] [PATCH 2/2] openssl: backport devcrypto changes from master

2019-02-15 Thread Eneas U de Queiroz via openwrt-devel
supported by the engine and the system. - Build the devcrypto engine as a dynamic module, like other engines. The devcrypto engine is built as a separate package by default, but options were added to allow building the engines into the main library. Signed-off-by: Eneas U de Queiroz diff --git

[OpenWrt-Devel] [PATCH 1/2] openssl: patch to fix devcrypto sessions leak

2019-02-15 Thread Eneas U de Queiroz via openwrt-devel
from https://github.com/openssl/openssl/pull/8213 that fixes an error where open /dev/crypto sessions were not closed. Thanks to Ansuel Smith for reporting it. Signed-off-by: Eneas U de Queiroz diff --git a/package/libs/openssl/patches/300-eng_devcrypto-close-open-session-on-init.patch b/package/li

[OpenWrt-Devel] [PATCH 0/2] openssl: changes to /dev/crypto support

2019-02-15 Thread Eneas U de Queiroz via openwrt-devel
sl/openssl/pull/8213. Signed-off-by: Eneas U de Queiroz Eneas U de Queiroz (2): openssl: patch to fix devcrypto sessions leak openssl: backport devcrypto changes from master package/libs/openssl/Config.in| 35 +- package/libs/openssl/Makefile | 65 +- ...vcryp

[OpenWrt-Devel] [PATCH 0/1] omcproxy: fix compilation on little-endian CPUs

2018-12-14 Thread Eneas U de Queiroz via openwrt-devel
oup within expression allowed only inside a function static uint32_t ipv4_rtr_alert = cpu_to_be32(0x9404); ^ Patch was submitted upstream at https://github.com/sbyx/omcproxy/pull/2 Eneas U de Queiroz (1): omcproxy: fix compilation on little-endian CPUs packa

[OpenWrt-Devel] [PATCH 1/1] omcproxy: fix compilation on little-endian CPUs

2018-12-14 Thread Eneas U de Queiroz via openwrt-devel
32 outside of a function. Signed-off-by: Eneas U de Queiroz diff --git a/package/network/services/omcproxy/Makefile b/package/network/services/omcproxy/Makefile index 28de833a1c..e121fa0b23 100644 --- a/package/network/services/omcproxy/Makefile +++ b/package/network/services/omcproxy/Makefile @@

[OpenWrt-Devel] [PATCH v2] cryptodev-linux: move from packages feed

2018-11-25 Thread Eneas U de Queiroz via openwrt-devel
ly a build dependency for /dev/crypto support in openssl. Since it is a kernel module, it belongs here anyway. - Removed Nikos Mavrogiannopoulos as maintainer. - Streamlined make flags Signed-off-by: Eneas U de Queiroz diff --git a/package/kernel/cryptodev-linux/Makefile b/package/kernel/cryptodev-linu

<    1   2   3   >