[openssl-commits] [openssl] OpenSSL_1_1_0-stable update

Matt Caswell matt at openssl.org
Thu Sep 13 14:49:30 UTC 2018


The branch OpenSSL_1_1_0-stable has been updated
       via  622fc2e051bc3c61a09d08f1fafdb45f6f8499b0 (commit)
      from  477d1a6234d5f4cf5ebfe022390cf5fff42b60fa (commit)


- Log -----------------------------------------------------------------
commit 622fc2e051bc3c61a09d08f1fafdb45f6f8499b0
Author: Matt Caswell <matt at openssl.org>
Date:   Wed Sep 12 16:49:19 2018 +0100

    Add an explicit cast to time_t
    
    Caused a compilation failure in some environments
    
    Fixes #7204
    
    Reviewed-by: Viktor Dukhovni <viktor at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/7205)
    
    (cherry picked from commit bc278f30f0b766bfb82426c641dc1d51ace4a994)

-----------------------------------------------------------------------

Summary of changes:
 test/ct_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/ct_test.c b/test/ct_test.c
index ea90923..88a8b77 100644
--- a/test/ct_test.c
+++ b/test/ct_test.c
@@ -542,8 +542,8 @@ static int test_default_ct_policy_eval_ctx_time_is_now()
 {
     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 (fabs(difftime(time(NULL), default_time)) > time_tolerance) {


More information about the openssl-commits mailing list