changeset 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 fdf51d3f26e1
children 3a9ec98808c3
files ecdsa.h sysoptions.h
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
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
--- a/sysoptions.h	Sun Oct 20 21:07:05 2013 +0800
+++ b/sysoptions.h	Mon Oct 21 22:46:12 2013 +0800
@@ -90,6 +90,8 @@
 
 #if defined(DROPBEAR_ECDH) || defined (DROPBEAR_ECDSA)
 #define DROPBEAR_ECC
+/* Debian doesn't define this in system headers */
+#define LTM_DESC
 #endif
 
 #ifdef DROPBEAR_ECC