Add an example config entry for PIV cards and remove a card matching black hole

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2856 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2006-02-23 11:49:22 +00:00
parent 9213a29a34
commit 530dc0916d
2 changed files with 10 additions and 3 deletions

View File

@ -215,6 +215,13 @@ app default {
# force_protocol = "t0";
# }
# PIV cards need an entry similar to this one:
# card_atr 3B:7D:96:00:00:80:31:80:65:B0:83:11:00:AC:83:00:90:00 {
# name = "PIV-II";
# driver = "piv";
# pkcs15emu = "PIV-II";
# }
# Estonian ID card and Micardo driver currently play together with T=0 only.
# In theory only the 'cold' ATR should be specified, as T=0 will be the preferred
# protocol once you boot it up with T=0, but be paranoid.

View File

@ -1302,17 +1302,17 @@ static int piv_match_card(sc_card_t *card)
{
SC_FUNC_CALLED(card->ctx,1);
/* dee need to look at AID */
return 1; /* always match */
return 0; /* never match */
}
static int piv_init(sc_card_t *card)
{
int r;
unsigned long flags;
unsigned long flags;
struct piv_private_data *priv;
SC_FUNC_CALLED(card->ctx,1);
SC_FUNC_CALLED(card->ctx,1);
priv = (struct piv_private_data *) calloc(1, sizeof(struct piv_private_data));
if (!priv)