From 1ca1793a242f0129a34defa3f7f0d4d280308c17 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Tue, 16 May 2023 19:12:31 -0400 Subject: [PATCH] ctap2-proto: Add new CTAP 2.2 device::Info fields --- crates/ctap2-proto/src/authenticator/device.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/ctap2-proto/src/authenticator/device.rs b/crates/ctap2-proto/src/authenticator/device.rs index a2e085e..586d268 100644 --- a/crates/ctap2-proto/src/authenticator/device.rs +++ b/crates/ctap2-proto/src/authenticator/device.rs @@ -2,7 +2,7 @@ use crate::authenticator::client_pin::AuthProtocolVersion; use crate::authenticator::Transport; use crate::extensions; use fido_common::credential::public_key; -use fido_common::registry; +use fido_common::{attestation, registry}; use std::collections::{BTreeMap, BTreeSet}; use std::num::NonZeroUsize; use std::usize; @@ -275,4 +275,11 @@ pub struct Info { /// > `authenticatorConfig` `vendorCommandId` values supported, which MAY be /// > empty. pub vendor_prototype_config_commands: Option>, + /// > List of supported attestation formats. + pub attestation_formats: Option>, + /// > If present the number of internal User Verification operations since + /// > the last pin entry including all failed attempts. + pub uv_count_since_last_pin_entry: Option, + /// > If present the authenticator requires a 10 second touch for reset. + pub long_touch_for_reset: Option, }