summaryrefslogtreecommitdiffstats
path: root/rules/dropbear.make
diff options
context:
space:
mode:
authorBruno Thomsen <bth@kamstrup.dk>2014-06-16 14:02:41 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-06-16 21:04:06 +0200
commit54afea33423c6bef00f64ca92292299e238923c0 (patch)
treea6bf9f65bab3de1bc10a255ea31891da89ad4c28 /rules/dropbear.make
parent6051eeb1f419c5016412e2f0cbb2b01d0b677ea1 (diff)
downloadptxdist-54afea33423c6bef00f64ca92292299e238923c0.tar.gz
ptxdist-54afea33423c6bef00f64ca92292299e238923c0.tar.xz
dropbear: Added Elliptic Curve Cryptography options.
Support for ecdsa, ecdh and curve25519-donna options. Signed-off-by: Bruno Thomsen <bth@kamstrup.dk> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/dropbear.make')
-rw-r--r--rules/dropbear.make24
1 files changed, 24 insertions, 0 deletions
diff --git a/rules/dropbear.make b/rules/dropbear.make
index 5ab6fd3e3..5cbd4aa24 100644
--- a/rules/dropbear.make
+++ b/rules/dropbear.make
@@ -222,6 +222,30 @@ else
@$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_DSS)
endif
+ifdef PTXCONF_DROPBEAR_ECDSA
+ @echo "ptxdist: enabling ecdsa"
+ @$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDSA)
+else
+ @echo "ptxdist: disabling ecdsa"
+ @$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDSA)
+endif
+
+ifdef PTXCONF_DROPBEAR_ECDH
+ @echo "ptxdist: enabling ecdh"
+ @$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDH)
+else
+ @echo "ptxdist: disabling ecdh"
+ @$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDH)
+endif
+
+ifdef PTXCONF_DROPBEAR_CURVE25519
+ @echo "ptxdist: enabling curve25519"
+ @$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_CURVE25519)
+else
+ @echo "ptxdist: disabling curve25519"
+ @$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_CURVE25519)
+endif
+
ifdef PTXCONF_DROPBEAR_PASSWD
@echo "ptxdist: enabling passwd"
@$(call enable_c, $(DROPBEAR_DIR)/options.h,ENABLE_SVR_PASSWORD_AUTH)