Skip to content

Commit

Permalink
adding changes
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD authored and mikhailswift committed Feb 12, 2024
1 parent 7e96be8 commit b114971
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions cmd/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,6 @@ func runVerify(ctx context.Context, vo options.VerifyOptions, verifiers ...crypt
verifiers = append(verifiers, v)
}

if vo.CAPaths != nil {
for _, caPath := range vo.CAPaths {
caFile, err := os.Open(caPath)
if err != nil {
return fmt.Errorf("failed to open CA Cerficate file: %w", err)
}
defer caFile.Close()

v, err := cryptoutil.NewVerifierFromReader(caFile)
if err != nil {
return fmt.Errorf("failed to create verifier: %w", err)
}

verifiers = append(verifiers, v)
}
}

inFile, err := os.Open(vo.PolicyFilePath)
if err != nil {
return fmt.Errorf("failed to open file to sign: %w", err)
Expand Down

0 comments on commit b114971

Please sign in to comment.