const void *tmp;
Eet_File *ef;
Eet_Key *k;
+ FILE *noread;
char *test;
char *file = strdup("/tmp/eet_suite_testXXXXXX");
int size;
fail_if(!(file = tmpnam(file)));
fail_if(chdir("src/tests"));
+ fail_if(!(noread = fopen("/dev/null", "w")));
/* Sign an eet file. */
ef = eet_open(file, EET_FILE_MODE_WRITE);
fail_if(!k);
fail_if(eet_identity_set(ef, k) != EET_ERROR_NONE);
+ eet_identity_print(k, noread);
eet_close(ef);
tmp = eet_identity_x509(ef, &size);
fail_if(tmp == NULL);
+ eet_identity_certificate_print(tmp, size, noread);
+
eet_close(ef);
/* As we are changing file contain in less than 1s, this could get unnoticed