diff algo.h @ 755:b07eb3dc23ec ecc

refactor kexdh code a bit, start working on ecdh etc
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 Mar 2013 01:35:22 +0800
parents 63f8d6c469cf
children bf9dc2d9c2b1
line wrap: on
line diff
--- a/algo.h	Sun Mar 24 00:02:20 2013 +0800
+++ b/algo.h	Tue Mar 26 01:35:22 2013 +0800
@@ -94,5 +94,23 @@
 char * algolist_string(algo_type algos[]);
 #endif
 
+enum {
+	DROPBEAR_KEX_DH_GROUP1,
+	DROPBEAR_KEX_DH_GROUP14,
+	DROPBEAR_KEX_ECDH_SECP256R1,
+};
+
+#ifdef DROPBEAR_ECDH
+#define IS_NORMAL_DH(algo) ((algo) == DROPBEAR_KEX_DH_GROUP1 || (algo) == DROPBEAR_KEX_DH_GROUP14)
+#else
+#define IS_NORMAL_DH(algo) 1
+#endif
+
+enum {
+	DROPBEAR_COMP_NONE,
+	DROPBEAR_COMP_ZLIB,
+	DROPBEAR_COMP_ZLIB_DELAY,
+};
+
 
 #endif /* _ALGO_H_ */