card-cardos: Support PIN queries for CardOS 5

This commit is contained in:
Frank Morgner 2016-12-15 15:15:16 +01:00
parent 5a9d7e1c42
commit b577e8edbc
1 changed files with 5 additions and 0 deletions

View File

@ -228,6 +228,11 @@ static int cardos_init(sc_card_t *card)
_sc_card_add_rsa_alg(card, 2048, flags, 0);
}
if (card->type == SC_CARD_TYPE_CARDOS_V5_0) {
/* Starting with CardOS 5, the card supports PIN query commands */
card->caps |= SC_CARD_CAP_ISO7816_PIN_INFO;
}
return 0;
}