dropbear: fix missing depends for sntrup761x25519-sha512
authorKonstantin Demin <[email protected]>
Wed, 20 Aug 2025 06:55:47 +0000 (09:55 +0300)
committerHauke Mehrtens <[email protected]>
Sat, 23 Aug 2025 16:25:11 +0000 (18:25 +0200)
resolves FTBFS where internal option DROPBEAR_SHA512 wasn't enabled by any of options

Signed-off-by: Konstantin Demin <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19715
Signed-off-by: Hauke Mehrtens <[email protected]>
package/network/services/dropbear/patches/052-fix-missing-depends-for-sntrup761x25519-sha512.patch [new file with mode: 0644]

diff --git a/package/network/services/dropbear/patches/052-fix-missing-depends-for-sntrup761x25519-sha512.patch b/package/network/services/dropbear/patches/052-fix-missing-depends-for-sntrup761x25519-sha512.patch
new file mode 100644 (file)
index 0000000..82edb7c
--- /dev/null
@@ -0,0 +1,24 @@
+From 4bc1e18948d0918bcb1338a5f1e7856478abf985 Mon Sep 17 00:00:00 2001
+From: Konstantin Demin <[email protected]>
+Date: Fri, 8 Aug 2025 10:02:44 +0300
+Subject: fix missing depends for sntrup761x25519-sha512
+
+fixes 440b7b5c4f "Add sntrup761x25519-sha512 post-quantum key exchange"
+
+Signed-off-by: Konstantin Demin <[email protected]>
+Forwarded: https://github.com/mkj/dropbear/pull/375
+---
+ src/sysoptions.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/sysoptions.h
++++ b/src/sysoptions.h
+@@ -207,7 +207,7 @@
+ /* LTC SHA384 depends on SHA512 */
+ #define DROPBEAR_SHA512 ((DROPBEAR_SHA2_512_HMAC) || (DROPBEAR_ECC_521) \
+                       || (DROPBEAR_SHA384) || (DROPBEAR_DH_GROUP16) \
+-                      || (DROPBEAR_ED25519))
++                      || (DROPBEAR_ED25519) || (DROPBEAR_SNTRUP761))
+ #define DROPBEAR_DH_GROUP14 ((DROPBEAR_DH_GROUP14_SHA256) || (DROPBEAR_DH_GROUP14_SHA1))