From 007cb08265ebf9c3a41fef0a15bf3ef2c8408cea Mon Sep 17 00:00:00 2001 From: Nicolas Stalder Date: Fri, 15 May 2020 00:19:55 +0200 Subject: [PATCH] Progress: GetData/Verify works, next up: GeneralAuthenticate --- src/class.rs | 6 +----- src/constants.rs | 1 - src/pipe.rs | 3 +-- src/types.rs | 4 +--- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/class.rs b/src/class.rs index 397298c..91cb3c4 100644 --- a/src/class.rs +++ b/src/class.rs @@ -8,11 +8,7 @@ use crate::{ types::{ ApduInterchange, ClassRequest, - packet::{ - self, - RawPacket, - }, - tlv, + packet::RawPacket, }, pipe::Pipe, }; diff --git a/src/constants.rs b/src/constants.rs index 46ccc67..c9c4568 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,6 +1,5 @@ #![allow(non_camel_case_types)] use heapless_bytes::{ - Bytes, consts, Unsigned as _ }; diff --git a/src/pipe.rs b/src/pipe.rs index a1e8bb0..df575bf 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -9,7 +9,6 @@ use crate::{ ApduInterchange, MessageBuffer, packet::{ - self, Chain, Command, DataBlock, @@ -183,7 +182,7 @@ where hprintln!("called piv app").ok(); let command = match iso7816::Command::try_from(&self.message) { Ok(command) => command, - Err(error) => { + Err(_error) => { hprintln!("could not parse command from APDU, ignoring {:?}", &self.message).ok(); return; } diff --git a/src/types.rs b/src/types.rs index 0c10c78..e81543d 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,6 +1,4 @@ -use core::convert::TryInto; - -use cortex_m_semihosting::hprintln; +// use cortex_m_semihosting::hprintln; use heapless_bytes::Bytes; use crate::constants::*;