#include <xsec/framework/XSECException.hpp>
#include <xsec/framework/XSECProvider.hpp>
-using namespace xmlproviders;
using namespace shibboleth;
using namespace saml;
using namespace log4cpp;
XMLMetadataImpl::KeyDescriptor::~KeyDescriptor()
{
- for_each(m_methods.begin(),m_methods.end(),cleanup<XENCEncryptionMethod>);
+ for_each(m_methods.begin(),m_methods.end(),shibtarget::cleanup<XENCEncryptionMethod>());
delete m_klist;
}
XMLMetadataImpl::KeyAuthority::~KeyAuthority()
{
- for_each(m_klists.begin(),m_klists.end(),cleanup<DSIGKeyInfoList>);
+ for_each(m_klists.begin(),m_klists.end(),shibtarget::cleanup<DSIGKeyInfoList>());
}
XMLMetadataImpl::Role::Role(const EntityDescriptor* provider, time_t validUntil, const DOMElement* e)
delete m_org;
delete m_errorURL;
if (m_protocolEnumCopy) XMLString::release(&m_protocolEnumCopy);
- for_each(m_keys.begin(),m_keys.end(),cleanup<IKeyDescriptor>);
- for_each(m_contacts.begin(),m_contacts.end(),cleanup<IContactPerson>);
+ for_each(m_keys.begin(),m_keys.end(),shibtarget::cleanup<IKeyDescriptor>());
+ for_each(m_contacts.begin(),m_contacts.end(),shibtarget::cleanup<IContactPerson>());
}
bool XMLMetadataImpl::Role::hasSupport(const XMLCh* protocol) const
XMLMetadataImpl::IDPRole::~IDPRole()
{
- for_each(m_attrs.begin(),m_attrs.end(),cleanup<SAMLAttribute>);
+ for_each(m_attrs.begin(),m_attrs.end(),shibtarget::cleanup<SAMLAttribute>());
}
XMLMetadataImpl::AARole::AARole(const EntityDescriptor* provider, time_t validUntil, const DOMElement* e)
XMLMetadataImpl::AARole::~AARole()
{
- for_each(m_attrs.begin(),m_attrs.end(),cleanup<SAMLAttribute>);
+ for_each(m_attrs.begin(),m_attrs.end(),shibtarget::cleanup<SAMLAttribute>());
}
XMLMetadataImpl::EntityDescriptor::EntityDescriptor(
XMLMetadataImpl::EntityDescriptor::~EntityDescriptor()
{
delete m_org;
- for_each(m_contacts.begin(),m_contacts.end(),cleanup<IContactPerson>);
- for_each(m_roles.begin(),m_roles.end(),cleanup<IRoleDescriptor>);
- for_each(m_keyauths.begin(),m_keyauths.end(),cleanup<IKeyAuthority>);
+ for_each(m_contacts.begin(),m_contacts.end(),shibtarget::cleanup<IContactPerson>());
+ for_each(m_roles.begin(),m_roles.end(),shibtarget::cleanup<IRoleDescriptor>());
+ for_each(m_keyauths.begin(),m_keyauths.end(),shibtarget::cleanup<IKeyAuthority>());
}
XMLMetadataImpl::EntitiesDescriptor::EntitiesDescriptor(
XMLMetadataImpl::EntitiesDescriptor::~EntitiesDescriptor()
{
- for_each(m_providers.begin(),m_providers.end(),cleanup<IEntityDescriptor>);
- for_each(m_groups.begin(),m_groups.end(),cleanup<IEntitiesDescriptor>);
- for_each(m_keyauths.begin(),m_keyauths.end(),cleanup<IKeyAuthority>);
+ for_each(m_providers.begin(),m_providers.end(),shibtarget::cleanup<IEntityDescriptor>());
+ for_each(m_groups.begin(),m_groups.end(),shibtarget::cleanup<IEntitiesDescriptor>());
+ for_each(m_keyauths.begin(),m_keyauths.end(),shibtarget::cleanup<IKeyAuthority>());
}
void XMLMetadataImpl::init()
#include <xsec/enc/XSECCryptoException.hpp>
#include <xsec/enc/XSECKeyInfoResolverDefault.hpp>
-using namespace xmlproviders;
using namespace shibboleth;
using namespace saml;
using namespace log4cpp;
XMLTrustImpl::~XMLTrustImpl()
{
- for_each(m_keyauths.begin(),m_keyauths.end(),cleanup<KeyAuthority>);
- for_each(m_keybinds.begin(),m_keybinds.end(),cleanup<DSIGKeyInfoList>);
+ for_each(m_keyauths.begin(),m_keyauths.end(),shibtarget::cleanup<KeyAuthority>());
+ for_each(m_keybinds.begin(),m_keybinds.end(),shibtarget::cleanup<DSIGKeyInfoList>());
}
XMLTrust::XMLTrust(const DOMElement* e) : ReloadableXMLFile(e), m_delegate(NULL)
XMLTrust::~XMLTrust()
{
delete m_delegate;
- for_each(m_resolvers.begin(),m_resolvers.end(),cleanup<KeyInfoResolver>);
+ for_each(m_resolvers.begin(),m_resolvers.end(),shibtarget::cleanup<KeyInfoResolver>());
}
static int error_callback(int ok, X509_STORE_CTX* ctx)