X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fsaml1%2Fbinding%2FSAML1POSTTest.h;h=4b26224ea3cf6886e3c630dbd329641951a263ea;hp=6872867356fc60f7b2fdd4db8c4a04bed91fb174;hb=b66d32ed939fcf6db7bc52c8626b6ac06a2e97f9;hpb=1ffcb743f90aeb3da11054316f3d005ff7edbf7b diff --git a/samltest/saml1/binding/SAML1POSTTest.h b/samltest/saml1/binding/SAML1POSTTest.h index 6872867..4b26224 100644 --- a/samltest/saml1/binding/SAML1POSTTest.h +++ b/samltest/saml1/binding/SAML1POSTTest.h @@ -49,7 +49,9 @@ public: toSend->setIssueInstant(time(NULL)); // Encode message. - auto_ptr encoder(SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAML1_POST_ENCODER, NULL)); + auto_ptr encoder( + SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAMLConstants::SAML1_PROFILE_BROWSER_POST, NULL) + ); encoder->encode(m_fields,toSend.get(),"https://sp.example.org/","state",m_creds); toSend.release(); @@ -58,7 +60,9 @@ public: const RoleDescriptor* issuer=NULL; bool trusted=false; QName idprole(SAMLConstants::SAML20MD_NS, IDPSSODescriptor::LOCAL_NAME); - auto_ptr decoder(SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAML1_POST_DECODER, NULL)); + auto_ptr decoder( + SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAMLConstants::SAML1_PROFILE_BROWSER_POST, NULL) + ); Locker locker(m_metadata); auto_ptr response( dynamic_cast( @@ -97,7 +101,9 @@ public: toSend->setResponseID(NULL); // Encode message. - auto_ptr encoder(SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAML1_POST_ENCODER, NULL)); + auto_ptr encoder( + SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAMLConstants::SAML1_PROFILE_BROWSER_POST, NULL) + ); encoder->encode(m_fields,toSend.get(),"https://sp.example.org/","state"); toSend.release(); @@ -106,7 +112,9 @@ public: const RoleDescriptor* issuer=NULL; bool trusted=false; QName idprole(SAMLConstants::SAML20MD_NS, IDPSSODescriptor::LOCAL_NAME); - auto_ptr decoder(SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAML1_POST_DECODER, NULL)); + auto_ptr decoder( + SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAMLConstants::SAML1_PROFILE_BROWSER_POST, NULL) + ); Locker locker(m_metadata); auto_ptr response( dynamic_cast(