summaryrefslogtreecommitdiff
path: root/cui/source/options/optgenrl.cxx
diff options
context:
space:
mode:
authorMoritz Duge <moritz.duge@allotropia.de>2024-08-08 15:16:25 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-08-13 01:09:01 +0200
commit8f9f04297602a29726089227a0903ca177c98f43 (patch)
tree4757863fe60c689dbfa0bbcd3c3d440e5c64e54f /cui/source/options/optgenrl.cxx
parent9383f83b05f3049c350bbc784618da3d6f1a5556 (diff)
tdf#161909: make showing GPG keys only an explicit functionality
Before this change, selecting only GPG keys for ODF encrpytion relied on the fact, that all X.509 implementations (nss+mscrypt) implement listing public keys (getAllCertificates) as a stub. See previous change Ia6b8ecb9 Change-Id: Icb36a4cefd60b94407129ff73fe62f9250bfbee5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171639 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'cui/source/options/optgenrl.cxx')
-rw-r--r--cui/source/options/optgenrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optgenrl.cxx b/cui/source/options/optgenrl.cxx
index c956a9eb1ed8..a9242cc40500 100644
--- a/cui/source/options/optgenrl.cxx
+++ b/cui/source/options/optgenrl.cxx
@@ -334,7 +334,7 @@ IMPL_LINK(SvxGeneralTabPage, ChooseKeyButtonHdl, weld::Button&, rButton, void)
}
else if (m_xEncryptionKeyButton.get() == &rButton)
{
- auto xCerts = xD->chooseEncryptionCertificate();
+ auto xCerts = xD->chooseEncryptionCertificate(css::security::CertificateKind_OPENPGP);
if(xCerts.hasElements())
xCertificate = xCerts[0];
}