Skip to content

Commit

Permalink
Improve compatibility with some cards (open-eid#1272)
Browse files Browse the repository at this point in the history
IB-8125

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Jul 8, 2024
1 parent 36ab447 commit 5da03fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions client/QSmartCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,10 @@ QString QSmartCardData::typeString(QSmartCardData::PinType type)
return {};
}



const QByteArray Card::MASTER_FILE = APDU("00A4000C");// 00"); // Compatibilty for some cards
const QByteArray Card::MASTER_FILE = APDU("00A4000C");
const QByteArray Card::MUTUAL_AUTH = APDU("00880000 00 00");
const QByteArray Card::CHANGE = APDU("00240000 00");
const QByteArray Card::READBINARY = APDU("00B00000 00");
const QByteArray Card::READRECORD = APDU("00B20004 00");
const QByteArray Card::REPLACE = APDU("002C0000 00");
const QByteArray Card::VERIFY = APDU("00200000 00");

Expand Down Expand Up @@ -171,7 +168,7 @@ bool IDEMIACard::loadPerso(QPCSCReader *reader, QSmartCardDataPrivate *d) const
return false;
if(d->data.isEmpty() && reader->transfer(APDU("00A4010C025000")))
{
QByteArray cmd = APDU("00A4010C025001");
QByteArray cmd = APDU("00A4020C025001");
for(char data = 1; data <= 8; ++data)
{
cmd[6] = data;
Expand Down
1 change: 0 additions & 1 deletion client/QSmartCard_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class Card
static const QByteArray MUTUAL_AUTH;
static const QByteArray CHANGE;
static const QByteArray READBINARY;
static const QByteArray READRECORD;
static const QByteArray REPLACE;
static const QByteArray VERIFY;
};
Expand Down

0 comments on commit 5da03fa

Please sign in to comment.