summaryrefslogtreecommitdiff
path: root/sysoptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysoptions.h')
-rw-r--r--sysoptions.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/sysoptions.h b/sysoptions.h
index 8fa3ff0..9b7c15a 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -93,13 +93,26 @@
#define DROPBEAR_ECC
#endif
-
#ifdef DROPBEAR_ECC
#define DROPBEAR_ECC_256
#define DROPBEAR_ECC_384
#define DROPBEAR_ECC_521
#endif
+// hashes which will be linked and registered
+#if defined(DROPBEAR_SHA2_256_HMAC) || defined(DROPBEAR_ECC_256)
+#define DROPBEAR_SHA256
+#endif
+#if defined(DROPBEAR_ECC_384)
+#define DROPBEAR_SHA384
+#endif
+#if defined(DROPBEAR_SHA2_512_HMAC) || defined(DROPBEAR_ECC_521)
+#define DROPBEAR_SHA512
+#endif
+#if defined(DROPBEAR_MD5_HMAC)
+#define DROPBEAR_MD5
+#endif
+
// roughly 2x 521 bits
#define MAX_ECC_SIZE 140
@@ -155,19 +168,6 @@
#define DROPBEAR_TWOFISH
#endif
-#ifdef DROPBEAR_MD5_HMAC
-#define DROPBEAR_MD5
-#endif
-
-#ifdef DROPBEAR_SHA2_256_HMAC
-#define DROPBEAR_SHA256
-#endif
-
-#if (defined(DROPBEAR_DSS) && defined(DSS_PROTOK)) \
- || defined(DROPBEAR_SHA2_512_HMAC)
-#define DROPBEAR_SHA512
-#endif
-
#ifndef ENABLE_X11FWD
#define DISABLE_X11FWD
#endif