List key certifications

Set context KeyListMode to ::Signatures | ::Validate.
List certification on public key only.
This commit is contained in:
SET
2020-11-07 12:21:49 +01:00
parent de5f765688
commit ffd9692504
2 changed files with 7 additions and 3 deletions

View File

@@ -17,6 +17,9 @@
GpgMEWorker::GpgMEWorker()
{
m_ctx = Context::createForProtocol(Protocol::OpenPGP);
// Allow to list key certifications
m_ctx->setKeyListMode(GpgME::KeyListMode::Signatures
| GpgME::KeyListMode::Validate);
m_ppp = NULL;
}