diff --git a/src/dispatch.rs b/src/dispatch.rs index a2a09ed..b9b2536 100644 --- a/src/dispatch.rs +++ b/src/dispatch.rs @@ -9,7 +9,7 @@ where T: client::Client + client::Ed255 + client::Tdes, { fn select(&mut self, apdu: &Command, reply: &mut response::Data) -> Result { - self.select(apdu, reply) + self.select(reply) } fn deselect(&mut self) { diff --git a/src/lib.rs b/src/lib.rs index 26d9824..163cfe4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,11 +67,7 @@ where // The way apdu-dispatch currently works, this would deselect, resetting security indicators. pub fn deselect(&mut self) {} - pub fn select( - &mut self, - _aid: commands::Select<'_>, - reply: &mut Data, - ) -> Result { + pub fn select(&mut self, reply: &mut Data) -> Result { use piv_types::Algorithms::*; info!("selecting PIV maybe"); @@ -132,7 +128,7 @@ where Command::Verify(verify) => self.verify(verify), Command::ChangeReference(change_reference) => self.change_reference(change_reference), Command::GetData(container) => self.get_data(container, reply), - Command::Select(aid) => self.select(aid, reply), + Command::Select(_aid) => self.select(reply), _ => todo!(), } }