diff options
Diffstat (limited to 'crypto/ct/ct_vfy.c')
-rw-r--r-- | crypto/ct/ct_vfy.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |