[cpp-opensaml] branch master updated: CPPXT-33 - Credential::getCredentialContext method misspelled

Scott Cantor cantor.2 at osu.edu
Fri Jan 5 15:57:28 EST 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-opensaml.git;a=commit;h=03021928ab67ba1f62db2a390552a86649bb695f

The following commit(s) were added to refs/heads/master by this push:
       new  0302192   CPPXT-33 - Credential::getCredentialContext method misspelled
0302192 is described below

commit 03021928ab67ba1f62db2a390552a86649bb695f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Jan 5 15:57:26 2018 -0500

    CPPXT-33 - Credential::getCredentialContext method misspelled
    
    https://issues.shibboleth.net/jira/browse/CPPXT-33
---
 saml/saml2/core/impl/Assertions.cpp                     | 4 ++--
 saml/saml2/metadata/impl/MetadataCredentialCriteria.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/saml/saml2/core/impl/Assertions.cpp b/saml/saml2/core/impl/Assertions.cpp
index 5e07502..eeaffa2 100644
--- a/saml/saml2/core/impl/Assertions.cpp
+++ b/saml/saml2/core/impl/Assertions.cpp
@@ -80,7 +80,7 @@ void EncryptedElementType::encrypt(
         // The problem is that if we don't support them, the only case we can detect
         // is if neither algorithm type is set *and* there's an EncryptionMethod present.
         dataalg = keyalg = nullptr;
-        const MetadataCredentialContext* metaCtx = dynamic_cast<const MetadataCredentialContext*>((*c)->getCredentalContext());
+        const MetadataCredentialContext* metaCtx = dynamic_cast<const MetadataCredentialContext*>((*c)->getCredentialContext());
         if (metaCtx) {
             const vector<EncryptionMethod*>& encMethods = metaCtx->getKeyDescriptor().getEncryptionMethods();
             for (vector<EncryptionMethod*>::const_iterator meth = encMethods.begin(); meth != encMethods.end(); ++meth) {
@@ -183,7 +183,7 @@ void EncryptedElementType::encrypt(
             // The problem is that if we don't support them, the only case we can detect
             // is if neither algorithm type is set *and* there's an EncryptionMethod present.
             keyalg = nullptr;
-            const MetadataCredentialContext* metaCtx = dynamic_cast<const MetadataCredentialContext*>((*c)->getCredentalContext());
+            const MetadataCredentialContext* metaCtx = dynamic_cast<const MetadataCredentialContext*>((*c)->getCredentialContext());
             if (metaCtx) {
                 const vector<EncryptionMethod*>& encMethods = metaCtx->getKeyDescriptor().getEncryptionMethods();
                 for (vector<EncryptionMethod*>::const_iterator meth = encMethods.begin(); meth != encMethods.end(); ++meth) {
diff --git a/saml/saml2/metadata/impl/MetadataCredentialCriteria.cpp b/saml/saml2/metadata/impl/MetadataCredentialCriteria.cpp
index 16a79d2..988d7bf 100644
--- a/saml/saml2/metadata/impl/MetadataCredentialCriteria.cpp
+++ b/saml/saml2/metadata/impl/MetadataCredentialCriteria.cpp
@@ -45,7 +45,7 @@ MetadataCredentialCriteria::MetadataCredentialCriteria(const RoleDescriptor& rol
 
 bool MetadataCredentialCriteria::matches(const Credential& credential) const
 {
-    const MetadataCredentialContext* context = dynamic_cast<const MetadataCredentialContext*>(credential.getCredentalContext());
+    const MetadataCredentialContext* context = dynamic_cast<const MetadataCredentialContext*>(credential.getCredentialContext());
     if (context) {
         // Check for a usage mismatch.
         if ((getUsage() & (xmltooling::Credential::SIGNING_CREDENTIAL | xmltooling::Credential::TLS_CREDENTIAL)) &&

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list