diff --git a/Cargo.toml b/Cargo.toml index fdcb66e..e2ec682 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,4 @@ trussed = { version = "0.1.0", features = ["serde-extensions", "virt"] } [patch.crates-io] littlefs2 = { git = "https://github.com/Nitrokey/littlefs2", tag = "v0.3.2-nitrokey-2" } -trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "51e68500d7601d04f884f5e95567d14b9018a6cb" } +trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "df720980888e3e0d5487250bd14a28db02a5f13b" } diff --git a/src/backend.rs b/src/backend.rs index 709c735..f60f446 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -219,7 +219,7 @@ impl ExtensionImpl for AuthBackend { let global_fs = &mut resources.filestore(PathBuf::from(BACKEND_DIR)); let rng = &mut resources.rng()?; let client_id = core_ctx.path.clone(); - let keystore = &mut resources.keystore(core_ctx)?; + let keystore = &mut resources.keystore(core_ctx.path.clone())?; match request { AuthRequest::HasPin(request) => { let has_pin = fs.exists(&request.id.path(), self.location); diff --git a/src/lib.rs b/src/lib.rs index 8520705..a2c78fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -176,7 +176,7 @@ mod tests { #[test] fn pin_id_path() { - for i in 0..u8::MAX { + for i in 0..=u8::MAX { assert_eq!(Ok(PinId(i)), PinId::from_path(PinId(i).path().as_ref())); let actual = PinId(i).path(); let expected = PathBuf::from(format!("pin.{i:02x}").as_str());