aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2020-06-25 09:58:41 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-06-25 23:06:31 +0200
commit98967b5193c3d5fed510cf85f781b59739cf88f7 (patch)
tree689b327796f129e4e5dd13184f1041493075cd8a
parentb9fa269a087c791de0c830189e9e904feb1ce54b (diff)
downloadbuildroot-98967b5193c3d5fed510cf85f781b59739cf88f7.tar.gz
buildroot-98967b5193c3d5fed510cf85f781b59739cf88f7.tar.bz2
package/dropbear: restore full BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO behaviour
now, BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO works like with version 2019.78 and as described in Config.in Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Acked-by: Alexander Dahl <post@lespocky.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/dropbear/dropbear.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/dropbear/dropbear.mk b/package/dropbear/dropbear.mk
index b32f39d647..b7342cef51 100644
--- a/package/dropbear/dropbear.mk
+++ b/package/dropbear/dropbear.mk
@@ -56,7 +56,14 @@ endef
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_SVR_PASSWORD_AUTH
endif
-ifneq ($(BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO),y)
+ifeq ($(BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO),y)
+define DROPBEAR_ENABLE_LEGACY_CRYPTO
+ echo '#define DROPBEAR_3DES 1' >> $(@D)/localoptions.h
+ echo '#define DROPBEAR_ENABLE_CBC_MODE 1' >> $(@D)/localoptions.h
+ echo '#define DROPBEAR_SHA1_96_HMAC 1' >> $(@D)/localoptions.h
+endef
+DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_ENABLE_LEGACY_CRYPTO
+else
define DROPBEAR_DISABLE_LEGACY_CRYPTO
echo '#define DROPBEAR_DSS 0' >> $(@D)/localoptions.h
echo '#define DROPBEAR_DH_GROUP1 0' >> $(@D)/localoptions.h