fido-common: add enums for credential backup

Used in by the authenticator in authenticator::Data to convey
information about the backup state of credentials.
main
Nick Zana 2 years ago
parent 9351d6ea6c
commit 2bb574e62b

@ -16,3 +16,15 @@ pub enum Type {
#[cfg_attr(feature = "serde", serde(rename = "public-key"))]
PublicKey,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum BackupState {
BackedUp = 0b0,
NotBackedUp = 0b1,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum BackupEligibility {
Eligible,
Ineligible,
}

Loading…
Cancel
Save