summaryrefslogtreecommitdiff
path: root/ecc.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2016-05-04 15:33:40 +0200
committerMatt Johnston <matt@ucc.asn.au>2016-05-04 15:33:40 +0200
commit4d172c1e54d7f183cd477b904eee3a62ce6f1831 (patch)
tree3fab69a3ac35f6a0e54e483a19392d62b1f5e2b2 /ecc.c
parent2dfef3c30b677fc8e7dcaf9b53742bcd4a2155b7 (diff)
downloaddropbear-4d172c1e54d7f183cd477b904eee3a62ce6f1831.tar.gz
Convert #ifdef to #if, other build changes
Diffstat (limited to 'ecc.c')
-rw-r--r--ecc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ecc.c b/ecc.c
index e252884..9d97b5d 100644
--- a/ecc.c
+++ b/ecc.c
@@ -4,10 +4,10 @@
#include "dbutil.h"
#include "bignum.h"
-#ifdef DROPBEAR_ECC
+#if DROPBEAR_ECC
/* .dp members are filled out by dropbear_ecc_fill_dp() at startup */
-#ifdef DROPBEAR_ECC_256
+#if DROPBEAR_ECC_256
struct dropbear_ecc_curve ecc_curve_nistp256 = {
32, /* .ltc_size */
NULL, /* .dp */
@@ -15,7 +15,7 @@ struct dropbear_ecc_curve ecc_curve_nistp256 = {
"nistp256" /* .name */
};
#endif
-#ifdef DROPBEAR_ECC_384
+#if DROPBEAR_ECC_384
struct dropbear_ecc_curve ecc_curve_nistp384 = {
48, /* .ltc_size */
NULL, /* .dp */
@@ -23,7 +23,7 @@ struct dropbear_ecc_curve ecc_curve_nistp384 = {
"nistp384" /* .name */
};
#endif
-#ifdef DROPBEAR_ECC_521
+#if DROPBEAR_ECC_521
struct dropbear_ecc_curve ecc_curve_nistp521 = {
66, /* .ltc_size */
NULL, /* .dp */
@@ -33,13 +33,13 @@ struct dropbear_ecc_curve ecc_curve_nistp521 = {
#endif
struct dropbear_ecc_curve *dropbear_ecc_curves[] = {
-#ifdef DROPBEAR_ECC_256
+#if DROPBEAR_ECC_256
&ecc_curve_nistp256,
#endif
-#ifdef DROPBEAR_ECC_384
+#if DROPBEAR_ECC_384
&ecc_curve_nistp384,
#endif
-#ifdef DROPBEAR_ECC_521
+#if DROPBEAR_ECC_521
&ecc_curve_nistp521,
#endif
NULL