Show subkey and certification algorithms.

Subkey algorithms are shown in a new table column.
Uid signature algorithms are shown in the tooltip text.
This commit is contained in:
SET
2020-11-14 15:03:36 +01:00
parent a721bb0225
commit 5e7df13df0
5 changed files with 11 additions and 1 deletions

View File

@@ -389,6 +389,7 @@ void K7Main::DisplaySubKeys(const WString& fullKeyID, bool secret)
m_ttbSubKeys->addColumn(TR("Expiration"), 150);
m_ttbSubKeys->addColumn(TR("Usage"), 70);
m_ttbSubKeys->addColumn(TR("Secret"), 50);
m_ttbSubKeys->addColumn(TR("Algorithms"), 50);
}
WTreeTableNode * rootNode = new WTreeTableNode(fullKeyID);
rootNode->setChildCountPolicy(ChildCountPolicy::Enabled);
@@ -420,6 +421,9 @@ void K7Main::DisplaySubKeys(const WString& fullKeyID, bool secret)
skNode->setColumnWidget(3, cpp14::make_unique<WText> (usage));
const WString isSecret = sk.isSecret() ? TR("Yes") : TR("No");
skNode->setColumnWidget(4, cpp14::make_unique<WText> (isSecret));
const WString algos = sk.publicKeyAlgorithmAsString() + _SPACE_ + _DASH_
+ _SPACE_ + sk.algoName();
skNode->setColumnWidget(5, cpp14::make_unique<WText> (algos));
rootNode->addChildNode(unique_ptr<WTreeTableNode> (skNode));
}
m_ttbSubKeys->show();