Kaydet (Commit) 6cf3ef82 authored tarafından Miklos Vajna's avatar Miklos Vajna

xmlsecurity: can hold UriBindingHelper by rtl::Reference

... in XMLSignatureHelper and XSecController

Change-Id: Ie3817684c9ed9ed8a222e3ba56c8fbc389a68071
Reviewed-on: https://gerrit.libreoffice.org/44193Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst c3965b1c
......@@ -28,10 +28,10 @@
#include <svl/sigstruct.hxx>
#include "xsecctl.hxx"
#include "xmlsecuritydllapi.h"
#include "xmlsignaturehelper.hxx"
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/xml/sax/XWriter.hpp>
#include <com/sun/star/xml/crypto/XUriBinding.hpp>
#include <com/sun/star/xml/crypto/XSEInitializer.hpp>
#include <com/sun/star/xml/crypto/sax/XSignatureCreationResultListener.hpp>
#include <com/sun/star/xml/crypto/sax/XSignatureVerifyResultListener.hpp>
......@@ -66,7 +66,7 @@ class XMLSECURITY_DLLPUBLIC XMLSignatureHelper
{
private:
css::uno::Reference< css::uno::XComponentContext > mxCtx;
css::uno::Reference< css::xml::crypto::XUriBinding > mxUriBinding;
rtl::Reference<UriBindingHelper> mxUriBinding;
rtl::Reference<XSecController> mpXSecController;
bool mbError;
......
......@@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_XMLSECURITY_SOURCE_HELPER_XMLSIGNATUREHELPER2_HXX
#define INCLUDED_XMLSECURITY_SOURCE_HELPER_XMLSIGNATUREHELPER2_HXX
#ifndef INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER2_HXX
#define INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER2_HXX
#include <tools/link.hxx>
#include <rtl/ustring.hxx>
......@@ -54,6 +54,6 @@ public:
static css::uno::Reference < css::io::XInputStream > OpenInputStream( const css::uno::Reference < css::embed::XStorage >& rxStore, const OUString& rURI );
};
#endif // INCLUDED_XMLSECURITY_SOURCE_HELPER_XMLSIGNATUREHELPER2_HXX
#endif // INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER2_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -41,11 +41,12 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/ref.hxx>
#include <cppuhelper/implbase.hxx>
#include <vector>
#include "xmlsignaturehelper2.hxx"
#define NS_XMLDSIG "http://www.w3.org/2000/09/xmldsig#"
#define NS_DC "http://purl.org/dc/elements/1.1/"
#define NS_XD "http://uri.etsi.org/01903/v1.3.2#"
......@@ -219,7 +220,7 @@ public:
/*
* An xUriBinding is provided to map Uris to XInputStream interfaces.
*/
css::uno::Reference< css::xml::crypto::XUriBinding > m_xUriBinding;
rtl::Reference<UriBindingHelper> m_xUriBinding;
private:
......@@ -289,10 +290,7 @@ public:
sal_Int32 getNewSecurityId( );
void startMission( const css::uno::Reference<
css::xml::crypto::XUriBinding >& xUriBinding,
const css::uno::Reference<
css::xml::crypto::XXMLSecurityContext >& xSecurityContext );
void startMission(const rtl::Reference<UriBindingHelper>& xUriBinding, const css::uno::Reference<css::xml::crypto::XXMLSecurityContext>& xSecurityContext);
void setSAXChainConnector(const css::uno::Reference< css::lang::XInitialization >& xInitialization);
......
......@@ -22,7 +22,7 @@
#include <documentsignaturehelper.hxx>
#include <xsecctl.hxx>
#include "xmlsignaturehelper2.hxx"
#include <xmlsignaturehelper2.hxx>
#include <tools/stream.hxx>
#include <tools/datetime.hxx>
......
......@@ -18,7 +18,7 @@
*/
#include <xmlsignaturehelper.hxx>
#include "xmlsignaturehelper2.hxx"
#include <xmlsignaturehelper2.hxx>
#include <tools/solar.h>
#include <unotools/streamhelper.hxx>
......
......@@ -43,6 +43,7 @@
#include <comphelper/ofopxmlhelper.hxx>
#include <sax/tools/converter.hxx>
#include "ooxmlsecexporter.hxx"
#include <xmlsignaturehelper2.hxx>
namespace cssu = com::sun::star::uno;
namespace cssl = com::sun::star::lang;
......@@ -410,9 +411,7 @@ sal_Int32 XSecController::getNewSecurityId( )
return nId;
}
void XSecController::startMission(
const cssu::Reference< cssxc::XUriBinding >& xUriBinding,
const cssu::Reference< cssxc::XXMLSecurityContext >& xSecurityContext )
void XSecController::startMission(const rtl::Reference<UriBindingHelper>& xUriBinding, const cssu::Reference< cssxc::XXMLSecurityContext >& xSecurityContext )
/****** XSecController/startMission *******************************************
*
* NAME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment