Build errors with xmlsec off
authorScott Cantor <cantor.2@osu.edu>
Tue, 4 Apr 2006 15:48:23 +0000 (15:48 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 4 Apr 2006 15:48:23 +0000 (15:48 +0000)
xmltooling/io/AbstractXMLObjectMarshaller.cpp
xmltooling/signature/impl/KeyInfoImpl.cpp
xmltooling/util/ParserPool.cpp
xmltoolingtest/KeyInfoTest.h
xmltoolingtest/XMLObjectBaseTestCase.h

index a17476e..5dc6661 100644 (file)
@@ -35,7 +35,9 @@
 #include <xercesc/util/XMLUniDefs.hpp>\r
 #include <log4cpp/Category.hh>\r
 \r
-using namespace xmlsignature;\r
+#ifndef XMLTOOLING_NO_XMLSEC\r
+    using namespace xmlsignature;\r
+#endif\r
 using namespace xmltooling;\r
 using namespace log4cpp;\r
 using namespace std;\r
index 58456ec..3186a98 100644 (file)
@@ -652,8 +652,8 @@ namespace xmlsignature {
             
         KeyInfoImpl(const KeyInfoImpl& src)
                 : AbstractXMLObject(src),
-                    AbstractDOMCachingXMLObject(src),
                     AbstractSimpleElement(src),
+                    AbstractDOMCachingXMLObject(src),
                     AbstractValidatingXMLObject(src),
                     m_Id(XMLString::replicate(src.m_Id)) {
 
@@ -882,4 +882,4 @@ const XMLCh X509Certificate::LOCAL_NAME[] = {
     XCH(C), XCH(e), XCH(r), XCH(t), XCH(i), XCH(f), XCH(i), XCH(c), XCH(a), XCH(t), XCH(e), chNull
     };
 const XMLCh X509CRL::LOCAL_NAME[] = { XCH(X), XNUM(5), XNUM(0), XNUM(9), XCH(C), XCH(R), XCH(L), chNull };
-    
\ No newline at end of file
+
index 838c044..1ce146e 100644 (file)
@@ -233,7 +233,8 @@ DOMInputSource* ParserPool::resolveEntity(const XMLCh* const publicId, const XML
 #endif    
 
     // Shortcircuit the request.
-    log.warn("unauthorized entity request, blocking it");
+    auto_ptr_char sysId(systemId);
+    log.warn("unauthorized entity request (%s), blocking it", sysId.get() ? sysId.get() : "no systemId");
     static const XMLByte nullbuf[] = {0};
     return new Wrapper4InputSource(new MemBufInputSource(nullbuf,0,systemId));
 }
index 0d742ba..06b208a 100644 (file)
@@ -19,6 +19,8 @@
 #include <fstream>\r
 #include <xmltooling/signature/KeyInfo.h>\r
 \r
+using namespace xmlsignature;\r
+\r
 class KeyInfoTest : public CxxTest::TestSuite {\r
 public:\r
     KeyInfoTest() {}\r
index 7fe8100..34af4eb 100644 (file)
 #include <xmltooling/io/AbstractXMLObjectUnmarshaller.h>
 #include <xmltooling/impl/AnyElement.h>
 #include <xmltooling/impl/UnknownElement.h>
-#ifndef XMLTOOLING_NO_XMLSEC
-    #include <xmltooling/signature/Signature.h>
-#endif
 #include <xmltooling/util/ParserPool.h>
 #include <xmltooling/util/XMLConstants.h>
 #include <xmltooling/util/XMLHelper.h>
 #include <xmltooling/util/XMLObjectChildrenList.h>
 
-using namespace xmlsignature;
+#ifndef XMLTOOLING_NO_XMLSEC
+    #include <xmltooling/signature/Signature.h>
+    using namespace xmlsignature;
+#endif
+
 using namespace xmltooling;
 using namespace std;