aboutsummaryrefslogtreecommitdiff
path: root/test/ct_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-09-12 16:49:19 +0100
committerMatt Caswell <matt@openssl.org>2018-09-13 09:00:29 +0100
commitbc278f30f0b766bfb82426c641dc1d51ace4a994 (patch)
treeafd55fd0ffe317b1e978e72f6c98bc0859402b9c /test/ct_test.c
parentaa343982d2a2449633382a3ba032871949c788b4 (diff)
downloadopenssl-bc278f30f0b766bfb82426c641dc1d51ace4a994.zip
openssl-bc278f30f0b766bfb82426c641dc1d51ace4a994.tar.gz
openssl-bc278f30f0b766bfb82426c641dc1d51ace4a994.tar.bz2
Add an explicit cast to time_t
Caused a compilation failure in some environments Fixes #7204 Reviewed-by: Viktor Dukhovni <viktor@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7205)
Diffstat (limited to 'test/ct_test.c')
-rw-r--r--test/ct_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ct_test.c b/test/ct_test.c
index ce99f42..de37476 100644
--- a/test/ct_test.c
+++ b/test/ct_test.c
@@ -500,8 +500,8 @@ static int test_default_ct_policy_eval_ctx_time_is_now(void)
{
int success = 0;
CT_POLICY_EVAL_CTX *ct_policy_ctx = CT_POLICY_EVAL_CTX_new();
- const time_t default_time = CT_POLICY_EVAL_CTX_get_time(ct_policy_ctx) /
- 1000;
+ const time_t default_time =
+ (time_t)(CT_POLICY_EVAL_CTX_get_time(ct_policy_ctx) / 1000);
const time_t time_tolerance = 600; /* 10 minutes */
if (!TEST_time_t_le(abs((int)difftime(time(NULL), default_time)),