blob: 98c674b161b672e98ad8c99b50a5041ef9deb767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <stdio.h>
#include "crypto.h"
#include "service_provider.h"
#include "trusted_module.h"
void check(const char *name, int condition)
{
printf("%s: %s", name, condition ? "\033[32;1mPASS\033[0m\n" : "\033[31;1mFAIL\033[0m\n");
#if 0
if(!condition)
{
printf("%s\n", tm_geterror());
tm_seterror(NULL);
}
#endif
}
|