From 7ee737068be2efb0d2d294da724f181f0d6d563b Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Thu, 1 Jul 2021 04:18:01 +0200 Subject: [PATCH] Remove Le-hack --- openpgp-card/src/lib.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index 8ef1a4c..247366c 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -460,12 +460,7 @@ impl OpenPGPCard { return Ok(None); } - // FIXME: this is a temporary hack! - let eli = self.get_extended_length_information()?; - let ext = eli.is_some() && ec.max_len_special_do > 255; - let ext = if ext { Le::Long } else { Le::Short }; - - let resp = apdu::send_command(&self.card, commands::get_algo_list(), ext, Some(self))?; + let resp = apdu::send_command(&self.card, commands::get_algo_list(), Le::Short, Some(self))?; resp.check_ok()?; let ai = AlgoInfo::try_from(resp.data()?)?;