Skip to content

Commit

Permalink
Adapt to trussed support for interrupts
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jun 21, 2023
1 parent 5c522a7 commit 203a90d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "676ed8021e8fbd8efafe291c57466708f3d56fb4" }
trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "51e68500d7601d04f884f5e95567d14b9018a6cb" }
4 changes: 2 additions & 2 deletions src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ impl ExtensionImpl<AuthExtension> for AuthBackend {
// FIXME: Have a real implementation from trussed
let mut backend_path = core_ctx.path.clone();
backend_path.push(&PathBuf::from(BACKEND_DIR));
let fs = &mut resources.filestore(&CoreContext::new(backend_path));
let global_fs = &mut resources.filestore(&CoreContext::new(PathBuf::from(BACKEND_DIR)));
let fs = &mut resources.filestore(backend_path);
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)?;
Expand Down

0 comments on commit 203a90d

Please sign in to comment.