X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FSAML2Logout.cpp;h=05a80a7edd88a7be1314fd4b092b463217ff31aa;hb=e2b9ec01820f056dfa91f9a60689b501c941eac6;hp=23b5421420d9be6a96cb535de80f46b898451ad4;hpb=a1472e10a7a05610517d43e58c8b3251695a4d6e;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/handler/impl/SAML2Logout.cpp b/shibsp/handler/impl/SAML2Logout.cpp index 23b5421..05a80a7 100644 --- a/shibsp/handler/impl/SAML2Logout.cpp +++ b/shibsp/handler/impl/SAML2Logout.cpp @@ -146,7 +146,9 @@ SAML2Logout::SAML2Logout(const DOMElement* e, const char* appId) SAMLConfig& conf = SAMLConfig::getConfig(); // Handle incoming binding. - m_decoder = conf.MessageDecoderManager.newPlugin(getString("Binding").second,make_pair(e,shibspconstants::SHIB2SPCONFIG_NS)); + m_decoder = conf.MessageDecoderManager.newPlugin( + getString("Binding").second, pair(e,shibspconstants::SHIB2SPCONFIG_NS) + ); m_decoder->setArtifactResolver(SPConfig::getConfig().getArtifactResolver()); if (m_decoder->isUserAgentPresent()) { @@ -172,7 +174,9 @@ SAML2Logout::SAML2Logout(const DOMElement* e, const char* appId) m_bindings.push_back(start); try { auto_ptr_char b(start); - MessageEncoder * encoder = conf.MessageEncoderManager.newPlugin(b.get(),make_pair(e,shibspconstants::SHIB2SPCONFIG_NS)); + MessageEncoder * encoder = conf.MessageEncoderManager.newPlugin( + b.get(), pair(e,shibspconstants::SHIB2SPCONFIG_NS) + ); m_encoders[start] = encoder; m_log.debug("supporting outgoing front-channel binding (%s)", b.get()); } @@ -187,7 +191,7 @@ SAML2Logout::SAML2Logout(const DOMElement* e, const char* appId) } else { MessageEncoder* encoder = conf.MessageEncoderManager.newPlugin( - getString("Binding").second,make_pair(e,shibspconstants::SHIB2SPCONFIG_NS) + getString("Binding").second, pair(e,shibspconstants::SHIB2SPCONFIG_NS) ); m_encoders.insert(pair(NULL, encoder)); } @@ -530,7 +534,7 @@ pair SAML2Logout::doRequest( if (policy.getIssuerMetadata()) annotateException(&ex, policy.getIssuerMetadata()); // throws it ex.raise(); - return make_pair(false,0); // never happen, satisfies compiler + return make_pair(false,0L); // never happen, satisfies compiler #else throw ConfigurationException("Cannot process logout message using lite version of shibsp library."); #endif