X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2FApplication.cpp;h=f13e1f184ed3abd4bd4077c550eec23774e70b07;hb=774d366fe1303f7cb07b8caa26338ab3c98c7fb7;hp=439cd736aad3a993d200eab6c5ad41446bb11323;hpb=8d742a1e1f479f74eafd6f60e21c5f9f329a924b;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/Application.cpp b/shibsp/Application.cpp index 439cd73..f13e1f1 100644 --- a/shibsp/Application.cpp +++ b/shibsp/Application.cpp @@ -133,3 +133,10 @@ void Application::clearAttributeHeaders(SPRequest& request) const for (vector< pair >::const_iterator i = m_unsetHeaders.begin(); i!=m_unsetHeaders.end(); ++i) request.clearHeader(i->first.c_str(), i->second.c_str()); } + +const Handler* Application::getAssertionConsumerServiceByBinding(const char* binding) const +{ + auto_ptr_XMLCh b(binding); + const vector& handlers = getAssertionConsumerServicesByBinding(b.get()); + return handlers.empty() ? nullptr : handlers.front(); +}