projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a4a77
)
Use new time routines to avoid possible overflow.
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 13 Jul 2009 11:40:14 +0000
(11:40 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 13 Jul 2009 11:40:14 +0000
(11:40 +0000)
apps/x509.c
patch
|
blob
|
history
diff --git
a/apps/x509.c
b/apps/x509.c
index 5e81ee8c3f41cadb307cc5be4b22f2d32b92ea17..af534f63d1f1f06a198c3ef0cc56b9a47076fea7 100644
(file)
--- 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);