From 08e588b7d5cefbfd107c88416900165a28a5b59e Mon Sep 17 00:00:00 2001 From: Rob Percival Date: Wed, 14 Sep 2016 20:26:23 +0100 Subject: Convert C++ comments to C-style comments Reviewed-by: Viktor Dukhovni Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1554) --- crypto/ct/ct_policy.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'crypto/ct') diff --git a/crypto/ct/ct_policy.c b/crypto/ct/ct_policy.c index 0f27443971..0d7b346387 100644 --- a/crypto/ct/ct_policy.c +++ b/crypto/ct/ct_policy.c @@ -17,10 +17,12 @@ #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; -- cgit v1.2.3