From 5da03fab6cece6ca406ddead40232dfb49cac126 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Mon, 8 Jul 2024 09:04:47 +0300 Subject: [PATCH] Improve compatibility with some cards (#1272) IB-8125 Signed-off-by: Raul Metsma --- client/QSmartCard.cpp | 7 ++----- client/QSmartCard_p.h | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/client/QSmartCard.cpp b/client/QSmartCard.cpp index d9a33c4ad..a65562b65 100644 --- a/client/QSmartCard.cpp +++ b/client/QSmartCard.cpp @@ -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"); @@ -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; diff --git a/client/QSmartCard_p.h b/client/QSmartCard_p.h index 84c5c0905..13780bad1 100644 --- a/client/QSmartCard_p.h +++ b/client/QSmartCard_p.h @@ -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; };