From: cantor Date: Thu, 15 Feb 2007 03:55:34 +0000 (+0000) Subject: Fix version in HTTP header, skip correlation check when no value to check. X-Git-Tag: 2.4.1~429 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fopensaml2.git;a=commitdiff_plain;h=d7eb4ef6802be3fa338e482cef94a4d22a8ba881 Fix version in HTTP header, skip correlation check when no value to check. git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@185 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0 --- diff --git a/saml/binding/impl/SOAPClient.cpp b/saml/binding/impl/SOAPClient.cpp index 5d15bca..a68d262 100644 --- a/saml/binding/impl/SOAPClient.cpp +++ b/saml/binding/impl/SOAPClient.cpp @@ -61,7 +61,7 @@ void SOAPClient::prepareTransport(const xmltooling::SOAPTransport& transport) if (http) { http->setRequestHeader("SOAPAction", "http://www.oasis-open.org/committees/security"); http->setRequestHeader("Xerces-C", XERCES_FULLVERSIONDOT); - http->setRequestHeader("XML-Security-C", XSEC_VERSION); + http->setRequestHeader("XML-Security-C", XSEC_FULLVERSIONDOT); http->setRequestHeader("OpenSAML-C", OPENSAML_FULLVERSIONDOT); } diff --git a/saml/saml1/binding/impl/SAML1SOAPClient.cpp b/saml/saml1/binding/impl/SAML1SOAPClient.cpp index c684596..97114a0 100644 --- a/saml/saml1/binding/impl/SAML1SOAPClient.cpp +++ b/saml/saml1/binding/impl/SAML1SOAPClient.cpp @@ -58,7 +58,7 @@ Response* SAML1SOAPClient::receiveSAML() if (response) { // Check InResponseTo. - if (m_correlate && !XMLString::equals(m_correlate, response->getInResponseTo())) + if (m_correlate && response->getInResponseTo() && !XMLString::equals(m_correlate, response->getInResponseTo())) throw BindingException("InResponseTo attribute did not correlate with the Request ID."); // Check Status. diff --git a/saml/saml2/binding/impl/SAML2SOAPClient.cpp b/saml/saml2/binding/impl/SAML2SOAPClient.cpp index 4a1fc04..7ed6c1b 100644 --- a/saml/saml2/binding/impl/SAML2SOAPClient.cpp +++ b/saml/saml2/binding/impl/SAML2SOAPClient.cpp @@ -58,7 +58,7 @@ StatusResponseType* SAML2SOAPClient::receiveSAML() if (response) { // Check InResponseTo. - if (m_correlate && !XMLString::equals(m_correlate, response->getInResponseTo())) + if (m_correlate && response->getInResponseTo() && !XMLString::equals(m_correlate, response->getInResponseTo())) throw BindingException("InResponseTo attribute did not correlate with the Request ID."); // Check Status.