gemsafeV1: remove redundant match card call to allow for opensc.conf match

At the point when gemsafe_match_card is called, the card type is already known,
either because of a previous match at card.c, or because it is forced at opensc.conf.

With this redundant match it's not possible to force selection on opensc.conf.

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
This commit is contained in:
Nuno Goncalves 2019-05-25 11:50:33 +02:00 committed by Frank Morgner
parent 3a192e2c87
commit 0322401aae
1 changed files with 23 additions and 26 deletions

View File

@ -199,8 +199,6 @@ static int gemsafe_init(struct sc_card *card)
card->lock_count--;
/* set the supported algorithm */
r = gemsafe_match_card(card);
if (r > 0) {
unsigned long flags;
flags = SC_ALGORITHM_RSA_PAD_PKCS1;
@ -229,7 +227,6 @@ static int gemsafe_init(struct sc_card *card)
_sc_card_add_rsa_alg(card, 512, flags, 0);
}
}
card->caps |= SC_CARD_CAP_ISO7816_PIN_INFO;
card->drv_data = exdata;