diff --git a/Cargo.toml b/Cargo.toml index 50040b0..bed84af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,6 +40,7 @@ log-error = [] [patch.crates-io] ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "57cb3317878a8593847595319aa03ef17c29ec5b" } trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "51e68500d7601d04f884f5e95567d14b9018a6cb" } +apdu-dispatch = { git = "https://github.com/trussed-dev/apdu-dispatch.git", rev = "915fc237103fcecc29d0f0b73391f19abf6576de" } trussed-se050-backend = { git = "https://github.com/Nitrokey/trussed-se050-backend.git", rev = "3395a5b73241a0a9f14a0715952be6fe7f1e56b0" } iso7816 = { git = "https://github.com/sosthene-nitrokey/iso7816.git", rev = "160ca3bbd8e21ec4e4ee1e0748e1eaa53a45c97f"} se05x = { git = "https://github.com/Nitrokey/se05x.git", rev = "0b77eb6b152d214897696aadf87767fd84ffcb0e"} diff --git a/src/admin.rs b/src/admin.rs index 3da6806..8b62de0 100644 --- a/src/admin.rs +++ b/src/admin.rs @@ -1,6 +1,6 @@ use super::Client as TrussedClient; use apdu_dispatch::iso7816::Status; -use apdu_dispatch::{app as apdu, command, response, Command as ApduCommand}; +use apdu_dispatch::{app as apdu, command, dispatch::Interface, response, Command as ApduCommand}; use cbor_smol::cbor_deserialize; use core::{convert::TryInto, marker::PhantomData, time::Duration}; use ctaphid_dispatch::app::{self as hid, Command as HidCommand, Message}; @@ -378,7 +378,12 @@ where S: AsRef<[u8]>, C: Config, { - fn select(&mut self, _apdu: &ApduCommand, _reply: &mut response::Data) -> apdu::Result { + fn select( + &mut self, + _interface: Interface, + _apdu: &ApduCommand, + _reply: &mut response::Data, + ) -> apdu::Result { Ok(()) }