Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Apr 18, 2024
1 parent 12ac6b6 commit 6e36303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 &notation.ValidationResult{
Error: errors.New("current time is not in certificate chain validity period and timestamp verification is disabled in trust policy"),
Type: trustpolicy.TypeAuthenticTimestamp,
Expand Down Expand Up @@ -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 &notation.ValidationResult{
Expand Down

0 comments on commit 6e36303

Please sign in to comment.