- auto_ptr_char issuer(assertions.front()->getIssuer());
- if (issuer.get())
- ex.addProperty("entityID", issuer.get());
- throw;
- }
- // Try and locate metadata for error handling.
- const EntityDescriptor* provider=metadataProvider->getEntityDescriptor(assertions.front()->getIssuer(),false);
- if (provider) {
- pair<bool,int> minor = response->getMinorVersion();
- issuer=provider->getRoleDescriptor(
- *role,
- (minor.first && minor.second==0) ? SAMLConstants::SAML10_PROTOCOL_ENUM : SAMLConstants::SAML11_PROTOCOL_ENUM
- );
- if (issuer) annotateException(&ex,issuer); // throws it
- annotateException(&ex,provider); // throws it
+ auto_ptr_char iname(assertions.front()->getIssuer());
+ if (iname.get())
+ ex.addProperty("entityID", iname.get());
+ throw;