diff --git a/src/appraisal.rs b/src/appraisal.rs index 854055c..ee224b4 100644 --- a/src/appraisal.rs +++ b/src/appraisal.rs @@ -146,9 +146,6 @@ 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::()?) - } Some("ear.status") => appraisal.status = map.next_value::()?, Some("ear.trustworthiness-vector") => { appraisal.trust_vector = map.next_value::()? @@ -163,6 +160,9 @@ impl<'de> Visitor<'de> for AppraisalVisitor { Some("ear.veraison.policy-claims") => { appraisal.policy_claims = map.next_value::>()? } + Some("ear.veraison.key-attestation") => { + appraisal.key_attestation = Some(map.next_value::()?) + } Some(_) => (), // unknown extensions are ignored None => break, } @@ -179,6 +179,9 @@ impl<'de> Visitor<'de> for AppraisalVisitor { Some(-70001) => { appraisal.policy_claims = map.next_value::>()? } + Some(-70002) => { + appraisal.key_attestation = Some(map.next_value::()?) + } Some(_) => (), // unknown extensions are ignored None => break, }