Skip to content

Commit

Permalink
Disable the Applet V1.8 ATR
Browse files Browse the repository at this point in the history
The V1.8 applet has a few differences to the older applets. This causes
the OpenSC PKCS#11 module to not be able to sign anything with the
Belpic driver on this card.

While the best solution is to implement the required changes to make
this work correctly, for the time being it's better to not confuse users
by claiming we support the card when in reality we don't.
  • Loading branch information
yoe authored and frankmorgner committed Apr 12, 2024
1 parent 10e9099 commit fe2c1c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libopensc/card-belpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ static long t1, t2, tot_read = 0, tot_dur = 0, dur;
static size_t next_idx = (size_t)-1;

static const struct sc_atr_table belpic_atrs[] = {
/* Applet V1.8 */
{ "3B:7F:96:00:00:80:31:80:65:B0:85:04:01:20:12:0F:FF:82:90:00", NULL, NULL, SC_CARD_TYPE_BELPIC_EID, 0, NULL },
/* Applet V1.8 -- disabled, as it requires driver updates which are not yet implemented */
/* { "3B:7F:96:00:00:80:31:80:65:B0:85:04:01:20:12:0F:FF:82:90:00", NULL, NULL, SC_CARD_TYPE_BELPIC_EID, 0, NULL }, */
/* Applet V1.1 */
{ "3B:98:13:40:0A:A5:03:01:01:01:AD:13:11", NULL, NULL, SC_CARD_TYPE_BELPIC_EID, 0, NULL },
/* Applet V1.0 with new EMV-compatible ATR */
Expand Down

0 comments on commit fe2c1c8

Please sign in to comment.