From 6e363033966121d09cab90298c73703a02f11fe0 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Thu, 18 Apr 2024 13:06:03 +0800 Subject: [PATCH] update Signed-off-by: Patrick Zheng --- verifier/verifier.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/verifier/verifier.go b/verifier/verifier.go index 92866c06..9c3d3666 100644 --- a/verifier/verifier.go +++ b/verifier/verifier.go @@ -545,7 +545,7 @@ func verifyAuthenticTimestamp(ctx context.Context, trustPolicy *trustpolicy.Trus } } if trustPolicy.TimestampVerification == nil || !trustPolicy.TimestampVerification.Enable { - // if timestamp verification is disabled in trust policy + // if timestamp verification is disabled by trust policy return ¬ation.ValidationResult{ Error: errors.New("current time is not in certificate chain validity period and timestamp verification is disabled in trust policy"), Type: trustpolicy.TypeAuthenticTimestamp, @@ -652,7 +652,7 @@ func verifyAuthenticTimestamp(ctx context.Context, trustPolicy *trustpolicy.Trus Action: outcome.VerificationLevel.Enforcement[trustpolicy.TypeAuthenticTimestamp], } } - // timestamp core process + // timestamp validation core process for _, cert := range signerInfo.CertificateChain { if timeStampLowerLimit.Before(cert.NotBefore) { return ¬ation.ValidationResult{