diff options
-rw-r--r-- | utils/manifest/Makefile | 1 | ||||
-rw-r--r-- | utils/manifest/manifest.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/utils/manifest/Makefile b/utils/manifest/Makefile index 1b07a9c2..1123c551 100644 --- a/utils/manifest/Makefile +++ b/utils/manifest/Makefile @@ -21,4 +21,5 @@ ${BIN}: ${OBJ} ${LIB} Makefile MANIFEST_DIR = ../../rpkid/testbed.dir/publication test: all + -date -u +%Y%m%d%H%M%S if test -d ${MANIFEST_DIR}; then find ${MANIFEST_DIR} -type f -name '*.mnf' -print -exec ./manifest {} \; ; else :; fi diff --git a/utils/manifest/manifest.c b/utils/manifest/manifest.c index 3133dacd..b486932e 100644 --- a/utils/manifest/manifest.c +++ b/utils/manifest/manifest.c @@ -150,6 +150,9 @@ static Manifest *read_manifest(const char *filename) printf("%02x%s", fah->hash->data[j], j == fah->hash->length - 1 ? "\n" : ":"); } + if (X509_cmp_current_time(m->nextUpdate) < 0) + printf("MANIFEST HAS EXPIRED\n"); + done: if (ERR_peek_error()) ERR_print_errors_fp(stderr); |