The variable is currently not used, but it will be useful later for key generation and daemon startup based on actually selected host key types.
Signed-off-by: Alexander Dahl <[email protected]> --- projectroot/etc/init.d/dropbear | 2 -- projectroot/usr/lib/init/dropbear.sh | 1 + rules/dropbear.make | 9 +++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/projectroot/etc/init.d/dropbear b/projectroot/etc/init.d/dropbear index a308aefde..342565f93 100644 --- a/projectroot/etc/init.d/dropbear +++ b/projectroot/etc/init.d/dropbear @@ -13,8 +13,6 @@ DROPBEAR_EXTRA_ARGS= test -z "$DROPBEAR_BANNER" || \ DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER" -test -n "$DROPBEAR_KEYTYPES" || \ - DROPBEAR_KEYTYPES="rsa dss" dropbear_start() { diff --git a/projectroot/usr/lib/init/dropbear.sh b/projectroot/usr/lib/init/dropbear.sh index 2e3d60f49..e8aa58576 100644 --- a/projectroot/usr/lib/init/dropbear.sh +++ b/projectroot/usr/lib/init/dropbear.sh @@ -2,3 +2,4 @@ DROPBEAR_RSAKEY='@KEYDIR@/dropbear_rsa_host_key' DROPBEAR_DSSKEY='@KEYDIR@/dropbear_dss_host_key' +DROPBEAR_KEYTYPES='@KEYTYPES@' diff --git a/rules/dropbear.make b/rules/dropbear.make index ce0214d88..bbf99eb14 100644 --- a/rules/dropbear.make +++ b/rules/dropbear.make @@ -261,6 +261,13 @@ DROPBEAR_INSTALL_OPT := install inst_scp # Target-Install # ---------------------------------------------------------------------------- +ifdef PTXCONF_DROPBEAR_RSA +DROPBEAR_KEY_TYPES += rsa +endif +ifdef PTXCONF_DROPBEAR_ECDSA +DROPBEAR_KEY_TYPES += ecdsa +endif + $(STATEDIR)/dropbear.targetinstall: @$(call targetinfo) @@ -273,6 +280,8 @@ $(STATEDIR)/dropbear.targetinstall: @$(call install_alternative, dropbear, 0, 0, 0644, /usr/lib/init/dropbear.sh) @$(call install_replace, dropbear, /usr/lib/init/dropbear.sh, \ @KEYDIR@, $(PTXCONF_DROPBEAR_KEY_DIR)) + @$(call install_replace, dropbear, /usr/lib/init/dropbear.sh, \ + @KEYTYPES@, '$(DROPBEAR_KEY_TYPES)') ifdef PTXCONF_DROPBEAR_DROPBEAR @$(call install_copy, dropbear, 0, 0, 0755, -, \ -- 2.30.2 _______________________________________________ ptxdist mailing list [email protected] To unsubscribe, send a mail with subject "unsubscribe" to [email protected]
