Add lifetime to crls.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20852 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user