X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fct%2Fct_vfy.c;h=cabcf5782aa445a49a2a771d1354172a3b818c12;hb=eea5f335b81d89554272a1fab8de9e40656509da;hp=724f65579bca1f3f7a668fe94bb97f323fdc42f3;hpb=cdb2a60347f988037d29adc7e4415e9c66c8a5a5;p=oweals%2Fopenssl.git diff --git a/crypto/ct/ct_vfy.c b/crypto/ct/ct_vfy.c index 724f65579b..cabcf5782a 100644 --- a/crypto/ct/ct_vfy.c +++ b/crypto/ct/ct_vfy.c @@ -113,6 +113,10 @@ int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct) CTerr(CT_F_SCT_CTX_VERIFY, CT_R_SCT_LOG_ID_MISMATCH); return 0; } + if (sct->timestamp > sctx->epoch_time_in_ms) { + CTerr(CT_F_SCT_CTX_VERIFY, CT_R_SCT_FUTURE_TIMESTAMP); + return 0; + } ctx = EVP_MD_CTX_new(); if (ctx == NULL)