Merge pull request #315 from kaleb-himes/fix-no-sha

update for configure option --disable-sha
This commit is contained in:
dgarske 2016-02-16 13:08:59 -08:00
commit b72c83e191

View File

@ -6172,8 +6172,9 @@ int ecc_test(void)
WC_RNG rng;
byte sharedA[1024];
byte sharedB[1024];
#if !defined(NO_SHA) && \
((defined(HAVE_ECC192) && defined(HAVE_ECC224)) || defined(HAVE_ALL_CURVES))
#if !defined(NO_ASN) || \
( !defined(NO_SHA) && ((defined(HAVE_ECC192) && defined(HAVE_ECC224)) \
|| defined(HAVE_ALL_CURVES)))
byte sig[1024];
int verify;
#endif