mirror of
https://github.com/trussed-dev/piv-authenticator.git
synced 2026-06-20 04:16:15 -07:00
Remove the unused apdu from the select command
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
+2
-6
@@ -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<const R: usize>(
|
||||
&mut self,
|
||||
_aid: commands::Select<'_>,
|
||||
reply: &mut Data<R>,
|
||||
) -> Result {
|
||||
pub fn select<const R: usize>(&mut self, reply: &mut Data<R>) -> 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!(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user