Don't expect data in the response to SELECT.

This commit is contained in:
Heiko Schaefer 2021-07-07 00:30:31 +02:00
parent d1531de4f7
commit efe88e3582

View file

@ -286,7 +286,7 @@ impl CardBase {
/// Open connection to a specific card and select the openpgp applet /// Open connection to a specific card and select the openpgp applet
fn open_card(card: Card) -> Result<Self, OpenpgpCardError> { fn open_card(card: Card) -> Result<Self, OpenpgpCardError> {
let select_openpgp = commands::select_openpgp(); let select_openpgp = commands::select_openpgp();
let resp = apdu::send_command(&card, select_openpgp, true, None)?; let resp = apdu::send_command(&card, select_openpgp, false, None)?;
if resp.is_ok() { if resp.is_ok() {
// read and cache "application related data" // read and cache "application related data"