From b79dc3af7d8eafeff3f119a4a67f734a83f29cb9 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 26 Apr 2007 20:26:58 +0000 Subject: [PATCH] Porting fixes --- configure.ac | 6 +++--- xmltooling/io/AbstractXMLObjectMarshaller.cpp | 2 +- xmltooling/security/KeyInfoResolver.h | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 568a529..d89710b 100644 --- a/configure.ac +++ b/configure.ac @@ -209,13 +209,13 @@ if test x_$with_xmlsec != x_no; then AC_MSG_CHECKING([XML-Security version]) AC_PREPROC_IFELSE( [AC_LANG_PROGRAM([#include ], - [#if XSEC_VERSION_MAJOR > 1 || XSEC_VERSION_MEDIUM >2 + [#if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3) || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM == 3 && XSEC_VERSION_MINOR > 0) int i = 0; #else -#error need version 1.3 or later +#error need version 1.3.1 or later #endif])], [AC_MSG_RESULT(OK)], - [AC_MSG_FAILURE([XML-Security version 1.3 or greater is required.])]) + [AC_MSG_FAILURE([XML-Security version 1.3.1 or greater is required.])]) AC_TRY_LINK( [#include ], [XSECPlatformUtils::Initialise()],, diff --git a/xmltooling/io/AbstractXMLObjectMarshaller.cpp b/xmltooling/io/AbstractXMLObjectMarshaller.cpp index 87e0087..c715c26 100644 --- a/xmltooling/io/AbstractXMLObjectMarshaller.cpp +++ b/xmltooling/io/AbstractXMLObjectMarshaller.cpp @@ -200,7 +200,7 @@ void AbstractXMLObjectMarshaller::marshallInto( #ifndef XMLTOOLING_NO_XMLSEC marshallContent(targetElement,credential); if (sigs) { - for_each(sigs->begin(),sigs->end(),bind2nd(mem_fun1(&Signature::sign),credential)); + for_each(sigs->begin(),sigs->end(),bind2nd(mem_fun1_t(&Signature::sign),credential)); } #else marshallContent(targetElement); diff --git a/xmltooling/security/KeyInfoResolver.h b/xmltooling/security/KeyInfoResolver.h index 56ade75..bb74477 100644 --- a/xmltooling/security/KeyInfoResolver.h +++ b/xmltooling/security/KeyInfoResolver.h @@ -24,13 +24,14 @@ #define __xmltooling_keyres_h__ #include -#include #include #include namespace xmltooling { + class XMLTOOL_API CredentialCriteria; + /** * Resolves credentials from KeyInfo information. * -- 2.1.4