Support As(TPMRC) for format-1 errors.
Open
- Dominant language
- Go
- Stars
- 673
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
Ideally this always gives a canonical code, even if the error is a TPM format-1 error code (bearing handle and other metadata):
```go
_, err := tpm2.SomeCommand{}.Execute(tpm)
var rc tpm2.TPMRC
if errors.As(err, &rc) {
fmt.Printf("TPM canonical code: %v\n", rc)
}
```
Contributor guide
Assessment
This issue has not been assessed yet.