diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-10 09:04:03 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-10 09:50:29 +0200 |
commit | 86bc72072ece83c3560dbf874d6469f771c95289 (patch) | |
tree | e0cf7dcd46357f9a58692f8924e34eb40e26318d /xmlsecurity/source/framework/signaturecreatorimpl.cxx | |
parent | 0e8208057d098f961a62efa5318a80b0d3372d2a (diff) |
xmlsecurity: work with impl directly in SignatureEngine::startEngine()
The only implementation of css::xml::crypto::XXMLSignatureTemplate is
XMLSignatureTemplateImpl, so work with that directly instead of going
via UNO.
Change-Id: I85e2169a909b689620c2ce125a9653f9a6696f45
Reviewed-on: https://gerrit.libreoffice.org/40950
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/framework/signaturecreatorimpl.cxx')
-rw-r--r-- | xmlsecurity/source/framework/signaturecreatorimpl.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xmlsecurity/source/framework/signaturecreatorimpl.cxx b/xmlsecurity/source/framework/signaturecreatorimpl.cxx index b94a97583018..be94d840f525 100644 --- a/xmlsecurity/source/framework/signaturecreatorimpl.cxx +++ b/xmlsecurity/source/framework/signaturecreatorimpl.cxx @@ -81,17 +81,12 @@ void SignatureCreatorImpl::notifyResultListener() const xSignatureCreationResultListener->signatureCreated( m_nSecurityId, m_nStatus ); } -void SignatureCreatorImpl::startEngine( const cssu::Reference< - cssxc::XXMLSignatureTemplate >& - xSignatureTemplate) +void SignatureCreatorImpl::startEngine(const rtl::Reference<XMLSignatureTemplateImpl>& xSignatureTemplate) /****** SignatureCreatorImpl/startEngine ************************************* * * NAME * startEngine -- generates the signature. * - * SYNOPSIS - * startEngine( xSignatureTemplate ); - * * FUNCTION * generates the signature element, then if succeeds, updates the link * of old template element to the new signature element in @@ -105,7 +100,7 @@ void SignatureCreatorImpl::startEngine( const cssu::Reference< cssu::Reference< cssxc::XXMLSignatureTemplate > xResultTemplate; try { - xResultTemplate = m_xXMLSignature->generate(xSignatureTemplate, m_xSecurityEnvironment); + xResultTemplate = m_xXMLSignature->generate(css::uno::Reference<css::xml::crypto::XXMLSignatureTemplate>(xSignatureTemplate.get()), m_xSecurityEnvironment); m_nStatus = xResultTemplate->getStatus(); } catch( cssu::Exception& ) |