Issue #161: Can it be possible to trust a certificate like in acrobat?

This commit is contained in:
Jakub Melka 2024-02-03 19:25:43 +01:00
parent 1bf7b724a1
commit 87cedf01dc
2 changed files with 3 additions and 1 deletions

View File

@ -553,7 +553,8 @@ void PDFSidebarWidget::updateSignatures(const std::vector<pdf::PDFSignatureVerif
certRoot->setIcon(0, infoIcon);
pdf::PDFCertificateInfo::KeyUsageFlags keyUsageFlags = currentCertificateInfo.getKeyUsage();
if (keyUsageFlags.testFlag(pdf::PDFCertificateInfo::KeyUsageCertSign))
if (keyUsageFlags.testFlag(pdf::PDFCertificateInfo::KeyUsageCertSign) ||
keyUsageFlags.testFlag(pdf::PDFCertificateInfo::KeyUsageDigitalSignature))
{
m_certificateInfos.push_back(currentCertificateInfo);
certRoot->setData(0, Qt::UserRole, QVariant(static_cast<qint64>(m_certificateInfos.size() - 1)));

View File

@ -1,4 +1,5 @@
CURRENT:
- Issue #161: Can it be possible to trust a certificate like in acrobat?
V: 1.3.7 10.1.2024
- Issue #142: Cannot reach the top