Update ctap-types

This commit is contained in:
Robin Krahl
2023-07-10 15:56:01 +02:00
parent e4962d5c56
commit 21f24dee41
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -45,5 +45,6 @@ rand = "0.8.4"
features = ["dispatch"]
[patch.crates-io]
ctap-types = { git = "https://github.com/Nitrokey/ctap-types.git", tag = "v0.1.2-nitrokey.2" }
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "57cb3317878a8593847595319aa03ef17c29ec5b" }
trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "51e68500d7601d04f884f5e95567d14b9018a6cb" }
+3 -3
View File
@@ -324,7 +324,7 @@ impl Credential {
let data = &mut stripped.data;
data.rp.name = None;
data.rp.url = None;
data.rp.icon = None;
data.user.icon = None;
data.user.name = None;
@@ -348,7 +348,7 @@ mod test {
rp: PublicKeyCredentialRpEntity {
id: String::from("John Doe"),
name: None,
url: None,
icon: None,
},
user: PublicKeyCredentialUserEntity {
id: Bytes::from_slice(&[1, 2, 3]).unwrap(),
@@ -427,7 +427,7 @@ mod test {
rp: PublicKeyCredentialRpEntity {
id: random_string(),
name: maybe_random_string(),
url: maybe_random_string(),
icon: None,
},
user: PublicKeyCredentialUserEntity {
id: random_bytes(), //Bytes::from_slice(&[1,2,3]).unwrap(),
+1 -1
View File
@@ -89,7 +89,7 @@ impl<UP: UserPresence, T: TrussedRequirements> Authenticator for crate::Authenti
let rp = ctap_types::webauthn::PublicKeyCredentialRpEntity {
id: rp_id,
name: None,
url: None,
icon: None,
};
let user = ctap_types::webauthn::PublicKeyCredentialUserEntity {