From 59960eab5370477c809babdbfae9668dfa845e2d Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Mon, 17 Jul 2017 00:56:06 +0200 Subject: gpg4libre: search for _all_ local keys in getCertificate() Otherwise, newly-imported ones will not show up, which is bad when trying to figure out how much we trust a key in DocumentDigitalSignatures::ImplVerifySignatures() Change-Id: I771cf71b5e0ddb5cc76db94d7ada4c5291fe56f1 Reviewed-on: https://gerrit.libreoffice.org/40023 Reviewed-by: Thorsten Behrens Tested-by: Thorsten Behrens --- xmlsecurity/source/gpg/SecurityEnvironment.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/gpg/SecurityEnvironment.cxx b/xmlsecurity/source/gpg/SecurityEnvironment.cxx index 181be5b07c6d..370b5e5a2bcd 100644 --- a/xmlsecurity/source/gpg/SecurityEnvironment.cxx +++ b/xmlsecurity/source/gpg/SecurityEnvironment.cxx @@ -109,7 +109,7 @@ Reference< XCertificate > SecurityEnvironmentGpg::getCertificate( const OUString throw RuntimeException("Base64 decode failed"); m_ctx->setKeyListMode(GPGME_KEYLIST_MODE_LOCAL); - GpgME::Error err = m_ctx->startKeyListing("", true); + GpgME::Error err = m_ctx->startKeyListing("", false); while (!err) { GpgME::Key k = m_ctx->nextKey(err); if (err) -- cgit