mirror of
https://github.com/trussed-dev/fido-authenticator.git
synced 2026-06-20 04:16:16 -07:00
Add attestation formats in get_info
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ name = "usbip"
|
||||
required-features = ["dispatch"]
|
||||
|
||||
[dependencies]
|
||||
ctap-types = { version = "0.2.0", features = ["large-blobs", "third-party-payment"] }
|
||||
ctap-types = { version = "0.2.0", features = ["get-info-full", "large-blobs", "third-party-payment"] }
|
||||
cosey = "0.3"
|
||||
delog = "0.1.0"
|
||||
heapless = "0.7"
|
||||
|
||||
@@ -85,6 +85,14 @@ impl<UP: UserPresence, T: TrussedRequirements> Authenticator for crate::Authenti
|
||||
}
|
||||
transports.push(Transport::Usb).unwrap();
|
||||
|
||||
let mut attestation_formats = Vec::new();
|
||||
attestation_formats
|
||||
.push(AttestationStatementFormat::Packed)
|
||||
.unwrap();
|
||||
attestation_formats
|
||||
.push(AttestationStatementFormat::None)
|
||||
.unwrap();
|
||||
|
||||
let (_, aaguid) = self.state.identity.attestation(&mut self.trussed);
|
||||
|
||||
let mut response = ctap2::get_info::Response::default();
|
||||
@@ -98,6 +106,7 @@ impl<UP: UserPresence, T: TrussedRequirements> Authenticator for crate::Authenti
|
||||
response.pin_protocols = Some(pin_protocols);
|
||||
response.max_creds_in_list = Some(ctap_types::sizes::MAX_CREDENTIAL_COUNT_IN_LIST);
|
||||
response.max_cred_id_length = Some(ctap_types::sizes::MAX_CREDENTIAL_ID_LENGTH);
|
||||
response.attestation_formats = Some(attestation_formats);
|
||||
response
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user