X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fmetadata%2Fimpl%2FMetadataImpl.cpp;h=549408a6b0f7698d0a1f3481d0fd09b4d7d86f7d;hp=0f99b22521676f17757f9acf91d1a3ad673449f4;hb=96a6e5d552a21aca11f201e7b74d7340c88bde2f;hpb=0547a02ac67aeb6607ac96dadb25aae560aecf20 diff --git a/saml/saml2/metadata/impl/MetadataImpl.cpp b/saml/saml2/metadata/impl/MetadataImpl.cpp index 0f99b22..549408a 100644 --- a/saml/saml2/metadata/impl/MetadataImpl.cpp +++ b/saml/saml2/metadata/impl/MetadataImpl.cpp @@ -2696,7 +2696,7 @@ const DigestMethod* RoleDescriptor::getDigestMethod() const for (vector::const_iterator i = exts.begin(); i != exts.end(); ++i) { const opensaml::saml2md::DigestMethod* dm = dynamic_cast(*i); if (dm) { - if (dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm())) + if (dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm(), XMLToolingConfig::ALGTYPE_DIGEST)) return dm; roleLevel = true; } @@ -2709,7 +2709,7 @@ const DigestMethod* RoleDescriptor::getDigestMethod() const const vector& exts = const_cast(entity->getExtensions())->getUnknownXMLObjects(); for (vector::const_iterator i = exts.begin(); i != exts.end(); ++i) { const opensaml::saml2md::DigestMethod* dm = dynamic_cast(*i); - if (dm && dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm())) + if (dm && dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm(), XMLToolingConfig::ALGTYPE_DIGEST)) return dm; } } @@ -2729,7 +2729,7 @@ pair RoleDescriptor::getSigningMethod(co const SigningMethod* sm = dynamic_cast(*i); if (sm) { roleLevel = true; - if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm())) { + if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm(), XMLToolingConfig::ALGTYPE_SIGN)) { cc.setXMLAlgorithm(sm->getAlgorithm()); pair minsize = sm->getMinKeySize(), maxsize = sm->getMaxKeySize(); if (minsize.first || maxsize.first) { @@ -2755,7 +2755,7 @@ pair RoleDescriptor::getSigningMethod(co for (vector::const_iterator i = exts.begin(); i != exts.end(); ++i) { const SigningMethod* sm = dynamic_cast(*i); if (sm) { - if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm())) { + if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm(), XMLToolingConfig::ALGTYPE_SIGN)) { cc.setXMLAlgorithm(sm->getAlgorithm()); pair minsize = sm->getMinKeySize(), maxsize = sm->getMaxKeySize(); if (minsize.first || maxsize.first) {