Skip to content

Commit

Permalink
fix: missing extension results in parsed credential data (#13)
Browse files Browse the repository at this point in the history
This ensures the ClientExtensionResults in the response are properly copied to the parsed results.
  • Loading branch information
james-d-elliott authored Dec 13, 2021
1 parent 509e08f commit 9c370fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions protocol/attestation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestAttestationVerify(t *testing.T) {
t.Fatal(err)
}
var pcc ParsedCredentialCreationData
pcc.ID, pcc.RawID, pcc.Type = ccr.ID, ccr.RawID, ccr.Type
pcc.ID, pcc.RawID, pcc.Type, pcc.ClientExtensionResults = ccr.ID, ccr.RawID, ccr.Type, ccr.ClientExtensionResults
pcc.Raw = ccr

parsedAttestationResponse, err := ccr.AttestationResponse.Parse()
Expand Down Expand Up @@ -52,7 +52,7 @@ func attestationTestUnpackResponse(t *testing.T, response string) ParsedCredenti
t.Fatal(err)
}
var pcc ParsedCredentialCreationData
pcc.ID, pcc.RawID, pcc.Type = ccr.ID, ccr.RawID, ccr.Type
pcc.ID, pcc.RawID, pcc.Type, pcc.ClientExtensionResults = ccr.ID, ccr.RawID, ccr.Type, ccr.ClientExtensionResults
pcc.Raw = ccr

parsedAttestationResponse, err := ccr.AttestationResponse.Parse()
Expand Down
2 changes: 1 addition & 1 deletion protocol/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func ParseCredentialCreationResponseBody(body io.Reader) (*ParsedCredentialCreat
}

var pcc ParsedCredentialCreationData
pcc.ID, pcc.RawID, pcc.Type = ccr.ID, ccr.RawID, ccr.Type
pcc.ID, pcc.RawID, pcc.Type, pcc.ClientExtensionResults = ccr.ID, ccr.RawID, ccr.Type, ccr.ClientExtensionResults
pcc.Raw = ccr

parsedAttestationResponse, err := ccr.AttestationResponse.Parse()
Expand Down

0 comments on commit 9c370fd

Please sign in to comment.