Skip to content

Commit b6c1dcb

Browse files
authored
Remove debug logs (#3)
1 parent 37bde31 commit b6c1dcb

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

appattest/verify_attestation.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import (
77
"crypto/x509"
88
"encoding/asn1"
99
"encoding/hex"
10-
"encoding/pem"
1110
"fmt"
12-
"os"
1311
"reflect"
1412
"slices"
1513
"time"
@@ -81,14 +79,6 @@ func VerifyAttestationPure(in *VerifyAttestationInputPure) (VerifyAttestationOut
8179

8280
// get the leaf certificate (first in chain)
8381
leafCert := chain[0]
84-
pblock := pem.Block{
85-
Type: "CERTIFICATE",
86-
Bytes: leafCert.Raw,
87-
}
88-
if err := pem.Encode(os.Stdout, &pblock); err != nil {
89-
panic(err)
90-
}
91-
fmt.Println()
9282

9383
// > 2. Create clientDataHash as the SHA256 hash of the one-time challenge your server sends
9484
// > to your app before performing the attestation,

appattest/verify_chain.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ func validateKeyUsage(cert *x509.Certificate, isCA bool) error {
4242
return fmt.Errorf("CA certificate missing Certificate Sign key usage")
4343
}
4444
} else {
45-
fmt.Println(cert.KeyUsage)
4645
if cert.KeyUsage&x509.KeyUsageDigitalSignature == 0 {
4746
return fmt.Errorf("end entity certificate missing required key usage (Digital Signature)")
4847
}

0 commit comments

Comments
 (0)