summaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-07-13 11:40:46 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-07-13 11:40:46 +0000
commit0190aa735308635d4c63d7f6bdbe7f65ec6db26a (patch)
tree7224bf76bd509b429da13ec696f7f257398bf67f /apps/x509.c
parent1546de87f0bd6c2322e5197e26017d66b1d6b0e1 (diff)
Update from HEAD.
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c2
1 files changed, 1 insertions, 1 deletions
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);