summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-05 09:29:50 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-06-05 10:57:42 +0200
commit57464ef8b985a47ce0b9682722f01c8913785f74 (patch)
tree7320047216151fd4fad9cf1dca97da049460430c /filter
parent41541c2c1b07cf6d48a3ea2986edcb0bb465e6db (diff)
Related: tdf#113278 PDF export: improve selection of signing certificate
The action should be "select", not "sign", since we just select the certificate in the dialog. Signing will only happen later after the pdf export is almost done. Ignore gpg certificates which are not handled during pdf export. This does not implement the request in the bug, but at least hides certificates which don't work. Change-Id: Ib12f2e38bf864b08838e5970cebdba9ff20603bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95573 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'filter')
-rw-r--r--filter/source/pdf/impdialog.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 4d9e7a28b8ec..31f712c47edf 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -1533,7 +1533,8 @@ IMPL_LINK_NOARG(ImpPDFTabSigningPage, ClickmaPbSignCertSelect, weld::Button&, vo
// The use may provide a description while choosing a certificate.
OUString aDescription;
- maSignCertificate = xSigner->chooseCertificate(aDescription);
+ maSignCertificate = xSigner->selectSigningCertificateWithType(
+ security::CertificateKind::CertificateKind_X509, aDescription);
if (!maSignCertificate.is())
return;