X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fcore%2Fimpl%2FAssertions.cpp;h=0e8b5f81d07326c73aac9eebc7fcfd48cd5625c0;hp=d87a9db8b788fc382faf737a8fe56e29f39ac9b0;hb=9424cbad0360d512935936e6410fca5e32eb29bc;hpb=3f243ee065ef3dcc1e9832275c00ee708d7f9a6b diff --git a/saml/saml2/core/impl/Assertions.cpp b/saml/saml2/core/impl/Assertions.cpp index d87a9db..0e8b5f8 100644 --- a/saml/saml2/core/impl/Assertions.cpp +++ b/saml/saml2/core/impl/Assertions.cpp @@ -50,7 +50,7 @@ void EncryptedElementType::encrypt( { // With one recipient, we let the library generate the encryption key for us. // Get the key encryption key to use. - criteria.setUsage(CredentialCriteria::ENCRYPTION_CREDENTIAL); + criteria.setUsage(Credential::ENCRYPTION_CREDENTIAL); const Credential* KEK = metadataProvider.resolve(&criteria); if (!KEK) throw EncryptionException("No key encryption credential found."); @@ -105,7 +105,7 @@ void EncryptedElementType::encrypt( // Now we encrypt the key for each recipient. for (vector< pair >::const_iterator r = recipients.begin(); r!=recipients.end(); ++r) { // Get key encryption key to use. - r->second->setUsage(CredentialCriteria::ENCRYPTION_CREDENTIAL); + r->second->setUsage(Credential::ENCRYPTION_CREDENTIAL); const Credential* KEK = r->first->resolve(r->second); if (!KEK) { auto_ptr_char name(dynamic_cast(r->second->getRole().getParent())->getEntityID());