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)
|
int chc_test(void)
|
||||||
{
|
{
|
||||||
|
#ifndef LTC_TEST
|
||||||
|
return CRYPT_NOP;
|
||||||
|
#else
|
||||||
static const struct {
|
static const struct {
|
||||||
unsigned char *msg,
|
unsigned char *msg,
|
||||||
md[MAXBLOCKSIZE];
|
md[MAXBLOCKSIZE];
|
||||||
@ -289,6 +292,7 @@ int chc_test(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return CRYPT_OK;
|
return CRYPT_OK;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user