|
@@ -56,13 +56,23 @@ endef
|
|
|
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_SVR_PASSWORD_AUTH
|
|
|
endif
|
|
|
|
|
|
+define DROPBEAR_DISABLE_LEGACY_CRYPTO
|
|
|
+ echo '#define DROPBEAR_3DES 0' >> $(@D)/localoptions.h
|
|
|
+ echo '#define DROPBEAR_ENABLE_CBC_MODE 0' >> $(@D)/localoptions.h
|
|
|
+ echo '#define DROPBEAR_SHA1_96_HMAC 0' >> $(@D)/localoptions.h
|
|
|
+ echo '#define DROPBEAR_DSS 0' >> $(@D)/localoptions.h
|
|
|
+ echo '#define DROPBEAR_DH_GROUP1 0' >> $(@D)/localoptions.h
|
|
|
+endef
|
|
|
+ifneq ($(BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO),y)
|
|
|
+DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_DISABLE_LEGACY_CRYPTO
|
|
|
+endif
|
|
|
+
|
|
|
define DROPBEAR_ENABLE_REVERSE_DNS
|
|
|
echo '#define DO_HOST_LOOKUP 1' >> $(@D)/localoptions.h
|
|
|
endef
|
|
|
|
|
|
define DROPBEAR_BUILD_FEATURED
|
|
|
echo '#define DROPBEAR_SMALL_CODE 0' >> $(@D)/localoptions.h
|
|
|
- echo '#define DROPBEAR_BLOWFISH 1' >> $(@D)/localoptions.h
|
|
|
echo '#define DROPBEAR_TWOFISH128 1' >> $(@D)/localoptions.h
|
|
|
echo '#define DROPBEAR_TWOFISH256 1' >> $(@D)/localoptions.h
|
|
|
endef
|