changeset 1602:0f149d63068d

#error if no ecc size is chosen
author Matt Johnston <matt@ucc.asn.au>
date Thu, 08 Mar 2018 22:22:11 +0800
parents b711a8256919
children 0dc3103a5900
files ecdsa.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ecdsa.h	Wed Mar 07 22:50:32 2018 +0800
+++ b/ecdsa.h	Thu Mar 08 22:22:11 2018 +0800
@@ -16,7 +16,7 @@
 #elif DROPBEAR_ECC_521
 #define ECDSA_DEFAULT_SIZE 521
 #else
-#define ECDSA_DEFAULT_SIZE 0
+#error ECDSA can't be enabled without enabling at least one size (256, 384, 521)
 #endif
 
 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);