mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
Don't print warning in case LTC_NO_TEST is defined.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
parent
0834f876cd
commit
229f540c48
1 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,10 @@ LTC_NOP_TEST(nop_test)
|
|||
void run_cmd(int res, int line, const char *file, const char *cmd, const char *algorithm)
|
||||
{
|
||||
if (res != CRYPT_OK) {
|
||||
#ifdef LTC_NO_TEST
|
||||
if (res == CRYPT_NOP)
|
||||
return;
|
||||
#endif
|
||||
fprintf(stderr, "%s (%d)%s%s\n%s:%d:%s\n",
|
||||
error_to_string(res), res,
|
||||
(algorithm ? " - " : ""), (algorithm ? algorithm : ""),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue