diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-07-13 13:40:14 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-07-13 13:40:14 +0200 |
commit | 6053ef80e56451fe4f30ec9858dc0db042de8baa (patch) | |
tree | d8b6e961578fdd967f670ad8578c7a9065a431cc /apps/x509.c | |
parent | Update from 0.9.8-stable (diff) | |
download | openssl-6053ef80e56451fe4f30ec9858dc0db042de8baa.tar.xz openssl-6053ef80e56451fe4f30ec9858dc0db042de8baa.zip |
Use new time routines to avoid possible overflow.
Diffstat (limited to '')
-rw-r--r-- | apps/x509.c | 2 |
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); |