Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle "ear.veraison.key-attestation" on deserialisation #8

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

thomas-fossati
Copy link
Contributor

Fix #7

/cc @gbryant-arm

src/appraisal.rs Outdated
@@ -146,6 +146,9 @@ impl<'de> Visitor<'de> for AppraisalVisitor {
loop {
if self.is_human_readable {
match map.next_key::<&str>()? {
Some("ear.veraison.key-attestation") => {
appraisal.key_attestation = Some(map.next_value::<KeyAttestation>()?)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need the corresponding Some(-70002) entry on the else (non human readable) arm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see 28ba101

Signed-off-by: Thomas Fossati <[email protected]>
Copy link
Contributor

@setrofim setrofim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@thomas-fossati thomas-fossati merged commit 20722b0 into main Jan 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Unable to process attestation result when carrying Veraison's "key attestation" claims
2 participants