diff ecdsa.h @ 838:4365e12c68e6 ecc

A few small fixes for ECC compilation
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Oct 2013 22:46:12 +0800
parents 45f1bc96f357
children 774ad9b112ef
line wrap: on
line diff
--- a/ecdsa.h	Sun Oct 20 21:07:05 2013 +0800
+++ b/ecdsa.h	Mon Oct 21 22:46:12 2013 +0800
@@ -7,11 +7,11 @@
 
 #ifdef DROPBEAR_ECDSA
 
-#ifdef DROPBEAR_ECC_256
+#if defined(DROPBEAR_ECC_256)
 #define ECDSA_DEFAULT_SIZE 256
-#elif DROPBEAR_ECC_384
+#elif defined(DROPBEAR_ECC_384)
 #define ECDSA_DEFAULT_SIZE 384
-#elif DROPBEAR_ECC_521
+#elif defined(DROPBEAR_ECC_521)
 #define ECDSA_DEFAULT_SIZE 521
 #else
 #define ECDSA_DEFAULT_SIZE 0