Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XSECW32Config.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  * 
00020  * Configuration file for Windows platform
00021  *
00022  * Needs to be modified by hand
00023  *
00024  * Author(s): Berin Lautenbach
00025  *
00026  * $Id: XSECW32Config.hpp,v 1.27 2005/06/11 10:55:33 blautenb Exp $
00027  *
00028  */
00029 
00030 #include <xercesc/util/XercesVersion.hpp>
00031 
00032 #define XSEC_VERSION         "1.2.0"
00033 #define XSEC_VERSION_MAJOR   1
00034 #define XSEC_VERSION_MEDIUM  2
00035 #define XSEC_VERSION_MINOR   0
00036 
00037 /*
00038  * Because we don't have a configure script, we need to rely on version
00039  * numbers to understand library idiosycracies
00040  */
00041 
00042 #if (XERCES_VERSION_MAJOR >= 2) && (XERCES_VERSION_MINOR >= 3)
00043 /* 
00044  * As of version 2.3, xerces requires a version parameter in XMLFormatter
00045  * constructors
00046  */
00047 #   define XSEC_XERCES_FORMATTER_REQUIRES_VERSION 1
00048 
00049  /* 2.3 and above use a user defined Memory Manager.  In some cases, this
00050    actually needs to be passed to functions
00051 */
00052 
00053 #   define XSEC_XERCES_REQUIRES_MEMMGR 1
00054 
00055 /* Does XMLString::release() exist */
00056 
00057 #define XSEC_XERCES_XMLSTRING_HAS_RELEASE 1
00058 
00059 /* Is it possible to setIdAttributes? - DOM level 3 call */
00060 
00061 #define XSEC_XERCES_HAS_SETIDATTRIBUTE 1
00062 
00063 #else
00064 /*
00065  * In version 2.2, the XMLUri class was broken for relative URI de-referencing
00066  */
00067 #   define XSEC_XERCES_BROKEN_XMLURI 1
00068 #endif
00069 
00070 
00071 
00072 /*
00073  * The following defines whether Xalan integration is required.
00074  *
00075  * Xalan is used for XSLT and complex XPath processing.
00076  * Activate this #define if Xalan is not required (or desired)
00077  */
00078 
00079 /* #define XSEC_NO_XALAN */
00080 
00081 #if !defined (XSEC_NO_XALAN)
00082 
00083 #   include <xalanc/Include/XalanVersion.hpp>
00084 
00085 #   if (_XALAN_VERSION <= 10800)
00086 #       define XSEC_XSLEXCEPTION_RETURNS_DOMSTRING  1
00087 #   endif
00088 #   if (_XALAN_VERSION >= 10900)
00089         
00090         /* 1.9 and above have XSLException::getType() returns XalanDOMChar *, not
00091             XalanDOMString
00092         */
00093 
00094 #       undef XSEC_XSLEXCEPTION_RETURNS_DOMSTRING
00095 
00096         /* 1.9 and above do not take a XercesDOMSupport as input to the ctor */
00097 
00098 #       undef XSEC_XERCESPARSERLIAISON_REQS_DOMSUPPORT
00099 
00100         /* 1.9 and above require a NodeRefList as input to XPathEvaluator::
00101            selectNodeList 
00102         */
00103 
00104 #       define XSEC_SELECTNODELIST_REQS_NODEREFLIST
00105 
00106         /* 1.9 and above use MemoryManager for the XPath Function classes
00107         */
00108 
00109 #       define XSEC_XALAN_REQS_MEMORYMANAGER
00110 #   else
00111         /* 1.9 and above have XSLException::getType() returns XalanDOMChar *, not
00112             XalanDOMString
00113         */
00114 
00115 #       define XSEC_XSLEXCEPTION_RETURNS_DOMSTRING 1
00116 
00117         /* 1.9 and above do not take a XercesDOMSupport as input to the ctor */
00118 
00119 #       define XSEC_XERCESPARSERLIAISON_REQS_DOMSUPPORT
00120 
00121         /* 1.9 and above require a NodeRefList as input to XPathEvaluator::
00122            selectNodeList 
00123         */
00124 
00125 #       undef XSEC_SELECTNODELIST_REQS_NODEREFLIST
00126 
00127         /* 1.9 and above use MemoryManager for the XPath Function classes
00128         */
00129 
00130 #       undef XSEC_XALAN_REQS_MEMORYMANAGER
00131 
00132 #   endif
00133 
00134 #endif
00135 
00136 /*
00137  * Define presence of cryptographic providers
00138  */
00139 
00140 #define HAVE_OPENSSL 1
00141 
00142 #define HAVE_WINCAPI 1
00143 
00144 
00145 /*
00146  * Some settings for OpenSSL if we have it
00147  *
00148  */
00149 
00150 #if defined (HAVE_OPENSSL)
00151 
00152 #   include <openssl/opensslv.h>
00153 #   if (OPENSSL_VERSION_NUMBER >= 0x00907000)
00154 
00155 #       define XSEC_OPENSSL_CONST_BUFFERS
00156 #       define XSEC_OPENSSL_HAVE_AES
00157 #       define XSEC_OPENSSL_CANSET_PADDING
00158 #       define XSEC_OPENSSL_HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
00159 #   endif
00160 #   if (OPENSSL_VERSION_NUMBER >= 0x00908000)
00161 #       define XSEC_OPENSSL_D2IX509_CONST_BUFFER
00162 #   endif
00163 
00164 #endif
00165 
00166 /*
00167  * Macros used to determine what header files exist on this
00168  * system
00169  */
00170 
00171 /* Posix unistd.h */
00172 /* #define HAVE_UNISTD_H */
00173 
00174 /* Windows direct.h */
00175 #define HAVE_DIRECT_H 1
00176 
00177 

Generated on Sun Jul 3 17:37:28 2005 for XML-Security-C by  doxygen 1.4.2