From dab12be1b1ebadf1dce9806529474694ac885c11 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 15 Feb 2007 03:55:34 +0000 Subject: [PATCH] Fix version in HTTP header, skip correlation check when no value to check. --- saml/binding/impl/SOAPClient.cpp | 2 +- saml/saml1/binding/impl/SAML1SOAPClient.cpp | 2 +- saml/saml2/binding/impl/SAML2SOAPClient.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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. -- 2.1.4