Skip to content

Commit

Permalink
remove client
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <asraa@google.com>

fix

Signed-off-by: Asra Ali <asraa@google.com>
  • Loading branch information
asraa committed Aug 29, 2022
1 parent 28240a8 commit 8de1bf6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/rekor-cli/app/get.go
Expand Up @@ -114,7 +114,7 @@ var getCmd = &cobra.Command{
for ix, entry := range resp.Payload {
// verify log entry
e = entry
if err := verify.VerifyLogEntry(ctx, rekorClient, &e, verifier); err != nil {
if err := verify.VerifyLogEntry(ctx, &e, verifier); err != nil {
return nil, fmt.Errorf("unable to verify entry was added to log: %w", err)
}

Expand Down Expand Up @@ -150,7 +150,7 @@ var getCmd = &cobra.Command{

// verify log entry
e = entry
if err := verify.VerifyLogEntry(ctx, rekorClient, &e, verifier); err != nil {
if err := verify.VerifyLogEntry(ctx, &e, verifier); err != nil {
return nil, fmt.Errorf("unable to verify entry was added to log: %w", err)
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/rekor-cli/app/verify.go
Expand Up @@ -167,7 +167,7 @@ var verifyCmd = &cobra.Command{
return nil, err
}

if err := verify.VerifyLogEntry(ctx, rekorClient, &entry, verifier); err != nil {
if err := verify.VerifyLogEntry(ctx, &entry, verifier); err != nil {
return nil, fmt.Errorf("validating entry: %w", err)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/verify/verify.go
Expand Up @@ -185,7 +185,7 @@ func VerifySignedEntryTimestamp(ctx context.Context, e *models.LogEntryAnon, ver
// Performs inclusion proof verification up to a verified root hash and
// SignedEntryTimestamp verification.
//nolint
func VerifyLogEntry(ctx context.Context, rClient *client.Rekor, e *models.LogEntryAnon, verifier signature.Verifier) error {
func VerifyLogEntry(ctx context.Context, e *models.LogEntryAnon, verifier signature.Verifier) error {
// Verify the inclusion proof using the body's leaf hash.
if err := VerifyInclusion(ctx, e); err != nil {
return err
Expand Down

0 comments on commit 8de1bf6

Please sign in to comment.