Key comparison too strict, cred may not contain actual key.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 13 Apr 2007 01:35:27 +0000 (01:35 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 13 Apr 2007 01:35:27 +0000 (01:35 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@277 de75baf8-a10c-0410-a50a-987c0e22f00f

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) {