From cd42bd5d70be4ee282cdc1967d0ad0f5fe04e4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Wed, 3 Apr 2024 12:13:45 +0200 Subject: [PATCH] Fix compilation of read_dir_first call --- Cargo.toml | 4 ++-- src/trussed_auth_impl/data.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9c94eea..7a87139 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,10 +49,10 @@ p256-cortex-m4 = { version = "0.1.0-alpha.6", features = ["prehash", "sec1-signa admin-app = "0.1.0" [patch.crates-io] -littlefs2 = { git = "https://github.com/trussed-dev/littlefs2.git", rev = "ebd27e49ca321089d01d8c9b169c4aeb58ceeeca" } +littlefs2 = { git = "https://github.com/trussed-dev/littlefs2.git", rev = "960e57d9fc0d209308c8e15dc26252bbe1ff6ba8" } apdu-dispatch = { git = "https://github.com/trussed-dev/apdu-dispatch.git", rev = "915fc237103fcecc29d0f0b73391f19abf6576de" } ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "57cb3317878a8593847595319aa03ef17c29ec5b" } -trussed = { git = "https://github.com/Nitrokey/trussed.git", rev = "dd7836a155c78e93a2087611666e60308ed8ff1d" } +trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "667d60c019d485524a276f2a4dd07aaa66e71021" } trussed-auth = { git = "https://github.com/trussed-dev/trussed-auth.git", tag = "v0.3.0"} trussed-manage = { git = "https://github.com/trussed-dev/trussed-staging.git", tag = "manage-v0.1.0" } trussed-rsa-alloc = { git = "https://github.com/Nitrokey/trussed-rsa-backend.git", rev = "2088e2f8a8d706276c1559717b4c6b6d4f270253" } diff --git a/src/trussed_auth_impl/data.rs b/src/trussed_auth_impl/data.rs index 2c11bc9..84e261d 100644 --- a/src/trussed_auth_impl/data.rs +++ b/src/trussed_auth_impl/data.rs @@ -27,6 +27,7 @@ use serde::{Deserialize, Serialize}; use serde_byte_array::ByteArray; use sha2::Sha256; use trussed::{ + api::NotBefore, platform::CryptoRng, service::{Filestore, RngCore}, types::{Bytes, Location, Path, PathBuf}, @@ -611,7 +612,7 @@ pub(crate) fn delete_all_pins>( ) -> Result<(), Error> { debug!("Deleting all pins"); while let Some((entry, _)) = fs - .read_dir_first(path!(""), location, None) + .read_dir_first(path!(""), location, &NotBefore::None) .map_err(|_| Error::ReadFailed)? { debug!("Deleting {}", entry.path());