summaryrefslogtreecommitdiffhomepage
path: root/algo.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-18 23:45:10 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-18 23:45:10 +0800
commit4dae8edb76c3c252b681669c16f978477c633c16 (patch)
tree19c7eac9e1604f2bd75dcc34c266532ea98b0e41 /algo.h
parenta3e01b88841da97aae3d80b155034cc5f9f2c03e (diff)
parentf7d38a1b9ccbe6225dcf5959d922b6d073638891 (diff)
merge main to fuzz
--HG-- branch : fuzz
Diffstat (limited to 'algo.h')
-rw-r--r--algo.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/algo.h b/algo.h
index 49c4f41..c793115 100644
--- a/algo.h
+++ b/algo.h
@@ -83,9 +83,15 @@ struct dropbear_hash {
};
enum dropbear_kex_mode {
+#if DROPBEAR_NORMAL_DH
DROPBEAR_KEX_NORMAL_DH,
+#endif
+#if DROPBEAR_ECDH
DROPBEAR_KEX_ECDH,
+#endif
+#if DROPBEAR_CURVE25519
DROPBEAR_KEX_CURVE25519,
+#endif
};
struct dropbear_kex {
@@ -96,7 +102,7 @@ struct dropbear_kex {
const int dh_p_len;
/* elliptic curve DH KEX */
-#ifdef DROPBEAR_ECDH
+#if DROPBEAR_ECDH
const struct dropbear_ecc_curve *ecc_curve;
#else
const void* dummy;
@@ -122,7 +128,7 @@ enum kexguess2_used {
algo_type * buf_match_algo(buffer* buf, algo_type localalgos[],
enum kexguess2_used *kexguess2, int *goodguess);
-#ifdef ENABLE_USER_ALGO_LIST
+#if DROPBEAR_USER_ALGO_LIST
int check_user_algos(const char* user_algo_list, algo_type * algos,
const char *algo_desc);
char * algolist_string(algo_type algos[]);