From ce4150d18492ef996b02dc221627a44e97cb6941 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Tue, 16 May 2023 13:50:13 -0400 Subject: [PATCH] fido-common: Add new backup flags to authenticator::Data As of the CTAP 2.2 revision, authenticator::Data now contains the backup_eligibility and backup_state flags. --- crates/fido-common/src/authenticator.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/fido-common/src/authenticator.rs b/crates/fido-common/src/authenticator.rs index 664ea15..de0a26f 100644 --- a/crates/fido-common/src/authenticator.rs +++ b/crates/fido-common/src/authenticator.rs @@ -1,4 +1,8 @@ -use crate::{attestation, extensions, Sha256Hash}; +use crate::{ + attestation, + credential::{BackupEligibility, BackupState}, + extensions, Sha256Hash, +}; use std::collections::BTreeMap; pub enum Flags {} @@ -29,6 +33,8 @@ pub struct Data { pub relying_party_id_hash: Sha256Hash, pub user_presence: UserPresence, pub user_verification: UserVerification, + pub backup_eligibility: BackupEligibility, + pub backup_state: BackupState, pub signature_counter: u32, pub attested_credential_data: Option, pub extensions: Option>>,