Remove Le-hack
This commit is contained in:
parent
1f77472746
commit
7ee737068b
1 changed files with 1 additions and 6 deletions
|
@ -460,12 +460,7 @@ impl OpenPGPCard {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: this is a temporary hack!
|
let resp = apdu::send_command(&self.card, commands::get_algo_list(), Le::Short, Some(self))?;
|
||||||
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))?;
|
|
||||||
resp.check_ok()?;
|
resp.check_ok()?;
|
||||||
|
|
||||||
let ai = AlgoInfo::try_from(resp.data()?)?;
|
let ai = AlgoInfo::try_from(resp.data()?)?;
|
||||||
|
|
Loading…
Reference in a new issue