[cpp-opensaml] branch master updated: Remove legacy Xerces support from xmltooling layer.
Scott Cantor
cantor.2 at osu.edu
Mon Nov 27 16:20:38 EST 2017
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-opensaml.git;a=commit;h=79a73497e11017c3bde42ecf88f85ca60db204d7
The following commit(s) were added to refs/heads/master by this push:
new 79a7349 Remove legacy Xerces support from xmltooling layer.
79a7349 is described below
commit 79a73497e11017c3bde42ecf88f85ca60db204d7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Nov 27 16:20:34 2017 -0500
Remove legacy Xerces support from xmltooling layer.
---
saml/saml1/core/impl/AssertionsImpl.cpp | 8 --------
saml/saml1/core/impl/ProtocolsImpl.cpp | 16 ----------------
2 files changed, 24 deletions(-)
diff --git a/saml/saml1/core/impl/AssertionsImpl.cpp b/saml/saml1/core/impl/AssertionsImpl.cpp
index bfdcfcc..55ea219 100644
--- a/saml/saml1/core/impl/AssertionsImpl.cpp
+++ b/saml/saml1/core/impl/AssertionsImpl.cpp
@@ -963,11 +963,7 @@ namespace opensaml {
const_cast<AssertionImpl*>(this)->m_AssertionID=SAMLConfig::getConfig().generateIdentifier();
domElement->setAttributeNS(nullptr, ASSERTIONID_ATTRIB_NAME, m_AssertionID);
if (*m_MinorVersion!=chDigit_0) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
domElement->setIdAttributeNS(nullptr, ASSERTIONID_ATTRIB_NAME, true);
-#else
- domElement->setIdAttributeNS(nullptr, ASSERTIONID_ATTRIB_NAME);
-#endif
}
MARSHALL_STRING_ATTRIB(Issuer,ISSUER,nullptr);
if (!m_IssueInstant) {
@@ -993,11 +989,7 @@ namespace opensaml {
// Standard processing, but then we check IDness.
AbstractXMLObjectUnmarshaller::unmarshallAttributes(domElement);
if (m_AssertionID && (!m_MinorVersion || *m_MinorVersion!=chDigit_0)) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
const_cast<DOMElement*>(domElement)->setIdAttributeNS(nullptr, ASSERTIONID_ATTRIB_NAME, true);
-#else
- const_cast<DOMElement*>(domElement)->setIdAttributeNS(nullptr, ASSERTIONID_ATTRIB_NAME);
-#endif
}
}
diff --git a/saml/saml1/core/impl/ProtocolsImpl.cpp b/saml/saml1/core/impl/ProtocolsImpl.cpp
index 684c1e2..4a35950 100644
--- a/saml/saml1/core/impl/ProtocolsImpl.cpp
+++ b/saml/saml1/core/impl/ProtocolsImpl.cpp
@@ -413,11 +413,7 @@ namespace opensaml {
const_cast<RequestAbstractTypeImpl*>(this)->m_RequestID=SAMLConfig::getConfig().generateIdentifier();
domElement->setAttributeNS(nullptr, REQUESTID_ATTRIB_NAME, m_RequestID);
if (*m_MinorVersion!=chDigit_0) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
domElement->setIdAttributeNS(nullptr, REQUESTID_ATTRIB_NAME, true);
-#else
- domElement->setIdAttributeNS(nullptr, REQUESTID_ATTRIB_NAME);
-#endif
}
if (!m_IssueInstant) {
const_cast<RequestAbstractTypeImpl*>(this)->m_IssueInstantEpoch=time(nullptr);
@@ -436,11 +432,7 @@ namespace opensaml {
// Standard processing, but then we check IDness.
AbstractXMLObjectUnmarshaller::unmarshallAttributes(domElement);
if (m_RequestID && (!m_MinorVersion || *m_MinorVersion!=chDigit_0)) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
const_cast<DOMElement*>(domElement)->setIdAttributeNS(nullptr, REQUESTID_ATTRIB_NAME, true);
-#else
- const_cast<DOMElement*>(domElement)->setIdAttributeNS(nullptr, REQUESTID_ATTRIB_NAME);
-#endif
}
}
@@ -774,11 +766,7 @@ namespace opensaml {
const_cast<ResponseAbstractTypeImpl*>(this)->m_ResponseID=SAMLConfig::getConfig().generateIdentifier();
domElement->setAttributeNS(nullptr, RESPONSEID_ATTRIB_NAME, m_ResponseID);
if (*m_MinorVersion!=chDigit_0) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
domElement->setIdAttributeNS(nullptr, RESPONSEID_ATTRIB_NAME, true);
-#else
- domElement->setIdAttributeNS(nullptr, RESPONSEID_ATTRIB_NAME);
-#endif
}
MARSHALL_STRING_ATTRIB(InResponseTo,INRESPONSETO,nullptr);
if (!m_IssueInstant) {
@@ -798,11 +786,7 @@ namespace opensaml {
// Standard processing, but then we check IDness.
AbstractXMLObjectUnmarshaller::unmarshallAttributes(domElement);
if (m_ResponseID && (!m_MinorVersion || *m_MinorVersion!=chDigit_0)) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
const_cast<DOMElement*>(domElement)->setIdAttributeNS(nullptr, RESPONSEID_ATTRIB_NAME, true);
-#else
- const_cast<DOMElement*>(domElement)->setIdAttributeNS(nullptr, RESPONSEID_ATTRIB_NAME);
-#endif
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list