[cpp-opensaml] branch master updated: Fix a variable name issue.

Scott Cantor cantor.2 at osu.edu
Fri Mar 6 12:15:59 EST 2020


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=bacb353f940288a9c2c2dd1b6d43b8f884ccd9fc

The following commit(s) were added to refs/heads/master by this push:
       new  bacb353   Fix a variable name issue.
bacb353 is described below

commit bacb353f940288a9c2c2dd1b6d43b8f884ccd9fc
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Mar 6 12:15:50 2020 -0500

    Fix a variable name issue.
---
 saml/binding/impl/SecurityPolicy.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/saml/binding/impl/SecurityPolicy.cpp b/saml/binding/impl/SecurityPolicy.cpp
index bec6e93..8347a28 100644
--- a/saml/binding/impl/SecurityPolicy.cpp
+++ b/saml/binding/impl/SecurityPolicy.cpp
@@ -60,7 +60,7 @@ namespace opensaml {
         SAML_DLLLOCAL PluginManager<SecurityPolicyRule,string,const DOMElement*>::Factory DelegationRestrictionRuleFactory;
     }
 
-    static const XMLCh profiles[] =    UNICODE_LITERAL_8(p,r,o,f,i,l,e,s);
+    static const XMLCh _profiles[] =    UNICODE_LITERAL_8(p,r,o,f,i,l,e,s);
 };
 
 void SAML_API opensaml::registerSecurityPolicyRules()
@@ -81,7 +81,7 @@ void SAML_API opensaml::registerSecurityPolicyRules()
 
 SecurityPolicyRule::SecurityPolicyRule(const DOMElement* e)
 {
-    string profiles(XMLHelper::getAttrString(e, nullptr, profiles));
+    string profiles(XMLHelper::getAttrString(e, nullptr, _profiles));
     trim(profiles);
     if (!profiles.empty()) {
         split(m_profiles, profiles, is_space(), algorithm::token_compress_on);
@@ -92,7 +92,7 @@ SecurityPolicyRule::~SecurityPolicyRule()
 {
 }
 
-bool SecurityPolicyRule::evaluate(const XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const
+bool SecurityPolicyRule::evaluate(const XMLObject&, const GenericRequest*, SecurityPolicy& policy) const
 {
     const char* profile = policy.getProfile();
     return !profile || m_profiles.empty() || m_profiles.find(profile) != m_profiles.end();

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


More information about the commits mailing list