summaryrefslogtreecommitdiff
path: root/default_options.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-24 23:32:25 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-06-24 23:32:25 +0800
commit9dcec7cc9b35a578e2dcd773c1d09fa051a6fbcb (patch)
treec8a976aea7c0622efaaebc045016b5d76adbbb15 /default_options.h
parent4411cfea2e4e342b481fd1931ed82f25936d1fe4 (diff)
downloaddropbear-9dcec7cc9b35a578e2dcd773c1d09fa051a6fbcb.tar.gz
add configuration option for default RSA size.
print key size with dropbearkey
Diffstat (limited to 'default_options.h')
-rw-r--r--default_options.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/default_options.h b/default_options.h
index e59c338..e7fad80 100644
--- a/default_options.h
+++ b/default_options.h
@@ -10,7 +10,7 @@ Local customisation should be added to localoptions.h which is
used if it exists. Options defined there will override any options in this
file (#ifndef guards added by ifndef_wrapper.sh).
-Options can also be defined with -DDROPBEAR_XXX Makefile CFLAGS
+Options can also be defined with -DDROPBEAR_XXX in Makefile CFLAGS
IMPORTANT: Many options will require "make clean" after changes */
@@ -198,6 +198,13 @@ If you test it please contact the Dropbear author */
#define DROPBEAR_ECDSA 1
#endif
+/* RSA must be >=1024 */
+#ifndef DROPBEAR_DEFAULT_RSA_SIZE
+#define DROPBEAR_DEFAULT_RSA_SIZE 2048
+#endif
+/* DSS is always 1024 */
+/* ECDSA defaults to largest size configured, usually 521 */
+
/* Add runtime flag "-R" to generate hostkeys as-needed when the first
connection using that key type occurs.
This avoids the need to otherwise run "dropbearkey" and avoids some problems