- if (a && a->getIssuer()) {
- if (!policy.getIssuer() || policy.getIssuer()->getFormat() ||
- !XMLString::equals(policy.getIssuer()->getName(), a->getIssuer())) {
- // We either have a conflict, or a first-time set of Issuer.
- auto_ptr<saml2::Issuer> issuer(saml2::IssuerBuilder::buildIssuer());
- issuer->setName(a->getIssuer());
- policy.setIssuer(issuer.get());
- issuer.release(); // owned by policy now
- }
- pair<bool,int> minor = a->getMinorVersion();
- protocol = (minor.first && minor.second==0) ?
- samlconstants::SAML10_PROTOCOL_ENUM : samlconstants::SAML11_PROTOCOL_ENUM;