diff algo.h @ 1295:750ec4ec4cbe

Convert #ifdef to #if, other build changes
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 May 2016 15:33:40 +0200
parents 56aba7dedbea
children 06d52bcb8094
line wrap: on
line diff
--- a/algo.h	Mon May 02 23:48:16 2016 +0200
+++ b/algo.h	Wed May 04 15:33:40 2016 +0200
@@ -86,10 +86,10 @@
 #if DROPBEAR_NORMAL_DH
 	DROPBEAR_KEX_NORMAL_DH,
 #endif
-#ifdef DROPBEAR_ECDH
+#if DROPBEAR_ECDH
 	DROPBEAR_KEX_ECDH,
 #endif
-#ifdef DROPBEAR_CURVE25519
+#if DROPBEAR_CURVE25519
 	DROPBEAR_KEX_CURVE25519,
 #endif
 };
@@ -102,7 +102,7 @@
 	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;
@@ -128,7 +128,7 @@
 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[]);