Loading crypto/ct/ct_policy.c +7 −0 Original line number Diff line number Diff line Loading @@ -13,18 +13,25 @@ #include <openssl/ct.h> #include <openssl/err.h> #include <time.h> #include "ct_locl.h" CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void) { CT_POLICY_EVAL_CTX *ctx = OPENSSL_zalloc(sizeof(CT_POLICY_EVAL_CTX)); time_t epoch_time_in_s; if (ctx == NULL) { CTerr(CT_F_CT_POLICY_EVAL_CTX_NEW, ERR_R_MALLOC_FAILURE); return NULL; } // Use the current time if available. time(&epoch_time_in_s); if (epoch_time_in_s != -1) ctx->epoch_time_in_ms = epoch_time_in_s * 1000; return ctx; } Loading Loading
crypto/ct/ct_policy.c +7 −0 Original line number Diff line number Diff line Loading @@ -13,18 +13,25 @@ #include <openssl/ct.h> #include <openssl/err.h> #include <time.h> #include "ct_locl.h" CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void) { CT_POLICY_EVAL_CTX *ctx = OPENSSL_zalloc(sizeof(CT_POLICY_EVAL_CTX)); time_t epoch_time_in_s; if (ctx == NULL) { CTerr(CT_F_CT_POLICY_EVAL_CTX_NEW, ERR_R_MALLOC_FAILURE); return NULL; } // Use the current time if available. time(&epoch_time_in_s); if (epoch_time_in_s != -1) ctx->epoch_time_in_ms = epoch_time_in_s * 1000; return ctx; } Loading