aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs
diff options
context:
space:
mode:
authorJoel Low <joel@joelsplace.sg>2022-06-24 18:47:20 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2022-07-03 20:25:38 +0200
commit925c73aab3c1514da9f4cec97badb91113631dbf (patch)
treefc9aac6b73f346341421ead49202890d3ac7cef5 /package/libs
parent3dbdfed2c4868afb346ded7f6f75e8de9f4788ee (diff)
downloadupstream-925c73aab3c1514da9f4cec97badb91113631dbf.tar.gz
upstream-925c73aab3c1514da9f4cec97badb91113631dbf.tar.bz2
upstream-925c73aab3c1514da9f4cec97badb91113631dbf.zip
wolfssl: add config flag for Curve448
This enables building WolfSSL with Curve448, which can be used by Strongswan. This has been tested on a Linksys E8450, running OpenWrt 22.03-rc4. This allows parity with OpenSSL, which already supports Curve448 in OpenWrt 21.02. Fixes openwrt/packages#18812. Signed-off-by: Joel Low <joel@joelsplace.sg>
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/wolfssl/Config.in3
-rw-r--r--package/libs/wolfssl/Makefile2
2 files changed, 5 insertions, 0 deletions
diff --git a/package/libs/wolfssl/Config.in b/package/libs/wolfssl/Config.in
index eca9572c49..901f2b2965 100644
--- a/package/libs/wolfssl/Config.in
+++ b/package/libs/wolfssl/Config.in
@@ -51,6 +51,9 @@ config WOLFSSL_HAS_ECC25519
bool "Include ECC Curve 25519 support"
default y
+config WOLFSSL_HAS_ECC448
+ bool "Include ECC Curve 448 support"
+
config WOLFSSL_HAS_OPENVPN
bool "Include OpenVPN support"
default y
diff --git a/package/libs/wolfssl/Makefile b/package/libs/wolfssl/Makefile
index 3edd526364..a511837800 100644
--- a/package/libs/wolfssl/Makefile
+++ b/package/libs/wolfssl/Makefile
@@ -32,6 +32,7 @@ PKG_CONFIG_DEPENDS:=\
CONFIG_WOLFSSL_HAS_DH \
CONFIG_WOLFSSL_HAS_DTLS \
CONFIG_WOLFSSL_HAS_ECC25519 \
+ CONFIG_WOLFSSL_HAS_ECC448 \
CONFIG_WOLFSSL_HAS_OCSP \
CONFIG_WOLFSSL_HAS_OPENVPN CONFIG_WOLFSSL_ALT_NAMES \
CONFIG_WOLFSSL_HAS_SESSION_TICKET \
@@ -119,6 +120,7 @@ CONFIGURE_ARGS += \
--$(if $(CONFIG_WOLFSSL_HAS_SESSION_TICKET),enable,disable)-session-ticket \
--$(if $(CONFIG_WOLFSSL_HAS_DTLS),enable,disable)-dtls \
--$(if $(CONFIG_WOLFSSL_HAS_ECC25519),enable,disable)-curve25519 \
+ --$(if $(CONFIG_WOLFSSL_HAS_ECC448),enable,disable)-curve448 \
--$(if $(CONFIG_WOLFSSL_HAS_AFALG),enable,disable)-afalg \
--$(if $(CONFIG_WOLFSSL_HAS_OPENVPN),enable,disable)-openvpn \
--enable-devcrypto=$(if $(CONFIG_WOLFSSL_HAS_DEVCRYPTO_CBC),cbc\