Skip to content

Commit

Permalink
Fix Personal data read (open-eid#1201)
Browse files Browse the repository at this point in the history
IB-7750, IB-7540

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Jul 7, 2023
1 parent 608feee commit b9d99c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/QPKCS11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
template<class Container>
QString toQString(const Container &c)
{
return QString::fromLatin1(QByteArray::fromRawData((const char*)std::data(c), std::size(c)).toUpper());
return QString::fromLatin1((const char*)std::data(c), std::size(c));
}

QByteArray QPKCS11::Private::attribute(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE obj, CK_ATTRIBUTE_TYPE type) const
Expand Down Expand Up @@ -177,7 +177,7 @@ bool QPKCS11::load( const QString &driver )
<< QStringLiteral("%1 (%2.%3)").arg(toQString(info.libraryDescription))
.arg(info.libraryVersion.major).arg(info.libraryVersion.minor) << '\n'
<< "Flags:" << info.flags;
d->isFinDriver = toQString(info.libraryDescription).contains(QLatin1String("MPOLLUX"));
d->isFinDriver = toQString(info.libraryDescription).contains(QLatin1String("MPOLLUX"), Qt::CaseInsensitive);
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion client/widgets/VerifyCert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void VerifyCert::update()
ui->validUntil->setText(tr("The PUK code is located in your envelope"));
ui->validUntil->setHidden(isBlockedPuk);
ui->changePIN->setText(tr("CHANGE PUK"));
ui->changePIN->setHidden(cardData.version() == isBlockedPuk);
ui->changePIN->setHidden(isBlockedPuk);
ui->forgotPinLink->hide();
ui->details->hide();
ui->checkCert->hide();
Expand Down

0 comments on commit b9d99c1

Please sign in to comment.