X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fsaml1%2Fbinding%2FSAML1ArtifactTest.h;h=9c39c47675d6964f6b83879feb32ce6e436848f0;hp=245f0e0b4cafd9d72795892844d4d1dc68cffa5a;hb=0beb48ce00d0b6a3f177f7d9b48af1870ee92190;hpb=6056cca67278d65c4343928e4ceaebd1d6f04920 diff --git a/samltest/saml1/binding/SAML1ArtifactTest.h b/samltest/saml1/binding/SAML1ArtifactTest.h index 245f0e0..9c39c47 100644 --- a/samltest/saml1/binding/SAML1ArtifactTest.h +++ b/samltest/saml1/binding/SAML1ArtifactTest.h @@ -51,15 +51,15 @@ public: void testSAML1Artifact() { try { QName idprole(samlconstants::SAML20MD_NS, IDPSSODescriptor::LOCAL_NAME); - SecurityPolicy policy(m_rules1, m_metadata, &idprole, m_trust); + SecurityPolicy policy(m_rules1, m_metadata, &idprole, m_trust, false); // Read message to use from file. string path = data_path + "saml1/binding/SAML1Assertion.xml"; ifstream in(path.c_str()); DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(in); XercesJanitor janitor(doc); - auto_ptr toSend( - dynamic_cast(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(),true)) + auto_ptr toSend( + dynamic_cast(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(),true)) ); janitor.release(); @@ -133,7 +133,7 @@ public: TSM_ASSERT_EQUALS("Too many artifacts.", artifacts.size(), 1); XMLObject* xmlObject = SAMLConfig::getConfig().getArtifactMap()->retrieveContent(artifacts.front(), "https://sp.example.org/"); - Assertion* assertion = dynamic_cast(xmlObject); + saml1::Assertion* assertion = dynamic_cast(xmlObject); TSM_ASSERT("Not an assertion.", assertion!=NULL); auto_ptr response(ResponseBuilder::buildResponse()); response->getAssertions().push_back(assertion);