From 7f071718b88a40f7702509aa3996d77851e8495a Mon Sep 17 00:00:00 2001 From: scantor Date: Mon, 20 Aug 2012 17:14:06 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/SSPCPP-495 git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3761 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shibsp/handler/impl/SAML2SessionInitiator.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/shibsp/handler/impl/SAML2SessionInitiator.cpp b/shibsp/handler/impl/SAML2SessionInitiator.cpp index 2e10df3..be705d0 100644 --- a/shibsp/handler/impl/SAML2SessionInitiator.cpp +++ b/shibsp/handler/impl/SAML2SessionInitiator.cpp @@ -126,6 +126,21 @@ namespace shibsp { #pragma warning( pop ) #endif + class SHIBSP_DLLLOCAL SessionInitiatorNodeFilter : public DOMNodeFilter + { + public: +#ifdef SHIBSP_XERCESC_SHORT_ACCEPTNODE + short +#else + FilterAction +#endif + acceptNode(const DOMNode* node) const { + return FILTER_REJECT; + } + }; + + static SHIBSP_DLLLOCAL SessionInitiatorNodeFilter g_SINFilter; + SessionInitiator* SHIBSP_DLLLOCAL SAML2SessionInitiatorFactory(const pair& p) { return new SAML2SessionInitiator(p.first, p.second); @@ -134,7 +149,7 @@ namespace shibsp { }; SAML2SessionInitiator::SAML2SessionInitiator(const DOMElement* e, const char* appId) - : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT".SessionInitiator.SAML2"), nullptr, &m_remapper), m_appId(appId), + : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT".SessionInitiator.SAML2"), &g_SINFilter, &m_remapper), m_appId(appId), m_paosNS(samlconstants::PAOS_NS), m_ecpNS(samlconstants::SAML20ECP_NS), m_paosBinding(samlconstants::SAML20_BINDING_PAOS) #ifdef SHIBSP_LITE ,m_ecp(false) -- 2.1.4