chc: don't execute tests if LTC_TEST is not defined

This commit is contained in:
Steffen Jaeckel 2014-08-07 01:34:06 +02:00
parent f8449f55d9
commit 1fb649d394

View File

@ -251,6 +251,9 @@ int chc_done(hash_state *md, unsigned char *out)
*/
int chc_test(void)
{
#ifndef LTC_TEST
return CRYPT_NOP;
#else
static const struct {
unsigned char *msg,
md[MAXBLOCKSIZE];
@ -289,6 +292,7 @@ int chc_test(void)
}
return CRYPT_OK;
#endif
}
#endif