From: Scott Cantor Date: Fri, 30 Jul 2010 01:13:35 +0000 (+0000) Subject: Default the binding template property. X-Git-Tag: 2.4RC1~47 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=b3503427f4a11338de35dd57c4183fb300dfbba3 Default the binding template property. --- diff --git a/saml/saml1/binding/impl/SAML1POSTEncoder.cpp b/saml/saml1/binding/impl/SAML1POSTEncoder.cpp index 2803a85..d649db7 100644 --- a/saml/saml1/binding/impl/SAML1POSTEncoder.cpp +++ b/saml/saml1/binding/impl/SAML1POSTEncoder.cpp @@ -81,7 +81,7 @@ namespace opensaml { static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e); SAML1POSTEncoder::SAML1POSTEncoder(const DOMElement* e, const XMLCh* ns) - : m_template(XMLHelper::getAttrString(e, nullptr, _template, ns)) + : m_template(XMLHelper::getAttrString(e, "bindingTemplate.html", _template, ns)) { if (m_template.empty()) throw XMLToolingException("SAML1POSTEncoder requires template XML attribute."); diff --git a/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp b/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp index d9d91d3..a6b7454 100644 --- a/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp +++ b/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp @@ -85,7 +85,7 @@ namespace opensaml { SAML2ArtifactEncoder::SAML2ArtifactEncoder(const DOMElement* e, const XMLCh* ns) { if (XMLHelper::getAttrBool(e, false, postArtifact, ns)) { - m_template = XMLHelper::getAttrString(e, nullptr, _template, ns); + m_template = XMLHelper::getAttrString(e, "bindingTemplate.html", _template, ns); if (!m_template.empty()) XMLToolingConfig::getConfig().getPathResolver()->resolve(m_template, PathResolver::XMLTOOLING_CFG_FILE); } diff --git a/saml/saml2/binding/impl/SAML2POSTEncoder.cpp b/saml/saml2/binding/impl/SAML2POSTEncoder.cpp index ec32ac2..fde133c 100644 --- a/saml/saml2/binding/impl/SAML2POSTEncoder.cpp +++ b/saml/saml2/binding/impl/SAML2POSTEncoder.cpp @@ -88,7 +88,7 @@ namespace opensaml { static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e); SAML2POSTEncoder::SAML2POSTEncoder(const DOMElement* e, const XMLCh* ns, bool simple) - : m_template(XMLHelper::getAttrString(e, nullptr, _template, ns)), m_simple(simple) + : m_template(XMLHelper::getAttrString(e, "bindingTemplate.html", _template, ns)), m_simple(simple) { if (m_template.empty()) throw XMLToolingException("SAML2POSTEncoder requires template XML attribute.");