Convert C++ comments to C-style comments
authorRob Percival <robpercival@google.com>
Wed, 14 Sep 2016 19:26:23 +0000 (20:26 +0100)
committerRich 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

index 0f274439716cb968e117ccc18df1a485b599bc1d..0d7b3463877d2b94ac2303f2d4bea4fde1d75518 100644 (file)
 
 #include "ct_locl.h"
 
-// Number of seconds in the future that an SCT timestamp can be, by default,
-// without being considered invalid. This is added to time() when setting a
-// default value for CT_POLICY_EVAL_CTX.epoch_time_in_ms.
-// It can be overridden by calling CT_POLICY_EVAL_CTX_set_time().
+/*
+ * Number of seconds in the future that an SCT timestamp can be, by default,
+ * without being considered invalid. This is added to time() when setting a
+ * default value for CT_POLICY_EVAL_CTX.epoch_time_in_ms.
+ * It can be overridden by calling CT_POLICY_EVAL_CTX_set_time().
+ */
 static const time_t SCT_CLOCK_DRIFT_TOLERANCE = 300;
 
 CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void)
@@ -32,7 +34,7 @@ CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void)
         return NULL;
     }
 
-    // time(NULL) shouldn't ever fail, so don't bother checking for -1.
+    /* time(NULL) shouldn't ever fail, so don't bother checking for -1. */
     ctx->epoch_time_in_ms = (uint64_t)(time(NULL) + SCT_CLOCK_DRIFT_TOLERANCE) *
             1000;