summaryrefslogtreecommitdiffstats
path: root/rules/dropbear.make
diff options
context:
space:
mode:
authorAlexander Dahl <post@lespocky.de>2013-03-26 14:05:25 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-03-27 19:17:03 +0100
commit7610fe0b44ccfc2a7ccd74cbb92caa7a95e9fe56 (patch)
tree94431e94d272737da6cd14005f8c01b751f99ead /rules/dropbear.make
parent638730da3e986063e66b9fb3d97b10725decc3f6 (diff)
downloadptxdist-7610fe0b44ccfc2a7ccd74cbb92caa7a95e9fe56.tar.gz
ptxdist-7610fe0b44ccfc2a7ccd74cbb92caa7a95e9fe56.tar.xz
add options for recently added SHA256 and SHA512 hashes
Make new hash functions available through ptxdist config menu. Signed-off-by: Alexander Dahl <post@lespocky.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/dropbear.make')
-rw-r--r--rules/dropbear.make16
1 files changed, 16 insertions, 0 deletions
diff --git a/rules/dropbear.make b/rules/dropbear.make
index 2beb7ef7e..74f273fbb 100644
--- a/rules/dropbear.make
+++ b/rules/dropbear.make
@@ -181,6 +181,22 @@ else
@$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_SHA1_96_HMAC)
endif
+ifdef PTXCONF_DROPBEAR_SHA256
+ @echo "ptxdist: enabling sha256"
+ @$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_SHA2_256_HMAC)
+else
+ @echo "ptxdist: disabling sha256"
+ @$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_SHA2_256_HMAC)
+endif
+
+ifdef PTXCONF_DROPBEAR_SHA512
+ @echo "ptxdist: enabling sha512"
+ @$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_SHA2_512_HMAC)
+else
+ @echo "ptxdist: disabling sha512"
+ @$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_SHA2_512_HMAC)
+endif
+
ifdef PTXCONF_DROPBEAR_MD5
@echo "ptxdist: enabling md5"
@$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_MD5_HMAC)