Kaydet (Commit) ec52e5e5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Consolidate XMLSEC_NO_SIZE_T setting in xmlsecurity/xmlsec-wrapper.h

...so all xmlsec/*.h includes are bundled there now (except, for pragmatic
reasons, the xmlsec/mscrypto/*.h ones that unconditionally include windows.h and
only work on Windows).

Change-Id: I33e642f4f6a2e40edd6950af7f209c8b76c6e5fe
üst 3b006a10
/* -*- 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 INCLUDED_XMLSECURITY_XMLSEC_WRAPPER_H
#define INCLUDED_XMLSECURITY_XMLSEC_WRAPPER_H
#include "sal/config.h"
#include "sal/types.h"
// Cf. xmlsec's configure.in:
#if SAL_TYPES_SIZEOFPOINTER != 4
#define XMLSEC_NO_SIZE_T
#endif
#include "xmlsec/base64.h"
#include "xmlsec/bn.h"
#include "xmlsec/crypto.h"
#include "xmlsec/errors.h"
#include "xmlsec/io.h"
#include "xmlsec/keysmngr.h"
#include "xmlsec/strings.h"
#include "xmlsec/xmldsig.h"
#include "xmlsec/xmlenc.h"
#include "xmlsec/xmlsec.h"
#include "xmlsec/xmltree.h"
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -20,13 +20,7 @@ ...@@ -20,13 +20,7 @@
#include <xmlsecurity/biginteger.hxx> #include <xmlsecurity/biginteger.hxx>
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include <xmlsec/xmlsec.h>
#include <xmlsec/bn.h>
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::uno ;
......
...@@ -23,13 +23,7 @@ ...@@ -23,13 +23,7 @@
*/ */
#include "errorcallback.hxx" #include "errorcallback.hxx"
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include "xmlsec/xmlsec.h"
#include "xmlsec/errors.h"
using namespace ::com::sun::star::xml::crypto; using namespace ::com::sun::star::xml::crypto;
......
...@@ -35,16 +35,11 @@ ...@@ -35,16 +35,11 @@
#include "x509certificate_mscryptimpl.hxx" #include "x509certificate_mscryptimpl.hxx"
#include <comphelper/servicehelper.hxx> #include <comphelper/servicehelper.hxx>
#include <xmlsec/xmlsec.h> #include "xmlsecurity/xmlsec-wrapper.h"
#include <xmlsec/keysmngr.h> #include "xmlsec/mscrypto/akmngr.h"
#include <xmlsec/crypto.h>
#include <xmlsec/base64.h>
#include <xmlsecurity/biginteger.hxx> #include <xmlsecurity/biginteger.hxx>
#include "xmlsec/keysmngr.h"
#include "xmlsec/mscrypto/akmngr.h"
#include <rtl/locale.h> #include <rtl/locale.h>
#include <osl/nlsupport.h> #include <osl/nlsupport.h>
#include <osl/process.h> #include <osl/process.h>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/lang/XUnoTunnel.hpp>
#include <list> #include <list>
#include "xmlsec/xmlsec.h" #include "xmlsecurity/xmlsec-wrapper.h"
#include "sal/types.h" #include "sal/types.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "securityenvironment_mscryptimpl.hxx" #include "securityenvironment_mscryptimpl.hxx"
#include "xmlsec/strings.h" #include "xmlsecurity/xmlsec-wrapper.h"
#include "xmlsec/mscrypto/app.h" #include "xmlsec/mscrypto/app.h"
namespace cssu = com::sun::star::uno; namespace cssu = com::sun::star::uno;
......
...@@ -29,10 +29,7 @@ ...@@ -29,10 +29,7 @@
#include "securityenvironment_mscryptimpl.hxx" #include "securityenvironment_mscryptimpl.hxx"
#include "errorcallback.hxx" #include "errorcallback.hxx"
#include "xmlsec/xmlsec.h" #include "xmlsecurity/xmlsec-wrapper.h"
#include "xmlsec/xmltree.h"
#include "xmlsec/xmlenc.h"
#include "xmlsec/crypto.h"
#ifdef UNX #ifdef UNX
#define stricmp strcasecmp #define stricmp strcasecmp
......
...@@ -23,9 +23,7 @@ ...@@ -23,9 +23,7 @@
#include "xmlsecuritycontext_mscryptimpl.hxx" #include "xmlsecuritycontext_mscryptimpl.hxx"
#include "xmlstreamio.hxx" #include "xmlstreamio.hxx"
#include "xmlsec/xmlsec.h" #include "xmlsecurity/xmlsec-wrapper.h"
#include "xmlsec/keysmngr.h"
#include "xmlsec/crypto.h"
#include "xmlsec/mscrypto/akmngr.h" #include "xmlsec/mscrypto/akmngr.h"
using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::uno ;
......
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
#include "securityenvironment_mscryptimpl.hxx" #include "securityenvironment_mscryptimpl.hxx"
#include "xmlstreamio.hxx" #include "xmlstreamio.hxx"
#include "errorcallback.hxx" #include "errorcallback.hxx"
#include "xmlsec/xmlsec.h" #include "xmlsecurity/xmlsec-wrapper.h"
#include "xmlsec/xmldsig.h"
#include "xmlsec/crypto.h"
using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ; using namespace ::com::sun::star::lang ;
......
...@@ -29,16 +29,7 @@ ...@@ -29,16 +29,7 @@
#include <comphelper/servicehelper.hxx> #include <comphelper/servicehelper.hxx>
#include "../diagnose.hxx" #include "../diagnose.hxx"
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include <xmlsec/xmlsec.h>
#include <xmlsec/keysmngr.h>
#include <xmlsec/crypto.h>
#include <xmlsec/base64.h>
#include <xmlsec/strings.h>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
......
...@@ -44,12 +44,7 @@ ...@@ -44,12 +44,7 @@
#include "certdb.h" #include "certdb.h"
#include "list" #include "list"
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include "xmlsec/xmlsec.h"
class SecurityEnvironment_NssImpl : public ::cppu::WeakImplHelper4< class SecurityEnvironment_NssImpl : public ::cppu::WeakImplHelper4<
::com::sun::star::xml::crypto::XSecurityEnvironment , ::com::sun::star::xml::crypto::XSecurityEnvironment ,
......
...@@ -28,15 +28,7 @@ ...@@ -28,15 +28,7 @@
#include "securityenvironment_nssimpl.hxx" #include "securityenvironment_nssimpl.hxx"
#include "errorcallback.hxx" #include "errorcallback.hxx"
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include "xmlsec/xmlsec.h"
#include "xmlsec/xmltree.h"
#include "xmlsec/xmlenc.h"
#include "xmlsec/crypto.h"
using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ; using namespace ::com::sun::star::lang ;
......
...@@ -24,14 +24,7 @@ ...@@ -24,14 +24,7 @@
#include "xmlsecuritycontext_nssimpl.hxx" #include "xmlsecuritycontext_nssimpl.hxx"
#include "xmlstreamio.hxx" #include "xmlstreamio.hxx"
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include "xmlsec/xmlsec.h"
#include "xmlsec/keysmngr.h"
#include "xmlsec/crypto.h"
using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ; using namespace ::com::sun::star::lang ;
......
...@@ -31,14 +31,7 @@ ...@@ -31,14 +31,7 @@
#include "xmlstreamio.hxx" #include "xmlstreamio.hxx"
#include "errorcallback.hxx" #include "errorcallback.hxx"
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include "xmlsec/xmlsec.h"
#include "xmlsec/xmldsig.h"
#include "xmlsec/crypto.h"
using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ; using namespace ::com::sun::star::lang ;
......
...@@ -26,12 +26,7 @@ ...@@ -26,12 +26,7 @@
#include "rtl/uri.hxx" #include "rtl/uri.hxx"
#include <libxml/uri.h> #include <libxml/uri.h>
#include <sal/types.h> #include "xmlsecurity/xmlsec-wrapper.h"
//For reasons that escape me, this is what xmlsec does when size_t is not 4
#if SAL_TYPES_SIZEOFPOINTER != 4
# define XMLSEC_NO_SIZE_T
#endif
#include <xmlsec/io.h>
#define XMLSTREAMIO_INITIALIZED 0x01 #define XMLSTREAMIO_INITIALIZED 0x01
#define XMLSTREAMIO_REGISTERED 0x02 #define XMLSTREAMIO_REGISTERED 0x02
......
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