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.
main
Nick Zana 2 years ago
parent 6e7d134b6d
commit ce4150d184

@ -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<attestation::CredentialData>,
pub extensions: Option<BTreeMap<extensions::Identifier, Vec<u8>>>,

Loading…
Cancel
Save