|
1 | 1 | use crate::webauthn::FilteredPublicKeyCredentialParameters; |
| 2 | +#[cfg(feature = "get-info-full")] |
| 3 | +use crate::String; |
2 | 4 | use crate::{Bytes, TryFromStrError, Vec}; |
3 | 5 | use serde::{Deserialize, Serialize}; |
4 | 6 | use serde_indexed::{DeserializeIndexed, SerializeIndexed}; |
@@ -133,6 +135,48 @@ pub struct Response { |
133 | 135 | #[cfg(feature = "get-info-full")] |
134 | 136 | #[serde(skip_serializing_if = "Option::is_none")] |
135 | 137 | pub long_touch_for_reset: Option<bool>, |
| 138 | + |
| 139 | + // 0x19 |
| 140 | + // FIDO_2_3 |
| 141 | + #[cfg(feature = "get-info-full")] |
| 142 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 143 | + pub enc_identifier: Option<String<64>>, |
| 144 | + |
| 145 | + // 0x1A |
| 146 | + // FIDO_2_3 |
| 147 | + #[cfg(feature = "get-info-full")] |
| 148 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 149 | + pub transports_for_reset: Option<Vec<String<8>, 4>>, |
| 150 | + |
| 151 | + // 0x1B |
| 152 | + // FIDO_2_3 |
| 153 | + #[cfg(feature = "get-info-full")] |
| 154 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 155 | + pub pin_complexity_policy: Option<bool>, |
| 156 | + |
| 157 | + // 0x1C |
| 158 | + // FIDO_2_3 |
| 159 | + #[cfg(feature = "get-info-full")] |
| 160 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 161 | + pub pin_complexity_policy_url: Option<String<128>>, |
| 162 | + |
| 163 | + // 0x1D |
| 164 | + // FIDO_2_3 |
| 165 | + #[cfg(feature = "get-info-full")] |
| 166 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 167 | + pub max_pin_length: Option<u8>, |
| 168 | + |
| 169 | + // 0x1E |
| 170 | + // FIDO_2_3 |
| 171 | + #[cfg(feature = "get-info-full")] |
| 172 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 173 | + pub enc_cred_store_state: Option<String<64>>, |
| 174 | + |
| 175 | + // 0x1F |
| 176 | + // FIDO_2_3 |
| 177 | + #[cfg(feature = "get-info-full")] |
| 178 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 179 | + pub authenticator_config_commands: Option<Vec<u8, 4>>, |
136 | 180 | } |
137 | 181 |
|
138 | 182 | impl Default for Response { |
@@ -199,6 +243,20 @@ impl ResponseBuilder { |
199 | 243 | uv_count_since_last_pin_entry: None, |
200 | 244 | #[cfg(feature = "get-info-full")] |
201 | 245 | long_touch_for_reset: None, |
| 246 | + #[cfg(feature = "get-info-full")] |
| 247 | + enc_identifier: None, |
| 248 | + #[cfg(feature = "get-info-full")] |
| 249 | + transports_for_reset: None, |
| 250 | + #[cfg(feature = "get-info-full")] |
| 251 | + pin_complexity_policy: None, |
| 252 | + #[cfg(feature = "get-info-full")] |
| 253 | + pin_complexity_policy_url: None, |
| 254 | + #[cfg(feature = "get-info-full")] |
| 255 | + max_pin_length: None, |
| 256 | + #[cfg(feature = "get-info-full")] |
| 257 | + enc_cred_store_state: None, |
| 258 | + #[cfg(feature = "get-info-full")] |
| 259 | + authenticator_config_commands: None, |
202 | 260 | } |
203 | 261 | } |
204 | 262 | } |
|
0 commit comments