summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-05-09 23:24:58 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-05-09 23:24:58 +0800
commit226671b5508afb147cad40d5cd8f90e1cbb2c24e (patch)
tree4c8c3ced12e41fa5d0641fb52df1f33aa310f86e /ecdsa.h
parent95a21c8fd796c570e8660db983b3032af96ec5cb (diff)
Fix build for dropbearkey and ecdsa with certain options
--HG-- branch : ecc
Diffstat (limited to 'ecdsa.h')
-rw-r--r--ecdsa.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ecdsa.h b/ecdsa.h
index db4ae18..84e4000 100644
--- a/ecdsa.h
+++ b/ecdsa.h
@@ -5,6 +5,8 @@
#include "buffer.h"
#include "signkey.h"
+#ifdef DROPBEAR_ECDSA
+
#ifdef DROPBEAR_ECC_256
#define ECDSA_DEFAULT_SIZE 256
#elif DROPBEAR_ECC_384
@@ -25,4 +27,6 @@ enum signkey_type ecdsa_signkey_type(ecc_key * key);
void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf);
int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf);
-#endif // _ECDSA_H_ \ No newline at end of file
+#endif
+
+#endif // _ECDSA_H_