From 21f24dee41ded450d7f90691c5d42ea498122235 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 7 Jul 2023 19:25:02 +0200 Subject: [PATCH] Update ctap-types --- Cargo.toml | 1 + src/credential.rs | 6 +++--- src/ctap1.rs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9d9eaec..97363ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/src/credential.rs b/src/credential.rs index dac78c6..c08dd01 100644 --- a/src/credential.rs +++ b/src/credential.rs @@ -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(), diff --git a/src/ctap1.rs b/src/ctap1.rs index e519b82..60ff709 100644 --- a/src/ctap1.rs +++ b/src/ctap1.rs @@ -89,7 +89,7 @@ impl 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 {