Skip to content

Commit

Permalink
i/tpm2test/ekcert.go: fix typo in verb used as format string in Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
sespiros committed Apr 4, 2024
1 parent 7285fbe commit 99c8824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tpm2test/ekcert.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func CreateTestEKCert(tpm *tpm2.TPMContext, caCert []byte, caKey crypto.PrivateK
pkix.AttributeTypeAndValue{Type: tcg.OIDTcgAttributeTpmVersion, Value: "id:00010002"}}}
tpmDeviceAttrData, err := asn1.Marshal(tpmDeviceAttrValues)
if err != nil {
return nil, fmt.Errorf("cannot marshal SAN value: %2", err)
return nil, fmt.Errorf("cannot marshal SAN value: %w", err)
}
sanData, err := asn1.Marshal([]asn1.RawValue{
asn1.RawValue{Class: asn1.ClassContextSpecific, Tag: tcg.SANDirectoryNameTag, IsCompound: true, Bytes: tpmDeviceAttrData}})
Expand Down

0 comments on commit 99c8824

Please sign in to comment.