From efe88e3582773480b1c9a3645af6a52c1a5b8226 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Wed, 7 Jul 2021 00:30:31 +0200 Subject: [PATCH] Don't expect data in the response to SELECT. --- openpgp-card/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index d2fea40..d3e269f 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -286,7 +286,7 @@ impl CardBase { /// Open connection to a specific card and select the openpgp applet fn open_card(card: Card) -> Result { 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() { // read and cache "application related data"