X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Fsaml1%2Fbinding%2FSAML1ArtifactTest.h;fp=samltest%2Fsaml1%2Fbinding%2FSAML1ArtifactTest.h;h=5f2dfca1bedf6b222b2e77474e815e2a13b23b94;hb=9d61992f725e8b73421e9262a711f4cbdd782b18;hp=8503a64f3b40740c868d6c0101b357b9a8013a40;hpb=53f30080aa11d6874d6e2c5c533b2fbd4be1fd17;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/saml1/binding/SAML1ArtifactTest.h b/samltest/saml1/binding/SAML1ArtifactTest.h index 8503a64..5f2dfca 100644 --- a/samltest/saml1/binding/SAML1ArtifactTest.h +++ b/samltest/saml1/binding/SAML1ArtifactTest.h @@ -39,7 +39,8 @@ public: void testSAML1Artifact() { try { QName idprole(samlconstants::SAML20MD_NS, IDPSSODescriptor::LOCAL_NAME); - SecurityPolicy policy(m_rules1, m_metadata, &idprole, m_trust, false); + SecurityPolicy policy(m_metadata, &idprole, m_trust, false); + policy.getRules().assign(m_rules1.begin(), m_rules1.end()); // Read message to use from file. string path = data_path + "saml1/binding/SAML1Assertion.xml"; @@ -131,7 +132,7 @@ public: TSM_ASSERT("Retrieved credential was null", cred!=NULL); response->marshall((DOMDocument*)NULL,&sigs,cred); SchemaValidators.validate(response.get()); - policy.evaluate(*(response.get()), this); + policy.evaluate(*(response.get()), this, samlconstants::SAML11_PROTOCOL_ENUM); return response.release(); }