diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-01-14 00:25:25 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-01-14 03:02:27 +0000 |
commit | e254d12c439c3e50dfccc98e3414c3e1849792f5 (patch) | |
tree | 1b387021269bee57fa7217e0863e6e72f75c579d /apps/ocsp.c | |
parent | 8788fb97a89181a538032af361343195f81e4f1e (diff) |
To avoid possible time_t overflow use X509_time_adj_ex()
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(cherry picked from commit 9aa00b187a65b1f30789d6274ec31ea86efe7973)
Conflicts:
apps/x509.c
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r-- | apps/ocsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index 6ed255d4b5..5da51df514 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1041,7 +1041,7 @@ static int make_ocsp_response(OCSP_RESPONSE **resp, OCSP_REQUEST *req, bs = OCSP_BASICRESP_new(); thisupd = X509_gmtime_adj(NULL, 0); if (ndays != -1) - nextupd = X509_gmtime_adj(NULL, nmin * 60 + ndays * 3600 * 24); + nextupd = X509_time_adj_ex(NULL, ndays, nmin * 60, NULL); /* Examine each certificate id in the request */ for (i = 0; i < id_count; i++) { |