From b4b11c8155b09e4d56925d2d4336c10d802adf11 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 8 Mar 2018 22:22:11 +0800 Subject: #error if no ecc size is chosen --- ecdsa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecdsa.h') diff --git a/ecdsa.h b/ecdsa.h index bb3a18e..e86a038 100644 --- a/ecdsa.h +++ b/ecdsa.h @@ -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); -- cgit v1.2.3