#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
KeyInfoImpl(const KeyInfoImpl& src)
: AbstractXMLObject(src),
- AbstractDOMCachingXMLObject(src),
AbstractSimpleElement(src),
+ AbstractDOMCachingXMLObject(src),
AbstractValidatingXMLObject(src),
m_Id(XMLString::replicate(src.m_Id)) {
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
+
#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));
}
#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
#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;