aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-06-17 20:44:56 +0000
committerRob Austein <sra@hactrn.net>2008-06-17 20:44:56 +0000
commit6de9f7e3cf2e634035ac842a4fad7e7de90633aa (patch)
treec646d85c505b85f2846a81e6889c44f16e542d90
parent77afd8cc8a7a0ac3c4733a62507845086524aab8 (diff)
Check manifest dates
svn path=/utils/manifest/Makefile; revision=1896
-rw-r--r--utils/manifest/Makefile1
-rw-r--r--utils/manifest/manifest.c3
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);