diff options
Diffstat (limited to 'xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index 2373fb21a735..24aeca30b6f2 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -383,9 +383,11 @@ IMPL_LINK_NOARG(DigitalSignaturesDialog, AddButtonHdl, Button*, void) return; try { - uno::Reference<xml::crypto::XSecurityEnvironment> xSecEnv = maSignatureManager.getSecurityEnvironment(); + std::vector<uno::Reference<xml::crypto::XSecurityEnvironment>> xSecEnvs; + xSecEnvs.push_back(maSignatureManager.getSecurityEnvironment()); + xSecEnvs.push_back(maSignatureManager.getGpgSecurityEnvironment()); - ScopedVclPtrInstance< CertificateChooser > aChooser( this, mxCtx, xSecEnv ); + ScopedVclPtrInstance< CertificateChooser > aChooser( this, mxCtx, xSecEnvs ); if ( aChooser->Execute() == RET_OK ) { sal_Int32 nSecurityId; |