Key comparison too strict, cred may not contain actual key.
authorScott Cantor <cantor.2@osu.edu>
Fri, 13 Apr 2007 01:35:27 +0000 (01:35 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 13 Apr 2007 01:35:27 +0000 (01:35 +0000)
xmltooling/security/impl/Credential.cpp

index 024e8bd..9e759bd 100644 (file)
@@ -71,7 +71,7 @@ bool Credential::matches(const CredentialCriteria& criteria) const
 
     XSECCryptoKey* key2 = getPublicKey();
     if (!key2)
-        return false;   // no key here, so we can't possibly match the criteria
+        return true;   // no key here, so we can't test it
 
     if (key1->getProviderName()!=DSIGConstants::s_unicodeStrPROVOpenSSL ||
         key2->getProviderName()!=DSIGConstants::s_unicodeStrPROVOpenSSL) {