summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/gpg/GpgComponentFactory.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-03-15 12:31:22 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-03-16 16:57:52 +0000
commit9b6ed11d58b9f9d0310f95f914a3d354fc813b54 (patch)
tree2dd0fffda446c328add362a9c91e68ff78fc9628 /xmlsecurity/source/gpg/GpgComponentFactory.cxx
parente7391ca132a9964dc9d870039a104abec044d357 (diff)
gpg4libre: No need to create separate idl files for gpg services
Change-Id: Ief217cd91e30433c30ac0547d28fb6eab2dc43b0 Reviewed-on: https://gerrit.libreoffice.org/35213 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmlsecurity/source/gpg/GpgComponentFactory.cxx')
-rw-r--r--xmlsecurity/source/gpg/GpgComponentFactory.cxx70
1 files changed, 0 insertions, 70 deletions
diff --git a/xmlsecurity/source/gpg/GpgComponentFactory.cxx b/xmlsecurity/source/gpg/GpgComponentFactory.cxx
deleted file mode 100644
index 3f0f2d1ba8f3..000000000000
--- a/xmlsecurity/source/gpg/GpgComponentFactory.cxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#include "SecurityEnvironment.hxx"
-#include "SEInitializer.hxx"
-#include "XMLSignature.hxx"
-#include "XMLEncryption.hxx"
-#include "XMLSecurityContext.hxx"
-
-#include <cppuhelper/factory.hxx>
-
-using namespace cppu;
-using namespace css::uno;
-using namespace css::lang;
-using namespace css::registry;
-
-extern "C"
-{
-
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL xsec_gpg_component_getFactory( const sal_Char* pImplName , void* pServiceManager , void* /*pRegistryKey*/ )
-{
- void* pRet = nullptr;
- Reference< XSingleServiceFactory > xFactory ;
-
- if( pImplName != nullptr && pServiceManager != nullptr )
- {
-#ifdef XMLSEC_CRYPTO_GPG
- if( SEInitializer_getImplementationName().equalsAscii( pImplName ) )
- {
- xFactory.set( createSingleFactory(
- static_cast< XMultiServiceFactory * >( pServiceManager ),
- OUString::createFromAscii( pImplName ),
- SEInitializer_createInstance, SEInitializer_getSupportedServiceNames() ) );
- }
- else if( XMLSignatureGpg::impl_getImplementationName().equalsAscii( pImplName ) )
- {
- xFactory = XMLSignatureGpg::impl_createFactory( static_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
- }
- else if( XMLSecurityContextGpg::impl_getImplementationName().equalsAscii( pImplName ) )
- {
- xFactory = XMLSecurityContextGpg::impl_createFactory( static_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
- }
- else if( SecurityEnvironmentGpg::impl_getImplementationName().equalsAscii( pImplName ) )
- {
- xFactory = SecurityEnvironmentGpg::impl_createFactory( static_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
- }
- else if( XMLEncryptionGpg::impl_getImplementationName().equalsAscii( pImplName ) )
- {
- xFactory = XMLEncryptionGpg::impl_createFactory( static_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
- }
-#endif
- }
-
- if( xFactory.is() ) {
- xFactory->acquire() ;
- pRet = xFactory.get() ;
- }
-
- return pRet ;
-}
-
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */