From 8aae4402f7303d39cc1412461510ceacd826ff40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 3 Jun 2007 18:01:24 +0000 Subject: [PATCH] Add lifetime to crls. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20852 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index 1be20319f..eeb2708ce 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -1828,6 +1828,16 @@ crl_sign(struct crl_sign_options *opt, int argc, char **argv) hx509_err(context, 1, ret, "no signer certificate found"); } + if (opt->lifetime_string) { + int delta; + + delta = parse_time(opt->lifetime_string, "day"); + if (delta < 0) + errx(1, "Invalid lifetime: %s", opt->lifetime_string); + + hx509_crl_lifetime(context, crl, delta); + } + { hx509_certs revoked = NULL; int i;