#error if no ecc size is chosen

This commit is contained in:
Matt Johnston 2018-03-08 22:22:11 +08:00
parent f82933108d
commit b4b11c8155

View File

@ -16,7 +16,7 @@
#elif DROPBEAR_ECC_521 #elif DROPBEAR_ECC_521
#define ECDSA_DEFAULT_SIZE 521 #define ECDSA_DEFAULT_SIZE 521
#else #else
#define ECDSA_DEFAULT_SIZE 0 #error ECDSA can't be enabled without enabling at least one size (256, 384, 521)
#endif #endif
ecc_key *gen_ecdsa_priv_key(unsigned int bit_size); ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);