[API CHANGE] offapi: remove unused css.security.SerialNumberAdapter
This is mostly just the offapi/ part, more C++ code can be removed in xmlsecurity/ after this. It seems to be unlikely that this non-published service was used by 3rd-party code, since it was specific to other xmlsecurity/ code, not generic functionality that could be useful in other contexts. Change-Id: I0d798577a42445e65a4c5178fcb4464ea03bc56e Reviewed-on: https://gerrit.libreoffice.org/46442 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
@@ -359,7 +359,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/sdbc,\
|
||||
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/security,\
|
||||
CertificateContainer \
|
||||
DocumentDigitalSignatures \
|
||||
SerialNumberAdapter \
|
||||
))
|
||||
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/setup,\
|
||||
UpdateCheck \
|
||||
@@ -3336,7 +3335,6 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/security,\
|
||||
XCertificateExtension \
|
||||
XDocumentDigitalSignatures \
|
||||
XSanExtension \
|
||||
XSerialNumberAdapter \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/sheet/opencl,\
|
||||
|
@@ -1,47 +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/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef __com_sun_star_security_SerialNumberAdapter_idl_
|
||||
#define __com_sun_star_security_SerialNumberAdapter_idl_
|
||||
|
||||
|
||||
module com { module sun { module star { module security {
|
||||
interface XSerialNumberAdapter; };
|
||||
}; }; };
|
||||
|
||||
|
||||
module com { module sun { module star { module security {
|
||||
|
||||
|
||||
/** provides conversion services for Serial Numbers.
|
||||
|
||||
<p>An implementation of this service enables the conversion of certificate
|
||||
serial number to and from a string</p>
|
||||
|
||||
@since OOo 3.1
|
||||
*/
|
||||
|
||||
service SerialNumberAdapter : XSerialNumberAdapter;
|
||||
|
||||
|
||||
}; }; }; };
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
@@ -1,50 +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/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef __com_sun_star_security_XSerialNumberAdapter_idl_
|
||||
#define __com_sun_star_security_XSerialNumberAdapter_idl_
|
||||
|
||||
#include <com/sun/star/uno/XInterface.idl>
|
||||
|
||||
module com { module sun { module star { module security {
|
||||
|
||||
/**
|
||||
* Interface of Certificate Serial Number Converter
|
||||
*
|
||||
* <p>This interface converts a certificate serial number to and from a string</p>
|
||||
*/
|
||||
interface XSerialNumberAdapter : com::sun::star::uno::XInterface
|
||||
{
|
||||
/**
|
||||
* Convert the SerialNumber to a string
|
||||
*/
|
||||
string toString( [in]sequence< byte > SerialNumber );
|
||||
|
||||
/**
|
||||
* Convert the SerialNumber to a sequence
|
||||
*/
|
||||
sequence< byte > toSequence( [in]string SerialNumber );
|
||||
|
||||
} ;
|
||||
|
||||
} ; } ; } ; } ;
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
@@ -20,7 +20,6 @@
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <com/sun/star/security/XSerialNumberAdapter.hpp>
|
||||
#include <com/sun/star/uno/Reference.hxx>
|
||||
#include <com/sun/star/uno/RuntimeException.hpp>
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
@@ -38,8 +37,7 @@
|
||||
namespace {
|
||||
|
||||
class Service:
|
||||
public cppu::WeakImplHelper<
|
||||
css::lang::XServiceInfo, css::security::XSerialNumberAdapter >
|
||||
public cppu::WeakImplHelper<css::lang::XServiceInfo>
|
||||
{
|
||||
public:
|
||||
Service() {}
|
||||
@@ -57,14 +55,6 @@ private:
|
||||
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
|
||||
{ return xml_security::serial_number_adapter::serviceNames(); }
|
||||
|
||||
virtual OUString SAL_CALL toString(
|
||||
css::uno::Sequence< sal_Int8 > const & SerialNumber) override
|
||||
{ return xmlsecurity::bigIntegerToNumericString(SerialNumber); }
|
||||
|
||||
virtual css::uno::Sequence< sal_Int8 > SAL_CALL toSequence(
|
||||
OUString const & SerialNumber) override
|
||||
{ return xmlsecurity::numericStringToBigInteger(SerialNumber); }
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -19,9 +19,6 @@
|
||||
|
||||
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
|
||||
prefix="xsec_xmlsec" xmlns="http://openoffice.org/2010/uno-components">
|
||||
<implementation name="com.sun.star.comp.security.SerialNumberAdapter">
|
||||
<service name="com.sun.star.security.SerialNumberAdapter"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.xml.security.bridge.xmlsec.SEInitializer_NssImpl">
|
||||
<service name="com.sun.star.xml.crypto.NSSInitializer"/>
|
||||
<service name="com.sun.star.xml.crypto.SEInitializer"/>
|
||||
|
@@ -19,9 +19,6 @@
|
||||
|
||||
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
|
||||
prefix="xsec_xmlsec" xmlns="http://openoffice.org/2010/uno-components">
|
||||
<implementation name="com.sun.star.comp.security.SerialNumberAdapter">
|
||||
<service name="com.sun.star.security.SerialNumberAdapter"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.xml.security.bridge.xmlsec.NSSInitializer_NssImpl">
|
||||
<service name="com.sun.star.xml.crypto.NSSInitializer"/>
|
||||
</implementation>
|
||||
|
Reference in New Issue
Block a user