char extsigfile[256] = {0};
int ret = 1;
int checkmsg = 0;
+ struct timeval tv;
if (mkdtemp(tmpdir) == NULL)
return errno;
if (msgfile)
checkmsg = -1;
+ gettimeofday(&tv, NULL);
+
list_for_each_entry(cobj, chain, list) {
/* blob has payload, verify that using signature */
if (cobj->cert[CERT_ATTR_PAYLOAD]) {
- struct timeval tv;
uint64_t validfrom;
uint64_t expiresat;
uint32_t certtype;
goto clean_and_return;
}
- gettimeofday(&tv, NULL);
if (tv.tv_sec < validfrom ||
tv.tv_sec >= expiresat) {
ret = 3;
struct blob_buf certbuf;
struct blob_buf payloadbuf;
struct timeval tv;
- struct stat st;
int pklen, siglen;
int revoker = 1;
void *c;
return 1;
}
+ gettimeofday(&tv, NULL);
+
list_for_each_entry(cobj, &certchain, list) {
if (!cobj->cert[CERT_ATTR_PAYLOAD])
return 2;
return 2;
}
- gettimeofday(&tv, NULL);
if (tv.tv_sec < validfrom) {
return 3;
}