You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2017/09/01 20:42:21 UTC
svn commit: r1807005 - in /santuario/xml-security-cpp/trunk: ./ xsec/canon/
xsec/dsig/ xsec/framework/ xsec/samples/ xsec/tools/checksig/
xsec/tools/cipher/ xsec/tools/siginf/ xsec/tools/templatesign/
xsec/tools/txfmout/ xsec/tools/xklient/ xsec/tools/...
Author: scantor
Date: Fri Sep 1 20:42:20 2017
New Revision: 1807005
URL: http://svn.apache.org/viewvc?rev=1807005&view=rev
Log:
Cleanup, reverse double negatives in Xalan code paths
Modified:
santuario/xml-security-cpp/trunk/configure.ac
santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp
santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformBase64.cpp
santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPath.cpp
santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPathFilter.cpp
santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp
santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.cpp
santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.hpp
santuario/xml-security-cpp/trunk/xsec/framework/XSECConfig.hpp.in
santuario/xml-security-cpp/trunk/xsec/framework/XSECDefs.hpp
santuario/xml-security-cpp/trunk/xsec/framework/XSECW32Config.hpp
santuario/xml-security-cpp/trunk/xsec/samples/IOStreamOutputter.cpp
santuario/xml-security-cpp/trunk/xsec/samples/simpleDecrypt.cpp
santuario/xml-security-cpp/trunk/xsec/samples/simpleEncrypt.cpp
santuario/xml-security-cpp/trunk/xsec/samples/simpleHMAC.cpp
santuario/xml-security-cpp/trunk/xsec/samples/simpleValidate.cpp
santuario/xml-security-cpp/trunk/xsec/tools/checksig/InteropResolver.cpp
santuario/xml-security-cpp/trunk/xsec/tools/checksig/checksig.cpp
santuario/xml-security-cpp/trunk/xsec/tools/cipher/XencInteropResolver.hpp
santuario/xml-security-cpp/trunk/xsec/tools/cipher/cipher.cpp
santuario/xml-security-cpp/trunk/xsec/tools/siginf/siginf.cpp
santuario/xml-security-cpp/trunk/xsec/tools/templatesign/templatesign.cpp
santuario/xml-security-cpp/trunk/xsec/tools/txfmout/txfmout.cpp
santuario/xml-security-cpp/trunk/xsec/tools/xklient/xklient.cpp
santuario/xml-security-cpp/trunk/xsec/tools/xtest/xtest.cpp
santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.cpp
santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.hpp
santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.cpp
santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.hpp
santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.cpp
santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.hpp
Modified: santuario/xml-security-cpp/trunk/configure.ac
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/configure.ac?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/configure.ac (original)
+++ santuario/xml-security-cpp/trunk/configure.ac Fri Sep 1 20:42:20 2017
@@ -152,22 +152,13 @@ if test x"$use_xalan" != x"no" ; then
if test -z "$xalan_found" ; then
AC_MSG_CHECKING([for Xalan in system includes])
- AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <xalanc/Include/XalanVersion.hpp>]])],[xalan_found=yes
- LIBS="${LIBS} -lxalan-c"
- AC_MSG_RESULT([found])],
- [AC_DEFINE([XSEC_NO_XALAN],[1],[Define to 1 if Xalan is unavailable.])
- AC_MSG_RESULT([no - WARNING - configuring for no Xalan])
- ]);
+ AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <xalanc/Include/XalanVersion.hpp>]])],
+ [xalan_found=yes
+ LIBS="${LIBS} -lxalan-c"
+ AC_MSG_RESULT([found])],
+ [AC_MSG_RESULT([no - WARNING - configuring without Xalan])]);
fi
-
-else
-
- # NO_XALAN is defined - so we skip
-
- AC_MSG_NOTICE([Warning - Xalan being configured out - XPath and XSLT will not be available])
- AC_DEFINE([XSEC_NO_XALAN],[1],[Define to 1 if Xalan is unavailable.])
-
fi
if test "${xalan_found}" = "yes" ; then
@@ -191,7 +182,11 @@ int i = 0;
int test=1;
]])],[AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
LIBS=${old_libs}]);
+
+ AC_DEFINE([XSEC_HAVE_XALAN],[1],[Define to 1 if Xalan is available.])
+else
+ AC_MSG_NOTICE([Xalan not included in build - XPath and XSLT will not be available])
fi
@@ -291,7 +286,7 @@ if test x"$use_openssl" != "xno" ; then
fi
AC_ARG_WITH(nss,
- AS_HELP_STRING([--with-nss],[Use NSS. Values = 'yes' or installation directory (Default = no)]),
+ AS_HELP_STRING([--with-nss],[Use NSS (no longer officially supported). Values = 'yes' or installation directory (Default = no)]),
use_nss=$withval, use_nss=no)
if test x"$use_nss" != "xno" ; then
@@ -338,6 +333,8 @@ if test x"$use_nss" != "xno" ; then
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <nss.h>]], [[NSS_NoDB_Init(NULL);]])],,
[AC_MSG_ERROR([Unable to link with NSS])])
+
+ AC_MSG_WARN([NSS is no longer officially supported])
fi
# Populate the Makefile conditionals
Modified: santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp Fri Sep 1 20:42:20 2017
@@ -44,7 +44,7 @@
XERCES_CPP_NAMESPACE_USE
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
// Xalan includes
#include <xalanc/XalanDOM/XalanDocument.hpp>
@@ -445,7 +445,7 @@ bool XSECC14n20010315::getCommentsProces
int XSECC14n20010315::XPathSelectNodes(const char * XPathExpr) {
-#ifdef XSEC_NO_XPATH
+#ifndef XSEC_HAVE_XPATH
throw XSECException(XSECException::UnsupportedFunction,
"This library has been compiled without XPath support");
Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformBase64.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformBase64.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformBase64.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformBase64.cpp Fri Sep 1 20:42:20 2017
@@ -75,7 +75,7 @@ void DSIGTransformBase64::appendTransfor
if (input->getLastTxfm()->getNodeType() != TXFMBase::DOM_NODE_XPATH_NODESET) {
-#ifdef XSEC_NO_XPATH
+#ifndef XSEC_HAVE_XPATH
throw XSECException(XSECException::UnsupportedFunction,
"Unable to extract Base64 text from Nodes without XPath support");
Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPath.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPath.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPath.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPath.cpp Fri Sep 1 20:42:20 2017
@@ -78,7 +78,7 @@ transformType DSIGTransformXPath::getTra
void DSIGTransformXPath::appendTransformer(TXFMChain * input) {
-#ifdef XSEC_NO_XPATH
+#ifndef XSEC_HAVE_XPATH
throw XSECException(XSECException::UnsupportedFunction,
"XPath transforms are not supported in this compilation of the XSEC library");
@@ -96,7 +96,7 @@ void DSIGTransformXPath::appendTransform
x->setNameSpace(mp_NSMap);
x->evaluateExpr(mp_txfmNode, m_expr);
-#endif /* NO_XPATH */
+#endif /* XSEC_HAVE_XPATH */
}
Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPathFilter.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPathFilter.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPathFilter.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXPathFilter.cpp Fri Sep 1 20:42:20 2017
@@ -88,7 +88,7 @@ void DSIGTransformXPathFilter::appendTra
}
-#ifdef XSEC_NO_XPATH
+#ifndef XSEC_HAVE_XPATH
throw XSECException(XSECException::UnsupportedFunction,
"XPath transforms are not supported in this compilation of the XSEC library");
Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp Fri Sep 1 20:42:20 2017
@@ -118,7 +118,7 @@ transformType DSIGTransformXSL::getTrans
void DSIGTransformXSL::appendTransformer(TXFMChain * input) {
-#ifdef XSEC_NO_XSLT
+#ifndef XSEC_HAVE_XSLT
throw XSECException(XSECException::UnsupportedFunction,
"XSLT Transforms not supported in this compilation of the library");
@@ -147,9 +147,9 @@ void DSIGTransformXSL::appendTransformer
input->appendTxfm(x);
// Patch to avoid c14n of stylesheet
- XSECDomToSafeBuffer sbStyleSheet(mp_stylesheetNode);
- x->evaluateStyleSheet(sbStyleSheet);
-#endif /* NO_XSLT */
+ XSECDomToSafeBuffer sbStyleSheet(mp_stylesheetNode);
+ x->evaluateStyleSheet(sbStyleSheet);
+#endif /* XSEC_HAVE_XSLT */
}
Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.cpp Fri Sep 1 20:42:20 2017
@@ -28,7 +28,7 @@
#include <xsec/dsig/DSIGXPathHere.hpp>
-#ifndef XSEC_NO_XPATH
+#ifdef XSEC_HAVE_XPATH
XALAN_USING_XALAN(XalanCopyConstruct);
@@ -84,4 +84,4 @@ XObjectPtr DSIGXPathHere::execute(
return theBuffer;
}
-#endif /* NO_XPATH */
+#endif /* XSEC_HAVE_XPATH */
Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.hpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGXPathHere.hpp Fri Sep 1 20:42:20 2017
@@ -33,7 +33,7 @@
#include <xercesc/util/PlatformUtils.hpp>
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#if defined(_MSC_VER)
# pragma warning(disable: 4267)
@@ -67,7 +67,7 @@ XSEC_USING_XERCES(Locator);
#endif
-#ifndef XSEC_NO_XPATH
+#ifdef XSEC_HAVE_XPATH
// If there is no XPath then let's not even bother with this class.
Modified: santuario/xml-security-cpp/trunk/xsec/framework/XSECConfig.hpp.in
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/framework/XSECConfig.hpp.in?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/framework/XSECConfig.hpp.in (original)
+++ santuario/xml-security-cpp/trunk/xsec/framework/XSECConfig.hpp.in Fri Sep 1 20:42:20 2017
@@ -9,8 +9,8 @@
/* Define to 1 if getcwd(NULL, 0) works. */
#undef XSEC_HAVE_GETCWD_DYN
-/* Define to 1 if Xalan is unavailable. */
-#undef XSEC_NO_XALAN
+/* Define to 1 if Xalan is available. */
+#undef XSEC_HAVE_XALAN
/* Define to 1 if OpenSSL has EVP_CIPHER_CTX_set_padding. */
#undef XSEC_OPENSSL_CANSET_PADDING
Modified: santuario/xml-security-cpp/trunk/xsec/framework/XSECDefs.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/framework/XSECDefs.hpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/framework/XSECDefs.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/framework/XSECDefs.hpp Fri Sep 1 20:42:20 2017
@@ -145,16 +145,14 @@ typedef XMLSize_t xsecsize_t;
// Given the configuration - what should we set?
-#ifdef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
-// Xalan is not available!
+# define XSEC_HAVE_XPATH
+# define XSEC_HAVE_XSLT
-# define XSEC_NO_XPATH
-# define XSEC_NO_XSLT
+#endif
-#endif /* XSEC_NO_XALAN */
-
-#ifdef XSEC_NO_XPATH
+#ifndef XSEC_HAVE_XPATH
# ifdef XSEC_USE_XPATH_ENVELOPE
# undef XSEC_USE_XPATH_ENVELOPE
Modified: santuario/xml-security-cpp/trunk/xsec/framework/XSECW32Config.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/framework/XSECW32Config.hpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/framework/XSECW32Config.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/framework/XSECW32Config.hpp Fri Sep 1 20:42:20 2017
@@ -38,22 +38,20 @@
* Activate this #define if Xalan is not required (or desired)
*/
-#define XSEC_NO_XALAN
+// #define XSEC_HAVE_XALAN 1
/*
- * Define presence of cryptographic providers
+ * Define presence of cryptographic providers.
+ *
+ * WARNING: Neither WinCAPI nor NSS are officially supported by the sole remanining
+ * maintainer of this library. Use at your own risk, or contact the project if you're
+ * interested in assisting with maintenance and support of that code.
*/
// #define XSEC_HAVE_OPENSSL 1
-
-#ifndef SUPPRESS_XSEC_HAVE_WINCAPI
-#define XSEC_HAVE_WINCAPI 1
-#endif
-// NSS Code is currently alpha. It should work, but you will also
-// need to include the NSS libraries during the link.
-
-/* #define XSEC_HAVE_NSS 1 */
+// #define XSEC_HAVE_WINCAPI 1
+// #define XSEC_HAVE_NSS 1
/*
Modified: santuario/xml-security-cpp/trunk/xsec/samples/IOStreamOutputter.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/samples/IOStreamOutputter.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/samples/IOStreamOutputter.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/samples/IOStreamOutputter.cpp Fri Sep 1 20:42:20 2017
@@ -58,29 +58,6 @@ static XMLFormatter::UnRepFlags gUnRepFl
static const XMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull };
static const XMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull};
static const XMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull };
-static const XMLCh gXMLDecl1[] =
-{
- chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l
- , chSpace, chLatin_v, chLatin_e, chLatin_r, chLatin_s, chLatin_i
- , chLatin_o, chLatin_n, chEqual, chDoubleQuote, chNull
-};
-static const XMLCh gXMLDecl2[] =
-{
- chDoubleQuote, chSpace, chLatin_e, chLatin_n, chLatin_c
- , chLatin_o, chLatin_d, chLatin_i, chLatin_n, chLatin_g, chEqual
- , chDoubleQuote, chNull
-};
-static const XMLCh gXMLDecl3[] =
-{
- chDoubleQuote, chSpace, chLatin_s, chLatin_t, chLatin_a
- , chLatin_n, chLatin_d, chLatin_a, chLatin_l, chLatin_o
- , chLatin_n, chLatin_e, chEqual, chDoubleQuote, chNull
-};
-static const XMLCh gXMLDecl4[] =
-{
- chDoubleQuote, chQuestion, chCloseAngle
- , chLF, chNull
-};
static const XMLCh gStartCDATA[] =
{
@@ -452,7 +429,7 @@ public:
unsigned char * buffer; // Buffer to write to
- DOMMemFormatTarget() {};
+ DOMMemFormatTarget() : buffer(NULL) {};
~DOMMemFormatTarget() {};
void setBuffer (unsigned char * toSet) {buffer = toSet;};
@@ -463,8 +440,8 @@ public:
// -----------------------------------------------------------------------
void writeChars(const XMLByte* const toWrite,
- const unsigned int count,
- XMLFormatter * const formatter)
+ const XMLSize_t count,
+ XMLFormatter * const formatter)
{
// Surprisingly, Solaris was the only platform on which
// required the char* cast to print out the string correctly.
Modified: santuario/xml-security-cpp/trunk/xsec/samples/simpleDecrypt.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/samples/simpleDecrypt.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/samples/simpleDecrypt.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/samples/simpleDecrypt.cpp Fri Sep 1 20:42:20 2017
@@ -45,7 +45,7 @@
// Xalan
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#include <xalanc/XalanTransformer/XalanTransformer.hpp>
XALAN_USING_XALAN(XalanTransformer)
#endif
@@ -108,7 +108,7 @@ int main (int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::initialize();
#endif
XSECPlatformUtils::Initialise();
Modified: santuario/xml-security-cpp/trunk/xsec/samples/simpleEncrypt.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/samples/simpleEncrypt.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/samples/simpleEncrypt.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/samples/simpleEncrypt.cpp Fri Sep 1 20:42:20 2017
@@ -46,7 +46,7 @@
// Xalan
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#include <xalanc/XalanTransformer/XalanTransformer.hpp>
XALAN_USING_XALAN(XalanTransformer)
#endif
@@ -119,7 +119,7 @@ int main (int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::initialize();
#endif
XSECPlatformUtils::Initialise();
Modified: santuario/xml-security-cpp/trunk/xsec/samples/simpleHMAC.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/samples/simpleHMAC.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/samples/simpleHMAC.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/samples/simpleHMAC.cpp Fri Sep 1 20:42:20 2017
@@ -45,7 +45,7 @@
// Xalan
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#include <xalanc/XalanTransformer/XalanTransformer.hpp>
XALAN_USING_XALAN(XalanTransformer)
#endif
@@ -91,7 +91,7 @@ int main (int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::initialize();
#endif
XSECPlatformUtils::Initialise();
Modified: santuario/xml-security-cpp/trunk/xsec/samples/simpleValidate.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/samples/simpleValidate.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/samples/simpleValidate.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/samples/simpleValidate.cpp Fri Sep 1 20:42:20 2017
@@ -50,13 +50,9 @@
XERCES_CPP_NAMESPACE_USE
-#ifndef XSEC_NO_XALAN
-
-// Xalan
-
+#ifdef XSEC_HAVE_XALAN
#include <xalanc/XalanTransformer/XalanTransformer.hpp>
XALAN_USING_XALAN(XalanTransformer)
-
#endif
char docToValidate [4096] = "\
@@ -115,7 +111,7 @@ int main (int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::initialize();
#endif
XSECPlatformUtils::Initialise();
Modified: santuario/xml-security-cpp/trunk/xsec/tools/checksig/InteropResolver.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/checksig/InteropResolver.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/checksig/InteropResolver.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/checksig/InteropResolver.cpp Fri Sep 1 20:42:20 2017
@@ -648,7 +648,7 @@ XSECCryptoKey * InteropResolver::resolve
}
- return false;
+ return NULL;
}
Modified: santuario/xml-security-cpp/trunk/xsec/tools/checksig/checksig.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/checksig/checksig.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/checksig/checksig.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/checksig/checksig.cpp Fri Sep 1 20:42:20 2017
@@ -83,7 +83,7 @@ using std::cerr;
using std::cout;
using std::endl;
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
// XALAN
@@ -119,7 +119,7 @@ XALAN_USING_XALAN(XalanTransformer)
#include <time.h>
-#ifdef XSEC_NO_XALAN
+#ifndef XSEC_HAVE_XALAN
std::ostream& operator<< (std::ostream& target, const XMLCh * s)
{
@@ -610,7 +610,7 @@ int main(int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XPathEvaluator::initialize();
XalanTransformer::initialize();
#endif
@@ -628,7 +628,7 @@ int main(int argc, char **argv) {
retResult = evaluate(argc, argv);
XSECPlatformUtils::Terminate();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::terminate();
XPathEvaluator::terminate();
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/tools/cipher/XencInteropResolver.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/cipher/XencInteropResolver.hpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/cipher/XencInteropResolver.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/cipher/XencInteropResolver.hpp Fri Sep 1 20:42:20 2017
@@ -67,7 +67,6 @@ private:
_finddata_t m_finder;
long m_handle;
#else
- glob_t m_globbuf;
int m_fcount;
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/tools/cipher/cipher.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/cipher/cipher.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/cipher/cipher.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/cipher/cipher.cpp Fri Sep 1 20:42:20 2017
@@ -92,7 +92,7 @@ using std::cout;
using std::endl;
using std::ostream;
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
// XALAN
@@ -138,7 +138,7 @@ XALAN_USING_XALAN(XalanTransformer)
#include <time.h>
-#ifdef XSEC_NO_XALAN
+#ifndef XSEC_HAVE_XALAN
std::ostream& operator<< (std::ostream& target, const XMLCh * s)
{
@@ -843,7 +843,7 @@ int main(int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XPathEvaluator::initialize();
XalanTransformer::initialize();
#endif
@@ -861,7 +861,7 @@ int main(int argc, char **argv) {
retResult = evaluate(argc, argv);
XSECPlatformUtils::Terminate();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::terminate();
XPathEvaluator::terminate();
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/tools/siginf/siginf.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/siginf/siginf.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/siginf/siginf.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/siginf/siginf.cpp Fri Sep 1 20:42:20 2017
@@ -78,7 +78,7 @@ using std::cout;
using std::endl;
using std::ostream;
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
// XALAN
@@ -88,9 +88,7 @@ using std::ostream;
XALAN_USING_XALAN(XPathEvaluator)
XALAN_USING_XALAN(XalanTransformer)
-#endif
-
-#ifdef XSEC_NO_XALAN
+#else
ostream& operator<< (ostream& target, const XMLCh * s)
{
@@ -549,7 +547,7 @@ int main(int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XPathEvaluator::initialize();
XalanTransformer::initialize();
#endif
@@ -567,7 +565,7 @@ int main(int argc, char **argv) {
retResult = evaluate(argc, argv);
XSECPlatformUtils::Terminate();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::terminate();
XPathEvaluator::terminate();
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/tools/templatesign/templatesign.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/templatesign/templatesign.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/templatesign/templatesign.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/templatesign/templatesign.cpp Fri Sep 1 20:42:20 2017
@@ -92,7 +92,7 @@
#include <xercesc/util/XMLNetAccessor.hpp>
#include <xercesc/util/XMLUri.hpp>
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
// XALAN
@@ -128,29 +128,6 @@ static XMLFormatter::UnRepFlags gUnRepFl
static const XMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull };
static const XMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull};
static const XMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull };
-static const XMLCh gXMLDecl1[] =
-{
- chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l
- , chSpace, chLatin_v, chLatin_e, chLatin_r, chLatin_s, chLatin_i
- , chLatin_o, chLatin_n, chEqual, chDoubleQuote, chNull
-};
-static const XMLCh gXMLDecl2[] =
-{
- chDoubleQuote, chSpace, chLatin_e, chLatin_n, chLatin_c
- , chLatin_o, chLatin_d, chLatin_i, chLatin_n, chLatin_g, chEqual
- , chDoubleQuote, chNull
-};
-static const XMLCh gXMLDecl3[] =
-{
- chDoubleQuote, chSpace, chLatin_s, chLatin_t, chLatin_a
- , chLatin_n, chLatin_d, chLatin_a, chLatin_l, chLatin_o
- , chLatin_n, chLatin_e, chEqual, chDoubleQuote, chNull
-};
-static const XMLCh gXMLDecl4[] =
-{
- chDoubleQuote, chQuestion, chCloseAngle
- , chLF, chNull
-};
static const XMLCh gStartCDATA[] =
{
@@ -215,8 +192,8 @@ public:
// -----------------------------------------------------------------------
void writeChars(const XMLByte* const toWrite,
- const xsecsize_t count,
- XMLFormatter * const formatter)
+ const XMLSize_t count,
+ XMLFormatter * const formatter)
{
// Surprisingly, Solaris was the only platform on which
// required the char* cast to print out the string correctly.
@@ -454,25 +431,6 @@ ostream& operator<<(ostream& target, DOM
break;
}
-/*
- case DOMNode::NOTATION_NODE:
- {
- const XMLCh * str;
-
- *gFormatter << gXMLDecl1 << ((DOMXMLDecl *)toWrite)->getVersion();
-
- *gFormatter << gXMLDecl2 << gEncodingName;
-
- str = ((DOMXMLDecl *)toWrite)->getStandalone();
- if (str != 0)
- *gFormatter << gXMLDecl3 << str;
-
- *gFormatter << gXMLDecl4;
-
- break;
- }
-
-*/
default:
cerr << "Unrecognized node type = "
<< (long)toWrite->getNodeType() << endl;
@@ -491,7 +449,7 @@ public:
unsigned char * buffer; // Buffer to write to
- DOMMemFormatTarget() {};
+ DOMMemFormatTarget() : buffer(NULL) {};
~DOMMemFormatTarget() {};
void setBuffer (unsigned char * toSet) {buffer = toSet;};
@@ -502,8 +460,8 @@ public:
// -----------------------------------------------------------------------
void writeChars(const XMLByte* const toWrite,
- const unsigned int count,
- XMLFormatter * const formatter)
+ const XMLSize_t count,
+ XMLFormatter * const formatter)
{
// Surprisingly, Solaris was the only platform on which
// required the char* cast to print out the string correctly.
@@ -616,7 +574,7 @@ int main(int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XPathEvaluator::initialize();
XalanTransformer::initialize();
#endif
@@ -1388,7 +1346,7 @@ int main(int argc, char **argv) {
delete theResolver;
XSECPlatformUtils::Terminate();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::terminate();
XPathEvaluator::terminate();
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/tools/txfmout/txfmout.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/txfmout/txfmout.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/txfmout/txfmout.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/txfmout/txfmout.cpp Fri Sep 1 20:42:20 2017
@@ -81,7 +81,7 @@ using std::cerr;
using std::endl;
using std::ofstream;
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
// XALAN
@@ -91,9 +91,7 @@ using std::ofstream;
XALAN_USING_XALAN(XPathEvaluator)
XALAN_USING_XALAN(XalanTransformer)
-#endif
-
-#ifdef XSEC_NO_XALAN
+#else
std::ostream& operator<< (std::ostream& target, const XMLCh * s)
{
@@ -308,11 +306,10 @@ void outputReferenceList (DSIGReferenceL
try {
is = ref->makeBinInputStream();
}
- catch (NetAccessorException e) {
+ catch (NetAccessorException& e) {
cerr << "Network error in reference " << theOutputter.getIndex() << endl;
is = 0;
-
}
@@ -410,7 +407,7 @@ int main(int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XPathEvaluator::initialize();
XalanTransformer::initialize();
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/tools/xklient/xklient.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/xklient/xklient.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/xklient/xklient.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/xklient/xklient.cpp Fri Sep 1 20:42:20 2017
@@ -114,7 +114,7 @@ using std::cout;
using std::endl;
using std::ostream;
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
// XALAN
@@ -161,7 +161,7 @@ int doParsedMsgDump(DOMDocument * doc);
// --------------------------------------------------------------------------------
-#ifdef XSEC_NO_XALAN
+#ifndef XSEC_HAVE_XALAN
ostream& operator<< (ostream& target, const XMLCh * s)
{
@@ -4663,7 +4663,7 @@ int main(int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XPathEvaluator::initialize();
XalanTransformer::initialize();
#endif
@@ -4681,7 +4681,7 @@ int main(int argc, char **argv) {
retResult = evaluate(argc, argv);
XSECPlatformUtils::Terminate();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::terminate();
XPathEvaluator::terminate();
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/tools/xtest/xtest.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/tools/xtest/xtest.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/tools/xtest/xtest.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/tools/xtest/xtest.cpp Fri Sep 1 20:42:20 2017
@@ -58,7 +58,7 @@
// XALAN
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#include <xalanc/XPath/XPathEvaluator.hpp>
#include <xalanc/XalanTransformer/XalanTransformer.hpp>
@@ -128,10 +128,10 @@ XERCES_CPP_NAMESPACE_USE
// Global variables
// --------------------------------------------------------------------------------
-bool g_printDocs = false;
-bool g_useWinCAPI = false;
-bool g_useNSS = false;
-bool g_haveAES = true;
+bool g_printDocs = false;
+bool g_useWinCAPI = false;
+bool g_useNSS = false;
+bool g_haveAES = true;
// --------------------------------------------------------------------------------
// Known "Good" Values
@@ -1147,7 +1147,7 @@ void unitTestSignature(DOMImplementation
// Test an enveloping signature
unitTestEnvelopingSignature(impl);
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
unitTestBase64NodeSignature(impl);
#else
cerr << "Skipping base64 node test (Requires XPath)" << endl;
@@ -1247,7 +1247,7 @@ void testSignature(DOMImplementation *im
DSIGConstants::s_unicodeStrURIEXC_C14N_COM);
ce->addInclusiveNamespace("foo");
-#ifdef XSEC_NO_XALAN
+#ifndef XSEC_HAVE_XALAN
cerr << "WARNING : No testing of XPath being performed as Xalan not present" << endl;
refCount = 7;
@@ -2135,7 +2135,7 @@ void unitTestEncrypt(DOMImplementation *
cerr << "Unit testing 3DES CBC encryption" << endl;
unitTestElementContentEncrypt(impl, ks->clone(), ENCRYPT_3DES_CBC, false);
unitTestElementContentEncrypt(impl, ks, ENCRYPT_3DES_CBC, true);
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
if (g_haveAES) {
cerr << "Unit testing CipherReference creation and decryption" << endl;
unitTestCipherReference(impl);
@@ -2591,7 +2591,7 @@ int main(int argc, char **argv) {
try {
XMLPlatformUtils::Initialize();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XPathEvaluator::initialize();
XalanTransformer::initialize();
#endif
@@ -2698,7 +2698,7 @@ int main(int argc, char **argv) {
}
XSECPlatformUtils::Terminate();
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
XalanTransformer::terminate();
XPathEvaluator::terminate();
#endif
Modified: santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.cpp Fri Sep 1 20:42:20 2017
@@ -33,7 +33,7 @@
#include <xsec/utils/XSECDOMUtils.hpp>
#include <xsec/framework/XSECError.hpp>
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#if defined(_MSC_VER)
# pragma warning(disable: 4267)
@@ -71,7 +71,7 @@ XALAN_USING_XALAN(XSLException)
XERCES_CPP_NAMESPACE_USE
-#if !defined(XSEC_NO_XPATH)
+#ifdef XSEC_HAVE_XPATH
#include <iostream>
@@ -80,10 +80,10 @@ XERCES_CPP_NAMESPACE_USE
// Helper function
void setXPathNS(DOMDocument *d,
- DOMNamedNodeMap *xAtts,
- XSECXPathNodeList &addedNodes,
- XSECSafeBufferFormatter *formatter,
- XSECNameSpaceExpander * nse) {
+ DOMNamedNodeMap *xAtts,
+ XSECXPathNodeList &addedNodes,
+ XSECSafeBufferFormatter *formatter,
+ XSECNameSpaceExpander * nse) {
// if set then set the name spaces in the attribute list else clear them
@@ -589,4 +589,4 @@ XSECXPathNodeList & TXFMXPath::getXPathN
}
-#endif /* NO_XPATH */
+#endif /* XSEC_HAVE_XPATH */
Modified: santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.hpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPath.hpp Fri Sep 1 20:42:20 2017
@@ -42,7 +42,7 @@ XSEC_DECLARE_XERCES_CLASS(DOMNamedNodeMa
// Xalan
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#include <xalanc/XalanDOM/XalanDocument.hpp>
#include <xalanc/XercesParserLiaison/XercesDocumentWrapper.hpp>
@@ -58,7 +58,7 @@ XSEC_DECLARE_XERCES_CLASS(DOMNamedNodeMa
#endif
-#ifndef XSEC_NO_XPATH
+#ifdef XSEC_HAVE_XPATH
/**
* \brief Transformer to handle XPath transforms
Modified: santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.cpp Fri Sep 1 20:42:20 2017
@@ -39,7 +39,7 @@
XERCES_CPP_NAMESPACE_USE
-#ifndef XSEC_NO_XALAN
+#ifdef XSEC_HAVE_XALAN
#if defined(_MSC_VER)
# pragma warning(disable: 4267)
@@ -90,7 +90,7 @@ XALAN_USING_XALAN(XSLException)
#endif
-#if !defined(XSEC_NO_XPATH)
+#ifdef XSEC_HAVE_XPATH
#include <iostream>
@@ -745,7 +745,7 @@ XSECXPathNodeList & TXFMXPathFilter::get
}
-#endif /* NO_XPATH */
+#endif /* XSEC_HAVE_XPATH */
Modified: santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.hpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXPathFilter.hpp Fri Sep 1 20:42:20 2017
@@ -52,7 +52,7 @@ struct filterSetHolder {
};
-#ifndef XSEC_NO_XPATH
+#ifdef XSEC_HAVE_XPATH
/**
* \brief Transformer to handle XPath transforms
Modified: santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.cpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.cpp Fri Sep 1 20:42:20 2017
@@ -30,7 +30,7 @@
#include <xsec/dsig/DSIGConstants.hpp>
#include <xsec/framework/XSECError.hpp>
-#ifndef XSEC_NO_XSLT
+#ifdef XSEC_HAVE_XSLT
// Xerces
#include <xercesc/dom/DOM.hpp>
@@ -247,4 +247,4 @@ const XMLCh * TXFMXSL::getFragmentId() {
}
-#endif /* NO_XSLT */
+#endif /* XSEC_HAVE_XSLT */
Modified: santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.hpp?rev=1807005&r1=1807004&r2=1807005&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/transformers/TXFMXSL.hpp Fri Sep 1 20:42:20 2017
@@ -34,7 +34,7 @@
// Xalan
-#ifndef XSEC_NO_XPATH
+#ifdef XSEC_HAVE_XPATH
#include <xalanc/XalanDOM/XalanDocument.hpp>
#include <xalanc/XercesParserLiaison/XercesDOMSupport.hpp>
@@ -51,7 +51,7 @@ XALAN_USING_XALAN(XalanTransformer)
#endif
-#ifndef XSEC_NO_XSLT
+#ifdef XSEC_HAVE_XSLT
/**
* \brief Transformer to handle XSLT transforms