X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml1%2Fbinding%2Fimpl%2FSAML1SOAPClient.cpp;h=9984d2b0014afe4f5a60502ffc23483e5cee24ed;hp=07e4121a2f7972a0777d73137436de241f950ba2;hb=9d61992f725e8b73421e9262a711f4cbdd782b18;hpb=53f30080aa11d6874d6e2c5c533b2fbd4be1fd17 diff --git a/saml/saml1/binding/impl/SAML1SOAPClient.cpp b/saml/saml1/binding/impl/SAML1SOAPClient.cpp index 07e4121..9984d2b 100644 --- a/saml/saml1/binding/impl/SAML1SOAPClient.cpp +++ b/saml/saml1/binding/impl/SAML1SOAPClient.cpp @@ -61,7 +61,13 @@ Response* SAML1SOAPClient::receiveSAML() if (m_correlate && response->getInResponseTo() && !XMLString::equals(m_correlate, response->getInResponseTo())) throw SecurityPolicyException("InResponseTo attribute did not correlate with the Request ID."); - m_soaper.getPolicy().evaluate(*response); + m_soaper.getPolicy().reset(true); + pair minor = response->getMinorVersion(); + m_soaper.getPolicy().evaluate( + *response, + NULL, + (minor.first && minor.second==0) ? samlconstants::SAML10_PROTOCOL_ENUM : samlconstants::SAML11_PROTOCOL_ENUM + ); if (!m_soaper.getPolicy().isSecure()) { SecurityPolicyException ex("Security policy could not authenticate the message.");