aboutsummaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-07-14 15:30:05 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-07-14 15:30:05 +0000
commit3f7c59208270dd4f8acb52649a5e6d349d21859b (patch)
tree47efef38b832cee438842d792ef873c5f2968b44 /apps/x509.c
parent0e4bc563479f6fd4deee9329cf24e7126f93f051 (diff)
downloadopenssl-3f7c59208270dd4f8acb52649a5e6d349d21859b.tar.gz
Updates from 1.0.0-stable.
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/x509.c b/apps/x509.c
index af534f63d1..f4198d97be 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_ex(X509_get_notAfter(x),days, 0, NULL);
+ X509_time_adj_ex(X509_get_notAfter(x),days, 0, NULL);
pkey = X509_REQ_get_pubkey(req);
X509_set_pubkey(x,pkey);
@@ -1147,7 +1147,7 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
goto end;
/* hardwired expired */
- if (X509_gmtime_adj(X509_get_notAfter(x),(long)60*60*24*days) == NULL)
+ if (X509_time_adj_ex(X509_get_notAfter(x),days, 0, NULL) == NULL)
goto end;
if (clrext)