diff --git a/Cargo.toml b/Cargo.toml index 9cde74c..9d9eaec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,4 +45,5 @@ rand = "0.8.4" features = ["dispatch"] [patch.crates-io] -trussed = { git = "https://github.com/trussed-dev/trussed", rev = "55ea391367fce4bf5093ff2d3c79041d7aef0485" } +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/dispatch/ctaphid.rs b/src/dispatch/ctaphid.rs index 60f0c8e..adb931f 100644 --- a/src/dispatch/ctaphid.rs +++ b/src/dispatch/ctaphid.rs @@ -3,8 +3,9 @@ use ctaphid_dispatch::app as ctaphid; #[allow(unused_imports)] use crate::msp; use crate::{Authenticator, TrussedRequirements, UserPresence}; +use trussed::interrupt::InterruptFlag; -impl ctaphid::App for Authenticator +impl ctaphid::App<'static> for Authenticator where UP: UserPresence, T: TrussedRequirements, @@ -41,4 +42,8 @@ where }; Ok(()) } + + fn interrupt(&self) -> Option<&'static InterruptFlag> { + self.trussed.interrupt() + } }