Porting fixes
authorScott Cantor <cantor.2@osu.edu>
Thu, 26 Apr 2007 20:26:58 +0000 (20:26 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 26 Apr 2007 20:26:58 +0000 (20:26 +0000)
configure.ac
xmltooling/io/AbstractXMLObjectMarshaller.cpp
xmltooling/security/KeyInfoResolver.h

index 568a529..d89710b 100644 (file)
@@ -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 <xsec/utils/XSECPlatformUtils.hpp>],
-        [#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 <xsec/utils/XSECPlatformUtils.hpp>],
             [XSECPlatformUtils::Initialise()],,
index 87e0087..c715c26 100644 (file)
@@ -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<void,Signature,const Credential*>(&Signature::sign),credential));
+        for_each(sigs->begin(),sigs->end(),bind2nd(mem_fun1_t<void,Signature,const Credential*>(&Signature::sign),credential));
     }
 #else
     marshallContent(targetElement);
index 56ade75..bb74477 100644 (file)
 #define __xmltooling_keyres_h__
 
 #include <xmltooling/security/Credential.h>
-#include <xmltooling/security/CredentialCriteria.h>
 #include <xmltooling/security/KeyInfoCredentialContext.h>
 
 #include <xsec/dsig/DSIGKeyInfoList.hpp>
 
 namespace xmltooling {
 
+    class XMLTOOL_API CredentialCriteria;
+
     /**
      * Resolves credentials from KeyInfo information.
      *