chc: don't execute tests if LTC_TEST is not defined
This commit is contained in:
parent
f8449f55d9
commit
1fb649d394
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user