Don't expect data in the response to SELECT.
This commit is contained in:
parent
d1531de4f7
commit
efe88e3582
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue