diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-07-17 00:56:06 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-07-17 01:20:57 +0200 |
commit | 59960eab5370477c809babdbfae9668dfa845e2d (patch) | |
tree | 494862f672f0783b3e3f9c544901dfafab7aded2 /xmlsecurity | |
parent | 4f17445c12dc26c4881c4e486215b58d26515f8d (diff) |
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 <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/gpg/SecurityEnvironment.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |