Multi-line svn commit, see body.
[shibboleth/cpp-opensaml.git] / saml / encryption / EncryptedKeyResolver.cpp
index 8831717..449a753 100644 (file)
@@ -29,6 +29,10 @@ using namespace std;
 
 const EncryptedKey* opensaml::EncryptedKeyResolver::resolveKey(const EncryptedData& encryptedData, const XMLCh* recipient) const
 {
+    const EncryptedKey* base = xmlencryption::EncryptedKeyResolver::resolveKey(encryptedData, recipient);
+    if (base)
+        return base;
+
     const vector<EncryptedKey*>& keys=m_ref.getEncryptedKeys();
     for (vector<EncryptedKey*>::const_iterator i=keys.begin(); i!=keys.end(); i++) {
         if (XMLString::equals(recipient,(*i)->getRecipient()))