[cpp-sp COMMIT] in /branches/REL_2/shibsp: attribute/resolver/impl/ChainingAttributeExtractor.cpp attribute/resolver/...
noreply at shibboleth.net
noreply at shibboleth.net
Wed Jan 11 19:21:20 GMT 2012
Author: scantor
Date: Wed Jan 11 19:21:20 2012
New Revision: 3558
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3558&view=rev
Log:
Old boost version doesn't support push_back with auto_ptr
Modified:
branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeExtractor.cpp
branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp
branches/REL_2/shibsp/handler/impl/ChainingLogoutInitiator.cpp
branches/REL_2/shibsp/handler/impl/ChainingSessionInitiator.cpp
branches/REL_2/shibsp/impl/ChainingAccessControl.cpp
Modified: branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeExtractor.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeExtractor.cpp?rev=3558&r1=3557&r2=3558&view=diff
==============================================================================
--- branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeExtractor.cpp (original)
+++ branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeExtractor.cpp Wed Jan 11 19:21:20 2012
@@ -132,7 +132,8 @@
"building AttributeExtractor of type (%s)...", t.c_str()
);
auto_ptr<AttributeExtractor> np(conf.AttributeExtractorManager.newPlugin(t.c_str(), e));
- m_extractors.push_back(np);
+ m_extractors.push_back(np.get());
+ np.release();
}
catch (exception& ex) {
Category::getInstance(SHIBSP_LOGCAT".AttributeExtractor.Chaining").error(
Modified: branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp?rev=3558&r1=3557&r2=3558&view=diff
==============================================================================
--- branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp (original)
+++ branches/REL_2/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp Wed Jan 11 19:21:20 2012
@@ -185,7 +185,8 @@
"building AttributeResolver of type (%s)...", t.c_str()
);
auto_ptr<AttributeResolver> np(conf.AttributeResolverManager.newPlugin(t.c_str(), e));
- m_resolvers.push_back(np);
+ m_resolvers.push_back(np.get());
+ np.release();
}
catch (exception& ex) {
Category::getInstance(SHIBSP_LOGCAT".AttributeResolver.Chaining").error(
Modified: branches/REL_2/shibsp/handler/impl/ChainingLogoutInitiator.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/handler/impl/ChainingLogoutInitiator.cpp?rev=3558&r1=3557&r2=3558&view=diff
==============================================================================
--- branches/REL_2/shibsp/handler/impl/ChainingLogoutInitiator.cpp (original)
+++ branches/REL_2/shibsp/handler/impl/ChainingLogoutInitiator.cpp Wed Jan 11 19:21:20 2012
@@ -107,7 +107,8 @@
if (!t.empty()) {
try {
auto_ptr<Handler> np(conf.LogoutInitiatorManager.newPlugin(t.c_str(), make_pair(e, appId)));
- m_handlers.push_back(np);
+ m_handlers.push_back(np.get());
+ np.release();
m_handlers.back().setParent(this);
}
catch (std::exception& ex) {
Modified: branches/REL_2/shibsp/handler/impl/ChainingSessionInitiator.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/handler/impl/ChainingSessionInitiator.cpp?rev=3558&r1=3557&r2=3558&view=diff
==============================================================================
--- branches/REL_2/shibsp/handler/impl/ChainingSessionInitiator.cpp (original)
+++ branches/REL_2/shibsp/handler/impl/ChainingSessionInitiator.cpp Wed Jan 11 19:21:20 2012
@@ -108,7 +108,8 @@
if (!t.empty()) {
try {
auto_ptr<SessionInitiator> np(conf.SessionInitiatorManager.newPlugin(t.c_str(), make_pair(e, appId)));
- m_handlers.push_back(np);
+ m_handlers.push_back(np.get());
+ np.release();
m_handlers.back().setParent(this);
}
catch (std::exception& ex) {
Modified: branches/REL_2/shibsp/impl/ChainingAccessControl.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/impl/ChainingAccessControl.cpp?rev=3558&r1=3557&r2=3558&view=diff
==============================================================================
--- branches/REL_2/shibsp/impl/ChainingAccessControl.cpp (original)
+++ branches/REL_2/shibsp/impl/ChainingAccessControl.cpp Wed Jan 11 19:21:20 2012
@@ -110,7 +110,9 @@
string t(XMLHelper::getAttrString(e, nullptr, _type));
if (!t.empty()) {
Category::getInstance(SHIBSP_LOGCAT".AccessControl.Chaining").info("building AccessControl provider of type (%s)...", t.c_str());
- m_ac.push_back(SPConfig::getConfig().AccessControlManager.newPlugin(t.c_str(), e));
[... 7 lines stripped ...]
More information about the commits
mailing list