From 0190aa735308635d4c63d7f6bdbe7f65ec6db26a Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 13 Jul 2009 11:40:46 +0000 Subject: [PATCH] Update from HEAD. --- apps/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/x509.c b/apps/x509.c index 5e81ee8c3f..af534f63d1 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -626,7 +626,7 @@ bad: if (!X509_set_subject_name(x,req->req_info->subject)) goto end; X509_gmtime_adj(X509_get_notBefore(x),0); - X509_gmtime_adj(X509_get_notAfter(x),(long)60*60*24*days); + X509_gmtime_adj_ex(X509_get_notAfter(x),days, 0, NULL); pkey = X509_REQ_get_pubkey(req); X509_set_pubkey(x,pkey); -- 2.34.1