From 88ac2da7c261eb91857336ff035a44cbcd3b2606 Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Mon, 21 Oct 2013 22:46:12 +0800
Subject: [PATCH] A few small fixes for ECC compilation

--HG--
branch : ecc
---
 ecdsa.h      | 6 +++---
 sysoptions.h | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ecdsa.h b/ecdsa.h
index 84e40000..3fbc6661 100644
--- a/ecdsa.h
+++ b/ecdsa.h
@@ -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
diff --git a/sysoptions.h b/sysoptions.h
index 21b153ba..8d57375e 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -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
-- 
GitLab