Skip to content

Commit

Permalink
refactor!: remove blob sign/verify related contents (notaryproject#1011)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Sep 26, 2024
1 parent 4c0a3da commit 3d40f67
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 537 deletions.
4 changes: 2 additions & 2 deletions cmd/notation/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ func getVerifier(ctx context.Context) (notation.Verifier, error) {
}

// trust policy and trust store
policyDocument, err := trustpolicy.LoadOCIDocument()
policyDocument, err := trustpolicy.LoadDocument()
if err != nil {
return nil, err
}
x509TrustStore := truststore.NewX509TrustStore(dir.ConfigFS())

return verifier.NewVerifierWithOptions(policyDocument, nil, x509TrustStore, plugin.NewCLIManager(dir.PluginFS()), verifier.VerifierOptions{
return verifier.NewWithOptions(policyDocument, x509TrustStore, plugin.NewCLIManager(dir.PluginFS()), verifier.VerifierOptions{
RevocationCodeSigningValidator: revocationCodeSigningValidator,
RevocationTimestampingValidator: revocationTimestampingValidator,
})
Expand Down
Loading

0 comments on commit 3d40f67

Please sign in to comment.