Skip to content

Commit

Permalink
Merge pull request #87 from deeglaze/println
Browse files Browse the repository at this point in the history
Remove debug println
  • Loading branch information
deeglaze authored Sep 28, 2023
2 parents bb64fd1 + 2dcbba0 commit 233e929
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions testing/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package client

import (
"fmt"
"testing"

"github.com/google/go-sev-guest/abi"
Expand Down Expand Up @@ -88,7 +87,6 @@ func GetSevGuest(tcs []test.TestCase, opts *test.DeviceOptions, tb testing.TB) (
if err != nil {
tb.Fatalf("failed to get product chain for %q: %v", product, err)
}
fmt.Printf("Making bad root %s %v", product, rootCerts)
// By removing the ASK intermediate, we ensure that the attestation will never verify.
badSnpRoot[product] = []*trust.AMDRootCerts{{
Product: product,
Expand Down
3 changes: 1 addition & 2 deletions verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func decodeCerts(chain *spb.CertificateChain, key abi.ReportSigner, options *Opt
if err != nil {
return nil, nil, err
}
fmt.Println("product", exts.ProductName, product)

productName := kds.ProductString(product)
// Ensure the extension product info matches expectations.
if err := checkProductName(product, options.Product, key); err != nil {
Expand Down Expand Up @@ -711,7 +711,6 @@ func fillInAttestation(attestation *spb.Attestation, options *Options) error {
return err
}
attestation.Product, err = kds.ParseProductName(exts.ProductName, abi.VcekReportSigner)
fmt.Printf("filled in product with %v\n", attestation.Product)
if err != nil {
return err
}
Expand Down

0 comments on commit 233e929

Please sign in to comment.