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:
c22aa33
)
Cast time_t to uint64_t before converting to milliseconds in ct_policy.c
author
Rob Percival
<robpercival@google.com>
Wed, 14 Sep 2016 19:25:01 +0000
(20:25 +0100)
committer
Rich Salz
<rsalz@openssl.org>
Tue, 15 Nov 2016 21:12:41 +0000
(16:12 -0500)
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1554)
crypto/ct/ct_policy.c
patch
|
blob
|
history
diff --git
a/crypto/ct/ct_policy.c
b/crypto/ct/ct_policy.c
index adee331366ea5694628f624e9b36506acfb83867..0f274439716cb968e117ccc18df1a485b599bc1d 100644
(file)
--- a/
crypto/ct/ct_policy.c
+++ b/
crypto/ct/ct_policy.c
@@
-33,7
+33,9
@@
CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void)
}
// time(NULL) shouldn't ever fail, so don't bother checking for -1.
- ctx->epoch_time_in_ms = (time(NULL) + SCT_CLOCK_DRIFT_TOLERANCE) * 1000;
+ ctx->epoch_time_in_ms = (uint64_t)(time(NULL) + SCT_CLOCK_DRIFT_TOLERANCE) *
+ 1000;
+
return ctx;
}